iso14229 0.10.0
ISO14229-1 (UDS) C Library
Loading...
Searching...
No Matches
UDSTp_t Struct Reference

UDS Transport layer. More...

#include <iso14229.h>

Public Attributes

UDSTpSize_t(*) send (struct UDSTp *hdl, const uint8_t *buf, size_t len, const UDSSDU_t *info)
 Send data to the transport.
UDSTpSize_t(*) recv (struct UDSTp *hdl, uint8_t *buf, size_t bufsize, UDSSDU_t *info)
 Receive data from the transport.
UDSTpStatus_t(*) poll (struct UDSTp *hdl)
 Poll the transport layer.

Detailed Description

Note
implementers should embed this struct at offset zero in their own transport layer handle

Definition at line 255 of file iso14229.h.

Member Data Documentation

◆ poll

UDSTpStatus_t(*) UDSTp_t::poll(struct UDSTp *hdl)
Parameters
hdlpointer to transport handle
Note
the transport layer user is responsible for calling this function periodically
threaded implementations like linux isotp sockets don't need to do anything here.
Returns
UDS_TP_IDLE if idle, otherwise UDS_TP_SEND_IN_PROGRESS or UDS_TP_RECV_COMPLETE

Definition at line 283 of file iso14229.h.

◆ recv

UDSTpSize_t(*) UDSTp_t::recv(struct UDSTp *hdl, uint8_t *buf, size_t bufsize, UDSSDU_t *info)
Parameters
hdltransport handle
bufreceive buffer
bufsizesize of the receive buffer
infopointer to SDU info to be updated by transport implementation. May be NULL. If non-NULL, the transport implementation must populate it with valid values.

Definition at line 274 of file iso14229.h.

◆ send

UDSTpSize_t(*) UDSTp_t::send(struct UDSTp *hdl, const uint8_t *buf, size_t len, const UDSSDU_t *info)
Parameters
hdlpointer to transport handle
bufa pointer to the data to send
lenlength of data to send
infopointer to SDU info (may be NULL). If NULL, implementation should send with physical addressing

Definition at line 264 of file iso14229.h.


The documentation for this struct was generated from the following file: