BinghamtonRover / Firmware-Utilities

A shared implementation of the CAN bus protocol for Arduino-based microcontrollers.
https://BinghamtonRover.github.io/burt-can/
2 stars 0 forks source link

Add utility functions to CAN library #3

Closed Levi-Lesches closed 2 years ago

Levi-Lesches commented 2 years ago

There's some helpful code in arm-firmware that could be used in the other firmware repositories:

split_uint16 split_int(unsigned short num);

- Recombine two bytes into a `short` (two bytes)
```cpp
unsigned short recombine(char a, char b);