OpenOCD
|
Data Fields | |
int(* | assert_srst )(void *handle, int srst) |
int(* | close )(void *handle) |
int(* | config_trace )(void *handle, bool enabled, enum tpiu_pin_protocol pin_protocol, uint32_t port_size, unsigned int *trace_freq, unsigned int traceclkin_freq, uint16_t *prescaler) |
Configure trace parameters for the adapter. More... | |
int(* | custom_command )(void *handle, const char *command) |
int(* | halt )(void *handle) |
int(* | idcode )(void *handle, uint32_t *idcode) |
Read the idcode of the target connected to the adapter. More... | |
int(* | open )(struct hl_interface_param *param, void **handle) |
int(* | override_target )(const char *targetname) |
int(* | poll_trace )(void *handle, uint8_t *buf, size_t *size) |
Poll for new trace data. More... | |
int(* | read_mem )(void *handle, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer) |
int(* | read_reg )(void *handle, unsigned int regsel, uint32_t *val) |
Read one register from the target. More... | |
int(* | read_regs )(void *handle) |
int(* | reset )(void *handle) |
int(* | run )(void *handle) |
int(* | speed )(void *handle, int khz, bool query) |
enum target_state(* | state )(void *fd) |
int(* | step )(void *handle) |
int(* | write_debug_reg )(void *handle, uint32_t addr, uint32_t val) |
int(* | write_mem )(void *handle, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer) |
int(* | write_reg )(void *handle, unsigned int regsel, uint32_t val) |
Write one register to the target. More... | |
Definition at line 27 of file hla_layout.h.
int(* hl_layout_api::assert_srst) (void *handle, int srst) |
Definition at line 35 of file hla_layout.h.
Referenced by hl_interface_reset().
int(* hl_layout_api::close) (void *handle) |
Definition at line 31 of file hla_layout.h.
Referenced by hl_interface_quit().
int(* hl_layout_api::config_trace) (void *handle, bool enabled, enum tpiu_pin_protocol pin_protocol, uint32_t port_size, unsigned int *trace_freq, unsigned int traceclkin_freq, uint16_t *prescaler) |
Configure trace parameters for the adapter.
handle | A handle to adapter |
enabled | Whether to enable trace |
pin_protocol | Configured pin protocol |
port_size | Trace port width for sync mode |
trace_freq | A pointer to the configured trace frequency; if it points to 0, the adapter driver must write its maximum supported rate there |
Definition at line 100 of file hla_layout.h.
Referenced by hl_interface_config_trace().
int(* hl_layout_api::custom_command) (void *handle, const char *command) |
Definition at line 85 of file hla_layout.h.
Referenced by COMMAND_HANDLER().
int(* hl_layout_api::halt) (void *handle) |
Definition at line 39 of file hla_layout.h.
int(* hl_layout_api::idcode) (void *handle, uint32_t *idcode) |
Read the idcode of the target connected to the adapter.
If the adapter doesn't support idcode retrieval, this callback should store 0 to indicate a wildcard match.
handle | A pointer to the device-specific handle |
idcode | Storage for the detected idcode |
Definition at line 81 of file hla_layout.h.
Referenced by hl_interface_init_target().
int(* hl_layout_api::open) (struct hl_interface_param *param, void **handle) |
Definition at line 29 of file hla_layout.h.
int(* hl_layout_api::override_target) (const char *targetname) |
Definition at line 83 of file hla_layout.h.
Referenced by hl_interface_override_target().
int(* hl_layout_api::poll_trace) (void *handle, uint8_t *buf, size_t *size) |
Poll for new trace data.
handle | A handle to adapter |
buf | A pointer to buffer to store received data |
size | A pointer to buffer size; must be filled with the actual amount of bytes written |
Definition at line 114 of file hla_layout.h.
Referenced by hl_interface_poll_trace().
int(* hl_layout_api::read_mem) (void *handle, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer) |
Definition at line 64 of file hla_layout.h.
Referenced by hl_dcc_read().
int(* hl_layout_api::read_reg) (void *handle, unsigned int regsel, uint32_t *val) |
Read one register from the target.
handle | A pointer to the device-specific handle |
regsel | Register selection index compatible with all the values allowed by armv7m DCRSR.REGSEL |
val | A pointer to retrieve the register value |
Definition at line 53 of file hla_layout.h.
int(* hl_layout_api::read_regs) (void *handle) |
Definition at line 43 of file hla_layout.h.
int(* hl_layout_api::reset) (void *handle) |
Definition at line 33 of file hla_layout.h.
int(* hl_layout_api::run) (void *handle) |
Definition at line 37 of file hla_layout.h.
int(* hl_layout_api::speed) (void *handle, int khz, bool query) |
Definition at line 87 of file hla_layout.h.
Referenced by hl_interface_khz(), and hl_interface_speed().
enum target_state(* hl_layout_api::state) (void *fd) |
Definition at line 114 of file hla_layout.h.
int(* hl_layout_api::step) (void *handle) |
Definition at line 41 of file hla_layout.h.
int(* hl_layout_api::write_debug_reg) (void *handle, uint32_t addr, uint32_t val) |
Definition at line 70 of file hla_layout.h.
int(* hl_layout_api::write_mem) (void *handle, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer) |
Definition at line 67 of file hla_layout.h.
Referenced by hl_dcc_read().
int(* hl_layout_api::write_reg) (void *handle, unsigned int regsel, uint32_t val) |
Write one register to the target.
handle | A pointer to the device-specific handle |
regsel | Register selection index compatible with all the values allowed by armv7m DCRSR.REGSEL |
val | The value to be written in the register |
Definition at line 62 of file hla_layout.h.