PdcommSecs1State
Struct
Snapshot of an endpoint, filled by pdcomm_secs1_state().
typedef struct PdcommSecs1State { ... } PdcommSecs1StateMembers
endpoint_id
Field
Process-unique, nonzero endpoint identifier.
uint64_t endpoint_idfaulted
Field
1 while a terminal fault is active, until pdcomm_secs1_reset() or stop.
uint8_t faultedgeneration
Field
Current generation; starts at 1 and grows with each restart after stop.
uint64_t generationpoisoned
Field
1 after a contained panic poisoned the endpoint; otherwise 0.
uint8_t poisonedEvery other endpoint call then returns #PDCOMM_POISONED; destroy the endpoint and create a new one.
started
Field
1 after pdcomm_secs1_start() until pdcomm_secs1_stop(); otherwise 0.
uint8_t startedstopped
Field
1 after pdcomm_secs1_stop() until the next start; otherwise 0.
uint8_t stoppedstruct_size
Field
Structure size in bytes.
size_t struct_sizeSet it to sizeof(PdcommSecs1State) or larger before the call. On success the library stores the size of the layout it wrote.