Functions for framing and unframing packets, and computing their checksums
Computes a packet’s checksums
Formats an hid command
Extracts the packet’s data by looking at its first byte for its length