PdcommSecs1Message
Struct
A message to send with pdcomm_secs1_submit().
typedef struct PdcommSecs1Message { ... } PdcommSecs1MessageThe fields map to the SEMI E4 block header. The endpoint splits the body into blocks of at most 244 bytes, numbers them from 1, and sets the E-bit on the last block.
Members
body
Field
Message body, normally one encoded SECS-II item.
const uint8_t *bodyThe bytes are sent as given and are not parsed. May be NULL when body_length is 0.
body_length
Field
Number of bytes at body.
size_t body_lengthdevice_id
Field
Device ID, 0 to 32767.
uint16_t device_iddirection
Field
Direction that sets the R-bit: #PDCOMM_SECS1_TO_HOST or #PDCOMM_SECS1_TO_EQUIPMENT.
uint8_t directionfunction
Field
SECS-II function number, 0 to 255.
uint8_t functionreply_expected
Field
W-bit: 1 when the sender expects a reply, otherwise 0.
uint8_t reply_expectedreserved
Field
Reserved; must be zero.
uint16_t reservedstream
Field
SECS-II stream number, 0 to 127.
uint8_t streamstruct_size
Field
Size of this structure in bytes; set to sizeof(PdcommSecs1Message) or larger.
size_t struct_sizesystem_bytes
Field
System bytes of the block header.
uint32_t system_bytesWritten to the wire in big-endian order. The application chooses them; a reply carries the system bytes of its primary message.
version
Field
Structure version; must be #PDCOMM_SECS1_MESSAGE_VERSION.
uint32_t version