Crate uds_rs

Source
Expand description

Refer to the module [uds] for all the documentation

Structs§

DataRecord
Single response entry
EcuResetResponse
ExtendedId
Extended 29-bit CAN Identifier (0..=1FFF_FFFF).
FlowControlOptions
Flow control options aka can_isotp_fc_options
IsoTpBehaviour
IsoTpOptions
ISO-TP otions aka can_isotp_options
LinkLayerOptions
Link layer options aka can_isotp_ll_options
NrcData
Struct containing rejected sid and nrc for UdsError::Enc type
ReadDataByIdentifierResponse
Response of all read_data_by_identifier methods
ReadMemoryByAddressResponse
ReportDTCSnapshotRecordByDTCNumber
Used only by 0x04
ReportDTCsResponse
Shared between 0x02, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x13, 0x15
ReportNumberOfDTCByMaskResponse
Shared between subfunctions 0x01, 0x07, 0x11, 0x12
StandardId
Standard 11-bit CAN Identifier (0..=0x7FF).
TxFlags
UdsClient
Main struct providing all API calls.
UdsSocket
WriteDataByIdentifierResponse

Enums§

DataFormat
If program was able to parse received data, the response struct will be stored in Parsed. If parsing was not successful, the Raw will contain all received data, without first byte (SID) which is encoded in UdsResponse Enum
Error
Possible errors
Id
A CAN Identifier (standard or extended).
NegativeResponseCode
So called NRC - when server (ECU) sends negative response (SID 0x7F) it is followed by NRC byte, representing the error.
ReadDTCInformationResponse
ResetType
ServiceIdentifier
Used for defining request Service Identifiers (SIDs)
UdsCommunicationError
UdsError
Containing possible errors and negative responses
UdsResponse
All possible services containing responses DataFormat represents wether the parsing into response struct was succesful

Constants§

NEGATIVE_RESPONSE_SID
SEND_RECEIVE_SID_OFFSET

Functions§

from_received_sid
to_received_sid

Type Aliases§

EcuResponseResult