| 
    OpenOCD
    
   | 
 
Data Fields | |
| int(* | init )(void) | 
| Initialize the debug link so it can perform SWD operations.  More... | |
| void(* | read_reg )(uint8_t cmd, uint32_t *value, uint32_t ap_delay_hint) | 
| Queued read of an AP or DP register.  More... | |
| int(* | run )(void) | 
| Execute any queued transactions and collect the result.  More... | |
| int(* | switch_seq )(enum swd_special_seq seq) | 
| Queue a special SWDIO sequence.  More... | |
| int *(* | trace )(bool swo) | 
| Configures data collection from the Single-wire trace (SWO) signal.  More... | |
| void(* | write_reg )(uint8_t cmd, uint32_t value, uint32_t ap_delay_hint) | 
| Queued write of an AP or DP register.  More... | |
| int(* swd_driver::init) (void) | 
Initialize the debug link so it can perform SWD operations.
As an example, this would switch a dual-mode debug adapter into SWD mode and out of JTAG mode.
Definition at line 255 of file swd.h.
Referenced by swd_select().
| void(* swd_driver::read_reg) (uint8_t cmd, uint32_t *value, uint32_t ap_delay_hint) | 
Queued read of an AP or DP register.
| Command | byte with APnDP/RnW/addr/parity bits | 
| Where | to store value to read from register | 
| ap_delay_hint | Number of idle cycles that may be needed after an AP access to avoid WAITs or zero in case of DP read. | 
Definition at line 275 of file swd.h.
Referenced by swd_finish_read(), swd_queue_ap_read(), swd_queue_dp_read_inner(), and swd_select().
| int(* swd_driver::run) (void) | 
Execute any queued transactions and collect the result.
Definition at line 294 of file swd.h.
Referenced by swd_run_inner().
| int(* swd_driver::switch_seq) (enum swd_special_seq seq) | 
Queue a special SWDIO sequence.
| seq | The special sequence to generate. | 
Definition at line 264 of file swd.h.
Referenced by swd_send_sequence().
| int*(* swd_driver::trace) (bool swo) | 
Configures data collection from the Single-wire trace (SWO) signal.
| swo | true if SWO data collection should be routed. | 
For example, some debug adapters include a UART which is normally connected to a microcontroller's UART TX, but which may instead be connected to SWO for use in collecting ITM (and possibly ETM) trace data.
| void(* swd_driver::write_reg) (uint8_t cmd, uint32_t value, uint32_t ap_delay_hint) | 
Queued write of an AP or DP register.
| Command | byte with APnDP/RnW/addr/parity bits | 
| Value | to be written to the register | 
| ap_delay_hint | Number of idle cycles that may be needed after an AP access to avoid WAITs or zero in case of DP write. | 
Definition at line 286 of file swd.h.
Referenced by swd_clear_sticky_errors(), swd_queue_ap_abort(), swd_queue_ap_write(), swd_queue_dp_write_inner(), and swd_select().