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

UDS server structure. More...

#include <iso14229.h>

Collaboration diagram for UDSServer_t:

Public Attributes

UDSTp_ttp
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

Detailed Description

Definition at line 920 of file iso14229.h.

Member Data Documentation

◆ ecuResetScheduled

uint8_t UDSServer_t::ecuResetScheduled

nonzero indicates that an ECUReset has been scheduled

Definition at line 932 of file iso14229.h.

◆ ecuResetTimer

uint32_t UDSServer_t::ecuResetTimer

for delaying resetting until a response has been sent

Definition at line 933 of file iso14229.h.

◆ fn

UDSErr_t(*) UDSServer_t::fn(struct UDSServer *srv, UDSEvent_t event, void *arg)

callback function

Definition at line 922 of file iso14229.h.

◆ fn_data

void* UDSServer_t::fn_data

user-specified function data

Definition at line 923 of file iso14229.h.

◆ notReadyToReceive

bool UDSServer_t::notReadyToReceive
  • not ready to receive (Table A.1 0x78)
  • not accepting request messages and not sending responses (9.3.1)

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

◆ p2_ms

uint16_t UDSServer_t::p2_ms

Default P2_server_max timing supported by the server

Definition at line 928 of file iso14229.h.

◆ p2_star_ms

uint32_t UDSServer_t::p2_star_ms

Enhanced (NRC 0x78) P2_server_max supported by the server

Definition at line 929 of file iso14229.h.

◆ p2_timer

uint32_t UDSServer_t::p2_timer

for rate limiting server responses

Definition at line 934 of file iso14229.h.

◆ r

UDSReq_t UDSServer_t::r

request context

Definition at line 969 of file iso14229.h.

◆ RCRRP

bool UDSServer_t::RCRRP

set to true when user fn returns 0x78 and false otherwise

Definition at line 955 of file iso14229.h.

◆ requestInProgress

bool UDSServer_t::requestInProgress

set to true when a request has been processed but the response has not yet been sent

Definition at line 956 of file iso14229.h.

◆ s3_ms

uint16_t UDSServer_t::s3_ms

Session timeout

Definition at line 930 of file iso14229.h.

◆ s3_session_timeout_timer

uint32_t UDSServer_t::s3_session_timeout_timer

indicates that diagnostic session has timed out

Definition at line 935 of file iso14229.h.

◆ sec_access_auth_fail_timer

uint32_t UDSServer_t::sec_access_auth_fail_timer

brute-force hardening: rate limit security access

Definition at line 936 of file iso14229.h.

◆ sec_access_boot_delay_timer

uint32_t UDSServer_t::sec_access_boot_delay_timer

brute-force hardening: restrict security access until timer expires

Definition at line 937 of file iso14229.h.

◆ securityLevel

uint8_t UDSServer_t::securityLevel

SecurityAccess (0x27) level

Definition at line 953 of file iso14229.h.

◆ sessionType

uint8_t UDSServer_t::sessionType

diagnostic session type (0x10)

Definition at line 952 of file iso14229.h.

◆ tp

UDSTp_t* UDSServer_t::tp

transport layer handle

Definition at line 921 of file iso14229.h.

◆ xferBlockLength

size_t UDSServer_t::xferBlockLength

block length (convenience for the TransferData API)

Definition at line 950 of file iso14229.h.

◆ xferBlockSequenceCounter

uint8_t UDSServer_t::xferBlockSequenceCounter

UDS-1-2013: 14.4.2.3, Table 404: block sequence counter starts at 0x01

Definition at line 946 of file iso14229.h.

◆ xferByteCounter

size_t UDSServer_t::xferByteCounter

total number of bytes transferred

Definition at line 949 of file iso14229.h.

◆ xferIsActive

bool UDSServer_t::xferIsActive

transfer is active

Definition at line 945 of file iso14229.h.

◆ xferTotalBytes

size_t UDSServer_t::xferTotalBytes

total transfer size in bytes requested by the client

Definition at line 948 of file iso14229.h.


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