|
isotp-c
Platform-independent ISO 15765-2 transport for embedded C
|
Copy and consume the next available chunk of an incoming message.
Copy and consume the next available chunk of an incoming message.This function supports both oversized streaming messages and messages that fit in the normal receive buffer. Consuming an intermediate chunk emits a Continue Flow Control frame when more wire data is needed.
| [in,out] | link | Initialised link, or NULL. |
| [out] | payload | Destination for the complete available chunk, or NULL. |
| [in] | payload_size | Capacity of payload. |
| [out] | out_size | Number of bytes copied, or NULL. |
| [out] | is_complete | Set to true when this chunk ends the message, or NULL. |
| ISOTP_RET_OK | A chunk was copied. |
| ISOTP_RET_NO_DATA | No chunk is currently available. |
| ISOTP_RET_NOSPACE | The destination cannot hold the available chunk; the chunk remains available. |
| ISOTP_RET_ERROR | Any required pointer is NULL. |