OpenOCD
dap_ops Struct Reference

Transport-neutral representation of queued DAP transactions, supporting both JTAG and SWD transports. More...

Data Fields

int(* connect )(struct adiv5_dap *dap)
 connect operation for SWD More...
 
int(* pre_connect_init )(struct adiv5_dap *dap)
 Optional; called once on the first enabled dap before connecting. More...
 
int(* queue_ap_abort )(struct adiv5_dap *dap, uint8_t *ack)
 AP operation abort. More...
 
int(* queue_ap_read )(struct adiv5_ap *ap, unsigned int reg, uint32_t *data)
 AP register read. More...
 
int(* queue_ap_write )(struct adiv5_ap *ap, unsigned int reg, uint32_t data)
 AP register write. More...
 
int(* queue_dp_read )(struct adiv5_dap *dap, unsigned int reg, uint32_t *data)
 DP register read. More...
 
int(* queue_dp_write )(struct adiv5_dap *dap, unsigned int reg, uint32_t data)
 DP register write. More...
 
void(* quit )(struct adiv5_dap *dap)
 Optional; called at OpenOCD exit. More...
 
int(* run )(struct adiv5_dap *dap)
 Executes all queued DAP operations. More...
 
int(* send_sequence )(struct adiv5_dap *dap, enum swd_special_seq seq)
 send a sequence to the DAP More...
 
int(* sync )(struct adiv5_dap *dap)
 Executes all queued DAP operations but doesn't check sticky error conditions. More...
 

Detailed Description

Transport-neutral representation of queued DAP transactions, supporting both JTAG and SWD transports.

All submitted transactions are logically queued, until the queue is executed by run(). Some implementations might execute transactions as soon as they're submitted, but no status is made available until run().

Definition at line 446 of file arm_adi_v5.h.

Field Documentation

◆ connect

int(* dap_ops::connect) (struct adiv5_dap *dap)

connect operation for SWD

Definition at line 451 of file arm_adi_v5.h.

Referenced by dap_dp_init_or_reconnect(), and dap_init_all().

◆ pre_connect_init

int(* dap_ops::pre_connect_init) (struct adiv5_dap *dap)

Optional; called once on the first enabled dap before connecting.

Definition at line 448 of file arm_adi_v5.h.

Referenced by dap_init_all().

◆ queue_ap_abort

int(* dap_ops::queue_ap_abort) (struct adiv5_dap *dap, uint8_t *ack)

AP operation abort.

Definition at line 471 of file arm_adi_v5.h.

Referenced by dap_queue_ap_abort().

◆ queue_ap_read

int(* dap_ops::queue_ap_read) (struct adiv5_ap *ap, unsigned int reg, uint32_t *data)

AP register read.

Definition at line 464 of file arm_adi_v5.h.

Referenced by dap_queue_ap_read().

◆ queue_ap_write

int(* dap_ops::queue_ap_write) (struct adiv5_ap *ap, unsigned int reg, uint32_t data)

AP register write.

Definition at line 467 of file arm_adi_v5.h.

Referenced by dap_queue_ap_write().

◆ queue_dp_read

int(* dap_ops::queue_dp_read) (struct adiv5_dap *dap, unsigned int reg, uint32_t *data)

DP register read.

Definition at line 457 of file arm_adi_v5.h.

Referenced by dap_init_all(), and dap_queue_dp_read().

◆ queue_dp_write

int(* dap_ops::queue_dp_write) (struct adiv5_dap *dap, unsigned int reg, uint32_t data)

DP register write.

Definition at line 460 of file arm_adi_v5.h.

Referenced by dap_queue_dp_write().

◆ quit

void(* dap_ops::quit) (struct adiv5_dap *dap)

Optional; called at OpenOCD exit.

Definition at line 481 of file arm_adi_v5.h.

Referenced by dap_cleanup_all().

◆ run

int(* dap_ops::run) (struct adiv5_dap *dap)

Executes all queued DAP operations.

Definition at line 474 of file arm_adi_v5.h.

Referenced by dap_run().

◆ send_sequence

int(* dap_ops::send_sequence) (struct adiv5_dap *dap, enum swd_special_seq seq)

send a sequence to the DAP

Definition at line 454 of file arm_adi_v5.h.

Referenced by dap_send_sequence().

◆ sync

int(* dap_ops::sync) (struct adiv5_dap *dap)

Executes all queued DAP operations but doesn't check sticky error conditions.

Definition at line 478 of file arm_adi_v5.h.

Referenced by dap_sync().


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