Public Attributes

swd_cmd_t Struct Reference

SWD Command Element Structure. More...

#include <libswd.h>

List of all members.

Public Attributes

union {
   char   TRNnMOSI
 < Payload data union.
   char   request
 Request header data.
   char   ack
 Acknowledge response from target.
   int   misodata
 Data read from target (MISO).
   int   mosidata
 Data written to target (MOSI).
   char   misobit
 Single bit read from target (bit-per-char).
   char   mosibit
 Single bit written to target (bit-per-char).
   char   parity
 Parity bit for data payload.
   char   control
 Control transfer data (one byte).
}; 
char bits
 Payload bit count == clk pulses on the bus.
char cmdtype
 Command type as defined by swd_cmdtype_t.
char done
 Non-zero if operation already executed.
struct swd_cmd_tprev
struct swd_cmd_tnext
 Pointer to the previous/next command.

Detailed Description

SWD Command Element Structure.

In libswd each operation is split into separate commands (request, trn, ack, data, parity) that can be appended to the command queue and later executed. This organization allows better granularity for tracing bugs and makes possible to compose complete bus/target operations made of simple commands.


Member Data Documentation

< Payload data union.

Holds/sets bus direction: MOSI when zero, MISO for other.


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