iso14229 0.9.0
ISO14229-1 (UDS) C Library
|
UDS server structure. More...
#include <iso14229.h>
Public Attributes | |
UDSTp_t * | tp |
UDSErr_t(* | fn )(struct UDSServer *srv, UDSEvent_t event, void *arg) |
void * | fn_data |
uint16_t | p2_ms |
Server time constants (milliseconds) | |
uint32_t | p2_star_ms |
uint16_t | s3_ms |
uint8_t | ecuResetScheduled |
uint32_t | ecuResetTimer |
uint32_t | p2_timer |
uint32_t | s3_session_timeout_timer |
uint32_t | sec_access_auth_fail_timer |
uint32_t | sec_access_boot_delay_timer |
bool | xferIsActive |
UDS-1-2013: Table 407 - 0x36 TransferData Supported negative response codes requires that the server keep track of whether the transfer is active. | |
uint8_t | xferBlockSequenceCounter |
size_t | xferTotalBytes |
size_t | xferByteCounter |
size_t | xferBlockLength |
uint8_t | sessionType |
uint8_t | securityLevel |
bool | RCRRP |
bool | requestInProgress |
bool | notReadyToReceive |
UDS-1 2013 defines the following conditions under which the server does not process incoming requests: | |
UDSReq_t | r |
UDS server structure.
Definition at line 850 of file iso14229.h.
uint8_t UDSServer_t::ecuResetScheduled |
nonzero indicates that an ECUReset has been scheduled
Definition at line 862 of file iso14229.h.
uint32_t UDSServer_t::ecuResetTimer |
for delaying resetting until a response has been sent
Definition at line 863 of file iso14229.h.
UDSErr_t(* UDSServer_t::fn) (struct UDSServer *srv, UDSEvent_t event, void *arg) |
callback function
Definition at line 852 of file iso14229.h.
void* UDSServer_t::fn_data |
user-specified function data
Definition at line 853 of file iso14229.h.
bool UDSServer_t::notReadyToReceive |
UDS-1 2013 defines the following conditions under which the server does not process incoming requests:
when this variable is set to true, incoming ISO-TP data will not be processed. incoming ISO-TP data will not be processed
Definition at line 897 of file iso14229.h.
uint16_t UDSServer_t::p2_ms |
Server time constants (milliseconds)
Default P2_server_max timing supported by the server
Definition at line 858 of file iso14229.h.
uint32_t UDSServer_t::p2_star_ms |
Enhanced (NRC 0x78) P2_server_max supported by the server
Definition at line 859 of file iso14229.h.
uint32_t UDSServer_t::p2_timer |
for rate limiting server responses
Definition at line 864 of file iso14229.h.
UDSReq_t UDSServer_t::r |
request context
Definition at line 899 of file iso14229.h.
bool UDSServer_t::RCRRP |
set to true when user fn returns 0x78 and false otherwise
Definition at line 885 of file iso14229.h.
bool UDSServer_t::requestInProgress |
set to true when a request has been processed but the response has not yet been sent
Definition at line 886 of file iso14229.h.
uint16_t UDSServer_t::s3_ms |
Session timeout
Definition at line 860 of file iso14229.h.
uint32_t UDSServer_t::s3_session_timeout_timer |
indicates that diagnostic session has timed out
Definition at line 865 of file iso14229.h.
uint32_t UDSServer_t::sec_access_auth_fail_timer |
brute-force hardening: rate limit security access
Definition at line 866 of file iso14229.h.
uint32_t UDSServer_t::sec_access_boot_delay_timer |
brute-force hardening: restrict security access until timer expires
Definition at line 867 of file iso14229.h.
uint8_t UDSServer_t::securityLevel |
SecurityAccess (0x27) level
Definition at line 883 of file iso14229.h.
uint8_t UDSServer_t::sessionType |
diagnostic session type (0x10)
Definition at line 882 of file iso14229.h.
UDSTp_t* UDSServer_t::tp |
transport layer handle
Definition at line 851 of file iso14229.h.
size_t UDSServer_t::xferBlockLength |
block length (convenience for the TransferData API)
Definition at line 880 of file iso14229.h.
uint8_t UDSServer_t::xferBlockSequenceCounter |
UDS-1-2013: 14.4.2.3, Table 404: block sequence counter starts at 0x01
Definition at line 876 of file iso14229.h.
size_t UDSServer_t::xferByteCounter |
total number of bytes transferred
Definition at line 879 of file iso14229.h.
bool UDSServer_t::xferIsActive |
UDS-1-2013: Table 407 - 0x36 TransferData Supported negative response codes requires that the server keep track of whether the transfer is active.
transfer is active
Definition at line 875 of file iso14229.h.
size_t UDSServer_t::xferTotalBytes |
total transfer size in bytes requested by the client
Definition at line 878 of file iso14229.h.