Returns the data length code that encodes a payload length.
The payload length in bytes.
The code, rounding up to the next length CAN-FD can carry.
Returns the data length code that encodes a payload length.