Skip to content
Start free evaluation

pdcomm_secs1_reset

Function

Clears a terminal fault so the endpoint can transfer messages again.

PdcommStatus pdcomm_secs1_reset(PdcommSecs1Endpoint *endpoint)

Declared in: #include <pdcomm_secs1.h>

Returns the line to idle and discards pending writes, the aborted submission, and partially received data. Queued events, the generation, and submission numbering are kept.

Parameters

NameDescription
endpointStarted, faulted endpoint.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when endpoint is NULL; #PDCOMM_BACKPRESSURE when a staged event must be retrieved first; #PDCOMM_INVALID_STATE when the endpoint is not started, is stopped, or is not faulted, or on a wrong-thread, concurrent, or reentrant call; #PDCOMM_POISONED when the endpoint is poisoned.

Notes

  • Thread safety: call only on the creating thread.