Closed Levi-Lesches closed 2 years ago
There's some helpful code in arm-firmware that could be used in the other firmware repositories:
arm-firmware
struct split_uint16 { char byte1; char byte2; }
split_uint16 split_int(unsigned short num);
- Recombine two bytes into a `short` (two bytes) ```cpp unsigned short recombine(char a, char b);
short getCanID(char nodeID, char commandID);
There's some helpful code in
arm-firmware
that could be used in the other firmware repositories:split_uint16 split_int(unsigned short num);