OpenOCD
stlink_usb_handle Struct Reference
Collaboration diagram for stlink_usb_handle:

Data Fields

union {
   struct stlink_tcp_priv   tcp_backend_priv
 
   struct stlink_usb_priv   usb_backend_priv
 
}; 
 
struct stlink_backendbackend
 
uint8_t * cmdbuf
 
uint8_t cmdidx
 
uint8_t * databuf
 
uint8_t direction
 
uint32_t max_mem_packet
 
uint16_t pid
 
struct dap_queue queue [MAX_QUEUE_DEPTH]
 queue of dap_direct operations More...
 
unsigned int queue_index
 first element available in the queue More...
 
bool reconnect_pending
 reconnect is needed next time we try to query the status More...
 
uint8_t rx_ep
 
enum stlink_mode st_mode
 
struct {
   bool   enabled
 whether SWO tracing is enabled or not More...
 
   uint32_t   source_hz
 trace module source clock More...
 
trace
 
uint8_t trace_ep
 
uint8_t tx_ep
 
struct stlink_usb_version version
 
uint16_t vid
 

Detailed Description

Definition at line 248 of file stlink_usb.c.

Field Documentation

◆ 

union { ... }

◆ backend

struct stlink_backend* stlink_usb_handle::backend

◆ cmdbuf

uint8_t* stlink_usb_handle::cmdbuf

Definition at line 263 of file stlink_usb.c.

Referenced by __attribute__(), COMMAND_HANDLER(), stlink_get_com_freq(), stlink_read_dap_register(), stlink_set_com_freq(), stlink_swim_assert_reset(), stlink_swim_enter(), stlink_swim_generate_rst(), stlink_swim_readbytes(), stlink_swim_resync(), stlink_swim_speed(), stlink_swim_status(), stlink_swim_writebytes(), stlink_usb_assert_srst(), stlink_usb_check_voltage(), stlink_usb_close_access_port(), stlink_usb_current_mode(), stlink_usb_get_rw_status(), stlink_usb_halt(), stlink_usb_idcode(), stlink_usb_init_access_port(), stlink_usb_init_buffer(), stlink_usb_mode_enter(), stlink_usb_mode_leave(), stlink_usb_read_mem16(), stlink_usb_read_mem32(), stlink_usb_read_mem32_noaddrinc(), stlink_usb_read_mem8(), stlink_usb_read_reg(), stlink_usb_read_regs(), stlink_usb_reset(), stlink_usb_run(), stlink_usb_rw_misc_in(), stlink_usb_rw_misc_out(), stlink_usb_set_cbw_transfer_datalength(), stlink_usb_set_jtagclk(), stlink_usb_set_swdclk(), stlink_usb_state(), stlink_usb_step(), stlink_usb_trace_disable(), stlink_usb_trace_enable(), stlink_usb_usb_close(), stlink_usb_usb_open(), stlink_usb_usb_xfer_noerrcheck(), stlink_usb_v2_read_debug_reg(), stlink_usb_version(), stlink_usb_write_debug_reg(), stlink_usb_write_mem16(), stlink_usb_write_mem32(), stlink_usb_write_mem32_noaddrinc(), stlink_usb_write_mem8(), stlink_usb_write_reg(), stlink_usb_xfer_rw(), stlink_usb_xfer_v1_create_cmd(), stlink_usb_xfer_v1_get_sense(), and stlink_usb_xfer_v1_get_status().

◆ cmdidx

◆ databuf

◆ direction

uint8_t stlink_usb_handle::direction

◆ enabled

bool stlink_usb_handle::enabled

whether SWO tracing is enabled or not

Definition at line 283 of file stlink_usb.c.

Referenced by stlink_config_trace(), stlink_usb_reset(), stlink_usb_state(), stlink_usb_trace_disable(), and stlink_usb_trace_enable().

◆ max_mem_packet

uint32_t stlink_usb_handle::max_mem_packet

Definition at line 271 of file stlink_usb.c.

Referenced by stlink_open(), stlink_usb_read_ap_mem(), and stlink_usb_write_ap_mem().

◆ pid

uint16_t stlink_usb_handle::pid

Definition at line 279 of file stlink_usb.c.

Referenced by stlink_usb_usb_open(), and stlink_usb_version().

◆ queue

struct dap_queue stlink_usb_handle::queue[MAX_QUEUE_DEPTH]

◆ queue_index

unsigned int stlink_usb_handle::queue_index

◆ reconnect_pending

bool stlink_usb_handle::reconnect_pending

reconnect is needed next time we try to query the status

Definition at line 289 of file stlink_usb.c.

Referenced by stlink_dap_reinit_interface().

◆ rx_ep

◆ source_hz

uint32_t stlink_usb_handle::source_hz

trace module source clock

Definition at line 285 of file stlink_usb.c.

Referenced by stlink_config_trace(), and stlink_usb_trace_enable().

◆ st_mode

◆ tcp_backend_priv

struct stlink_tcp_priv stlink_usb_handle::tcp_backend_priv

◆ 

◆ trace_ep

uint8_t stlink_usb_handle::trace_ep

◆ tx_ep

◆ usb_backend_priv

struct stlink_usb_priv stlink_usb_handle::usb_backend_priv

◆ version

struct stlink_usb_version stlink_usb_handle::version

Definition at line 271 of file stlink_usb.c.

Referenced by stlink_config_trace(), stlink_dap_closeall_ap(), stlink_dap_dp_read(), stlink_dap_dp_write(), stlink_dap_init(), stlink_dap_op_queue_ap_read(), stlink_dap_op_queue_ap_write(), stlink_dap_reinit_interface(), stlink_get_com_freq(), stlink_open(), stlink_read_dap_register(), stlink_set_com_freq(), stlink_speed(), stlink_speed_jtag(), stlink_speed_swd(), stlink_swim_writebytes(), stlink_usb_assert_srst(), stlink_usb_block(), stlink_usb_check_voltage(), stlink_usb_close_access_port(), stlink_usb_count_misc_rw_queue(), stlink_usb_error_check(), stlink_usb_get_rw_status(), stlink_usb_halt(), stlink_usb_idcode(), stlink_usb_init_access_port(), stlink_usb_init_buffer(), stlink_usb_init_mode(), stlink_usb_mode_enter(), stlink_usb_open_ap(), stlink_usb_read_ap_mem(), stlink_usb_read_mem16(), stlink_usb_read_mem32(), stlink_usb_read_mem32_noaddrinc(), stlink_usb_read_mem8(), stlink_usb_read_reg(), stlink_usb_read_regs(), stlink_usb_read_trace(), stlink_usb_reset(), stlink_usb_run(), stlink_usb_rw_misc_in(), stlink_usb_rw_misc_out(), stlink_usb_set_jtagclk(), stlink_usb_set_swdclk(), stlink_usb_state(), stlink_usb_step(), stlink_usb_trace_disable(), stlink_usb_trace_enable(), stlink_usb_usb_open(), stlink_usb_usb_xfer_noerrcheck(), stlink_usb_version(), stlink_usb_write_ap_mem(), stlink_usb_write_debug_reg(), stlink_usb_write_mem16(), stlink_usb_write_mem32(), stlink_usb_write_mem32_noaddrinc(), stlink_usb_write_mem8(), and stlink_usb_write_reg().

◆ vid

uint16_t stlink_usb_handle::vid

Definition at line 277 of file stlink_usb.c.

Referenced by stlink_usb_version().


The documentation for this struct was generated from the following file: