Skip to main content

Crate damiao_codec

Crate damiao_codec 

Source
Expand description

Damiao motor codec — implements [motor_codec::MotorCodec] for the Damiao CAN protocol.

All Damiao-specific behavior (motor SKU table, MIT bit-packing, CAN-ID offsets, the 0x7FF parameter sub-protocol exposed via DamiaoCodecExt) is confined to this crate. can-motor-control depends on [motor_codec] only; adding a future vendor (Robostride, MyActuator) is an additive crate with the same shape.

Structs§

DamiaoCodec
Damiao motor codec.

Enums§

DamiaoMotorType
Damiao motor SKUs supported by v1 of this codec.
DamiaoRid
Register IDs for the Damiao parameter sub-protocol (CAN ID 0x7FF).

Constants§

VENDOR_NAME
Vendor short-name can-motor-control’s CodecRegistry uses to look up Damiao.

Traits§

DamiaoCodecExt
Damiao-only extension: read/write per-motor parameters on CAN ID 0x7FF.

Functions§

parse_motor_type
Look up a Damiao SKU by string (used by the TOML loader to resolve type = "DM4340" config fields).