AP_Common: added BIT_IS_SET_64()

This commit is contained in:
Andrew Tridgell 2022-07-21 11:13:50 +10:00
parent 4ed55d9e21
commit cda3fb6368
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@
bool. Bitnumber starts at 0 for the first bit
*/
#define BIT_IS_SET(value, bitnumber) (((value) & (1U<<(bitnumber))) != 0)
#define BIT_IS_SET_64(value, bitnumber) (((value) & (uint64_t(1U)<<(bitnumber))) != 0)
// get high or low bytes from 2 byte integer
#define LOWBYTE(i) ((uint8_t)(i))