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(* queue_ap_abort )(struct adiv5_dap *dap, uint8_t *ack)
 AP operation abort. More...
 
int(* queue_ap_read )(struct adiv5_ap *ap, unsigned reg, uint32_t *data)
 AP register read. More...
 
int(* queue_ap_write )(struct adiv5_ap *ap, unsigned reg, uint32_t data)
 AP register write. More...
 
int(* queue_dp_read )(struct adiv5_dap *dap, unsigned reg, uint32_t *data)
 DP register read. More...
 
int(* queue_dp_write )(struct adiv5_dap *dap, unsigned 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 408 of file arm_adi_v5.h.

Field Documentation

◆ connect

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

connect operation for SWD

Definition at line 410 of file arm_adi_v5.h.

Referenced by dap_dp_init_or_reconnect(), and 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 430 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 reg, uint32_t *data)

AP register read.

Definition at line 423 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 reg, uint32_t data)

AP register write.

Definition at line 426 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 reg, uint32_t *data)

DP register read.

Definition at line 416 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 reg, uint32_t data)

DP register write.

Definition at line 419 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 440 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 433 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 413 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 437 of file arm_adi_v5.h.

Referenced by dap_sync().


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