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

UDS Transport layer. More...

#include <iso14229.h>

Classes

struct  [struct].status
 status flag (read-only) More...

Public Attributes

UDSErr_t(*) send (struct UDSTp *hdl, const uint8_t *buf, const size_t len, const UDSSDU_t *info)
 Send data to the transport.
UDSErr_t(*) recv (struct UDSTp *hdl, uint8_t *buf, size_t bufsiz, size_t *recvlen, UDSSDU_t *info)
 Receive data from the transport.
UDSErr_t(*) poll (struct UDSTp *hdl)
 Poll the transport layer.
struct  status

Detailed Description

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

Definition at line 561 of file iso14229.h.

Member Data Documentation

◆ poll

UDSErr_t(*) UDSTp_t::poll(struct UDSTp *hdl)
Parameters
hdlpointer to transport handle
Note

Definition at line 591 of file iso14229.h.

◆ recv

UDSErr_t(*) UDSTp_t::recv(struct UDSTp *hdl, uint8_t *buf, size_t bufsiz, size_t *recvlen, UDSSDU_t *info)
Parameters
hdltransport handle
bufreceive buffer
bufsizsize of receive buffer
recvlennumber of bytes actually received
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.
Returns
UDS_OK if successful

Definition at line 583 of file iso14229.h.

◆ send

UDSErr_t(*) UDSTp_t::send(struct UDSTp *hdl, const uint8_t *buf, const 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
Returns
UDS_OK if successful

Definition at line 571 of file iso14229.h.


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