jtag_callback_t is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

jtag_callback_t

Defines the interface of the JTAG callback mechanism. Such callbacks can be executed once the queue has been flushed. The JTAG queue can be executed synchronously or asynchronously. Typically for USB, the queue is executed asynchronously. For low-latency interfaces, the queue may be executed synchronously. The callback mechanism is very general and does not make many assumptions about what the callback does or what its arguments are. These callbacks are typically executed *after* the *entire* JTAG queue has been executed for e.g. USB interfaces, and they are guaranteed to be invoked in the order that they were queued. If the execution of the queue fails before the callbacks, then -- depending on driver implementation -- the callbacks may or may not be invoked. @todo Make that behavior consistent.

Syntax

typedef int (*jtag_callback_t)(jtag_callback_data_t data0, jtag_callback_data_t data1, jtag_callback_data_t data2, jtag_callback_data_t data3);