iso14229 0.9.0
ISO14229-1 (UDS) C Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
UDSTp_t Struct Reference

UDS Transport layer. More...

#include <iso14229.h>

Public Attributes

ssize_t(* send )(struct UDSTp *hdl, uint8_t *buf, size_t len, UDSSDU_t *info)
 Send data to the transport.
 
ssize_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

UDS Transport layer.

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

Definition at line 254 of file iso14229.h.

Member Data Documentation

◆ poll

UDSTpStatus_t(* UDSTp_t::poll) (struct UDSTp *hdl)

Poll the transport layer.

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 282 of file iso14229.h.

◆ recv

ssize_t(* UDSTp_t::recv) (struct UDSTp *hdl, uint8_t *buf, size_t bufsize, UDSSDU_t *info)

Receive data from the transport.

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 273 of file iso14229.h.

◆ send

ssize_t(* UDSTp_t::send) (struct UDSTp *hdl, uint8_t *buf, size_t len, UDSSDU_t *info)

Send data to the transport.

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 263 of file iso14229.h.


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