Skip to main content

extract_raw

Function extract_raw 

Source
pub fn extract_raw(
    start_bit: u16,
    bit_length: u8,
    byte_order: ByteOrder,
    data: &[u8],
) -> u64
Expand description

Extracts bit_length raw bits laid out per byte_order, MSB-aligned into the low bits of the result.

Total: positions beyond the buffer contribute zero bits (partial frames decode as if the missing bytes were zero — documented semantics, chosen to match common CAN tooling on underrun payloads).