Skip to content
Start free evaluation

pdcomm_tcp_is_pending

Function

Reports whether a transaction is still waiting for its response.

PdcommStatus pdcomm_tcp_is_pending(PdcommTcpEndpoint *endpoint, PdcommTcpToken token, uint8_t *pending)

Declared in: #include <pdcomm_tcp.h>

Tokens of W0 requests are never pending. This call works while an event is staged.

Parameters

NameDescription
endpointLive endpoint.
tokenToken to check; reserved must be 0.
pendingReceives 1 when the transaction is open, otherwise 0; set to 0 first. Must not be NULL.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when pending or endpoint is NULL, or token.reserved is nonzero; #PDCOMM_STALE_TOKEN when the token belongs to another endpoint or an earlier generation; #PDCOMM_POISONED.