|
isotp-c
Platform-independent ISO 15765-2 transport for embedded C
|
State for one independent, full-duplex ISO-TP conversation. More...
#include <isotp.h>
Data Fields | |
| int32_t | send_protocol_result |
| uint8_t | send_status |
| int | receive_protocol_result |
| uint8_t | receive_status |
| void * | user_send_can_arg |
State for one independent, full-duplex ISO-TP conversation.
Allocate one link for each conversation that can have independent send or receive state. Initialise it with isotp_init_link() before use and keep the object and its buffers alive for the complete lifetime of the link.
Calls that access the same link must be serialised. Applications may observe the documented status/result members and set user_send_can_arg when enabled; all other members are implementation state.
| int IsoTpLink::receive_protocol_result |
| uint8_t IsoTpLink::receive_status |
Current IsoTpReceiveStatusTypes value. Prefer isotp_receive() to consume completed data.
| int32_t IsoTpLink::send_protocol_result |
| uint8_t IsoTpLink::send_status |
Current IsoTpSendStatusTypes value.
| void* IsoTpLink::user_send_can_arg |
Application value passed to isotp_user_send_can() for this link.
Set this after isotp_init_link(), which initially clears it to NULL. A CAN controller or driver context pointer is a typical value.