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

UDS server structure. More...

#include <iso14229.h>

Collaboration diagram for UDSServer_t:
Collaboration graph
[legend]

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

UDS server structure.

Definition at line 850 of file iso14229.h.

Member Data Documentation

◆ ecuResetScheduled

uint8_t UDSServer_t::ecuResetScheduled

nonzero indicates that an ECUReset has been scheduled

Definition at line 862 of file iso14229.h.

◆ ecuResetTimer

uint32_t UDSServer_t::ecuResetTimer

for delaying resetting until a response has been sent

Definition at line 863 of file iso14229.h.

◆ fn

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

callback function

Definition at line 852 of file iso14229.h.

◆ fn_data

void* UDSServer_t::fn_data

user-specified function data

Definition at line 853 of file iso14229.h.

◆ notReadyToReceive

bool UDSServer_t::notReadyToReceive

UDS-1 2013 defines the following conditions under which the server does not process incoming requests:

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

◆ p2_ms

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.

◆ p2_star_ms

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.

◆ p2_timer

uint32_t UDSServer_t::p2_timer

for rate limiting server responses

Definition at line 864 of file iso14229.h.

◆ r

UDSReq_t UDSServer_t::r

request context

Definition at line 899 of file iso14229.h.

◆ RCRRP

bool UDSServer_t::RCRRP

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

Definition at line 885 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 886 of file iso14229.h.

◆ s3_ms

uint16_t UDSServer_t::s3_ms

Session timeout

Definition at line 860 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 865 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 866 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 867 of file iso14229.h.

◆ securityLevel

uint8_t UDSServer_t::securityLevel

SecurityAccess (0x27) level

Definition at line 883 of file iso14229.h.

◆ sessionType

uint8_t UDSServer_t::sessionType

diagnostic session type (0x10)

Definition at line 882 of file iso14229.h.

◆ tp

UDSTp_t* UDSServer_t::tp

transport layer handle

Definition at line 851 of file iso14229.h.

◆ xferBlockLength

size_t UDSServer_t::xferBlockLength

block length (convenience for the TransferData API)

Definition at line 880 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 876 of file iso14229.h.

◆ xferByteCounter

size_t UDSServer_t::xferByteCounter

total number of bytes transferred

Definition at line 879 of file iso14229.h.

◆ xferIsActive

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.

◆ xferTotalBytes

size_t UDSServer_t::xferTotalBytes

total transfer size in bytes requested by the client

Definition at line 878 of file iso14229.h.


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