SWD Context Structure definition. More...
#include <libswd.h>
Public Attributes | |
swd_cmd_t * | cmdq |
Command queue, stores all bus operations. | |
swd_context_config_t | config |
Target specific configuration. | |
swd_driver_t * | driver |
Pointer to the interface driver structure. | |
struct { | |
swd_swdp_t dp_r | |
Last known read from the SW-DP registers. | |
swd_swdp_t dp_w | |
Last known write to the SW-DP registers. | |
swd_ahbap_t ap_r | |
Last known read from AHB-AP registers. | |
swd_ahbap_t ap_w | |
Last known write ti the AHB-AP registers. | |
swd_transaction_t transaction | |
} | log |
SWD Context Structure definition.
It stores all the information about the library, drivers and interface configuration, target status along with DAP/AHBAP data/instruction internal registers, and the command queue. Bus operations are stored on the command queue. There may be more than one context in use by a host software, each one for single interface-target pair. Most of the target operations made with libswd are required to pass swd_ctx_t pointer structure that also remembers last known state of the target's internal registers.