Implement CAN datagram encoding