Open Lighting Architecture
Latest Git
|
General numeric helper functions.
Functions | |
void | SplitUInt16 (uint16_t input, uint8_t *high, uint8_t *low) |
Convert a uint16_t to two uint8_t's. More... | |
uint16_t | JoinUInt8 (uint8_t high, uint8_t low) |
Convert two uint8_t's to a uint16_t. More... | |
uint32_t | JoinUInt8 (uint8_t byte0, uint8_t byte1, uint8_t byte2, uint8_t byte3) |
Convert four uint8_t's to a uint32_t. More... | |
|
inline |
Convert two uint8_t's to a uint16_t.
high | the high byte |
low | the low byte |
|
inline |
Convert four uint8_t's to a uint32_t.
byte0 | the highest byte |
byte1 | the high middle byte |
byte2 | the low middle byte |
byte3 | the lowest byte |
|
inline |
Convert a uint16_t to two uint8_t's.
[in] | input | the uint16_t to split |
[out] | high | the high byte |
[out] | low | the low byte |