Module data

Module data 

Source
Expand description

Module providing utility traits for accessing and mutating CAN-bus data.

The CANRead trait provides methods and retrieve the DLC, the number of available bytes, and a data slice that is read-only. In theory, only the data slice is needed since one can retrieve the DLC from the slice as well.

The CANWrite trait provides one additional methods. The mut_data method allows for mutating the slice.

Traitsยง

CANRead
A trait providing methods for accessing the underlying bytes of some CAN-bus data.
CANWrite
A trait providing methods for accessing the underlying data in a mutable fashion.