NinjaFlight
|
Macros | |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
Functions | |
uint32_t | readBitfield (uint8_t *buffer, unsigned bitIndex, unsigned bitLen) |
#define MIN | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
uint32_t readBitfield | ( | uint8_t * | buffer, |
unsigned | bitIndex, | ||
unsigned | bitLen | ||
) |
Read a bitfield from an array of bits (the bit at index 0 being the most-significant bit of the first byte in the buffer).