Function hid_io_protocol::hid_bitmask2vec [−][src]
pub fn hid_bitmask2vec(bitmask: &[u8]) -> Result<Vec<u8, U32>, HidIoParseError>
Converts a HID bitmask into an array of byte codes
Arguments
bitmask
- Vector of bytes (each byte is an 8 bit bitmask)
Remarks
The very first byte in the bitmask represents 0->7 and the final byte ends at 255 Opposite of keyboard_vec2bitmask. NOTE: The vector is currently restricted to 32 byte codes technically this could be a maximum of 256, but that is both impractical and unlikely. i.e. we only have 10 fingers.