Skip to main content

Crate sim_codec_uds

Crate sim_codec_uds 

Source
Expand description

UDS and OBD-II byte-frame codec for SIM automotive diagnostics.

The runtime codec symbol is codec/uds. It reads diagnostic bytes and emits inert Expr::Map records for read-DID requests/responses, OBD-II mode requests, and DTC responses. Encoding those records produces the original bytes. DTC status bytes are decoded into the shared auto/DtcStatus shape without adding fault descriptions or proprietary traces.

Structs§

DtcFrame
A raw DTC plus its status byte.
UdsCodec
Decoder and encoder for the codec/uds byte surface.
UdsCodecLib
Host-registered library that installs codec/uds.

Enums§

UdsFrame
A decoded diagnostic frame supported by codec/uds.

Statics§

RECIPES
Cookbook recipes for this codec, embedded at build time.

Functions§

decode_dtc_status
Decodes a UDS DTC status byte into the automotive status citizen.
decode_frame
Decodes supported diagnostic bytes into a frame.
dtc_status_expr
Decodes a UDS DTC status byte into an expression map.
encode_frame
Encodes a supported diagnostic frame to bytes.
install_uds_codec_lib
Installs codec/uds into a context once.
uds_codec_symbol
Returns the runtime symbol for the UDS codec.