PdcommSecs1EventInfo
Struct
Description of an event, filled by pdcomm_secs1_event_info().
typedef struct PdcommSecs1EventInfo { ... } PdcommSecs1EventInfoFields that do not apply to the event kind are zero.
Members
body_length
Field
Inbound only: message body length in bytes.
size_t body_lengthdevice_id
Field
Inbound only: device ID from the block header.
uint16_t device_iddirection
Field
Inbound only: #PDCOMM_SECS1_TO_HOST or #PDCOMM_SECS1_TO_EQUIPMENT, from the R-bit.
uint8_t directiondiscarded_partial
Field
Fault only: 1 when a partially received block or message was discarded.
uint8_t discarded_partialfault_detail
Field
Fault only: detail for fault_kind.
uint32_t fault_detailA PDCOMM_SECS1_IO_* value for #PDCOMM_SECS1_FAULT_IO; 0 otherwise.
fault_kind
Field
Fault only: one of the PDCOMM_SECS1_FAULT_* values.
uint32_t fault_kindfunction
Field
Inbound only: SECS-II function number.
uint8_t functionkind
Field
Event kind, one of the PDCOMM_SECS1_EVENT_* values.
uint32_t kindreply_expected
Field
Inbound only: 1 when the W-bit is set, otherwise 0.
uint8_t reply_expectedreserved
Field
Reserved; written as zero.
uint8_t reservedstream
Field
Inbound only: SECS-II stream number.
uint8_t streamstruct_size
Field
Structure size in bytes.
size_t struct_sizeSet it to sizeof(PdcommSecs1EventInfo) or larger before the call. On success the library stores the size of the layout it wrote.
system_bytes
Field
Inbound only: system bytes from the block header, in host byte order.
uint32_t system_bytestoken
Field
Submission the event refers to.
PdcommSecs1Token tokenSet for outbound events and for a fault that aborted a submission; zero otherwise.