Public Attributes

swd_ctx_t Struct Reference

SWD Context Structure definition. More...

#include <libswd.h>

List of all members.

Public Attributes

swd_cmd_tcmdq
 Command queue, stores all bus operations.
swd_context_config_t config
 Target specific configuration.
swd_driver_tdriver
 Pointer to the interface driver structure.
swd_swdp_t misoswdp
 Last known read from the SW-DP registers.
swd_swdp_t mosiswdp
 Last known write to the SW-DP registers.
swd_ahbap_t misoahbap
 Last known read from AHB-AP registers.
swd_ahbap_t mosiahbap
 Last known write ti the AHB-AP registers.

Detailed Description

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.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines