Skip to main content

frame_payload

Function frame_payload 

Source
pub fn frame_payload(buf: &[u8]) -> Option<Vec<u8>>
Expand description

Decode the payload of one complete message at the front of a raw HID report buffer. Returns an owned Vec<u8> with report IDs and padding stripped.