mirror of https://github.com/ArduPilot/ardupilot
AP_Common: added BIT_IS_SET_64()
This commit is contained in:
parent
4ed55d9e21
commit
cda3fb6368
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue