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.