Crate auto_uds

Source
Expand description

§auto_uds (renamed to automotive_diag)

GitHub crates.io version docs.rs docs CI build

This deprecated crate provides low-level no_std structs and enums of the Unified Diagnostic Services specification for the road vehicles iso-14229-1 in Rust.

§DEPRECATED (renamed)

This crate has been renamed to automotive_diag. All code was moved to the uds namespace.

Macros§

enum_wrapper

Structs§

Scaling
Scaling value with both the ScalingType and the size of the data.

Enums§

ByteWrapperDeprecated
A wrapper around a byte, which can be either an ISO-standardized value for a specific enum, or an implementation-specific/invalid Extended value wrapping original byte.
CommunicationLevelDeprecated
Communication level toggle
CommunicationTypeDeprecated
ECU Communication types
DtcSubFunctionDeprecated
UdsCommand::ReadDTCInformation sub-function definitions
ResetTypeDeprecated
Reset ECU subcommand
ScalingExtensionDeprecated
Scaling data byte extensions This enum is used to represent the following:
ScalingTypeDeprecated
Scaling high nibble, representing the type of data without its size. The size is given by the low nibble.
SecurityOperationDeprecated
Security operation request
SubnetDeprecated
ECU communication subnet type
UdsCommandDeprecated
UDS Command Service IDs
UdsErrorDeprecated
UDS Error definitions
UdsSessionTypeDeprecated
UDS Diagnostic session modes. Handled by SID 0x10

Functions§

decode_communication_type
Decode communication type and subnet from a single byte. If the low 4 bits are not a valid communication type, the low 4 bits are returned as an error.
encode_communication_type
Encode communication type and subnet into a single byte

Type Aliases§

CommunicationLevelByte
Store a single byte, either as a Standard(CommunicationLevel), or as an Extended(u8).
DtcSubFunctionByte
Store a single byte, either as a Standard(DtcSubFunction), or as an Extended(u8).
ResetTypeByte
Store a single byte, either as a Standard(ResetType), or as an Extended(u8).
ScalingByte
Store a single byte, either as a Standard(Scaling), or as an Extended(u8).
ScalingExtensionByte
Store a single byte, either as a Standard(ScalingExtension), or as an Extended(u8).
SecurityOperationByte
Store a single byte, either as a Standard(SecurityOperation), or as an Extended(u8).
UdsCommandByte
Store a single byte, either as a Standard(UdsCommand), or as an Extended(u8).
UdsErrorByte
Store a single byte, either as a Standard(UdsError), or as an Extended(u8).
UdsSessionTypeByte
Store a single byte, either as a Standard(UdsSessionType), or as an Extended(u8).