[][src]Function hid_io::protocol::hidio::packet_id_width

pub fn packet_id_width(
    packet_data: &mut Vec<u8>
) -> Result<usize, HIDIOParseError>

Determines id_width from a byte stream

Arguments

Remarks

Uses a packet byte stream to determine packet id_width.

struct HIDIO_Packet {
   ... (4 bits)
   uint8_t           id_width:1;  // 0 - 16bits, 1 - 32bits
   ...
};