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/udsbyte surface. - UdsCodec
Lib - 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/udsinto a context once. - uds_
codec_ symbol - Returns the runtime symbol for the UDS codec.