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. | |
swd_swdp_t | misoswdp |
Last known read from the SW-DP register. | |
swd_swdp_t | mosiswdp |
Last known write to the SW-DP register. | |
swd_ahbap_t | misoahbap |
Last known read from AHB-AP register. | |
swd_ahbap_t | mosiahbap |
Last known write ti the AHB-AP register. |
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.