Function can_utils::can_fd_dlc_to_byte_count [] [src]

pub fn can_fd_dlc_to_byte_count(dlc: u8) -> u8

Converts a CAN-FD DLC into a byte count.

NOTE: According to the CAN 2.0 spec a data length of 8 can be encoded as any DLC >= 8. This function has no way of knowing the frame type, so be sure to only call it after you've verified that it's a CAN-FD frame you're dealing with.