Browse Source

AP_Common: added BIT_IS_SET_64()

master_rangefinder
Andrew Tridgell 3 years ago
parent
commit
cda3fb6368
  1. 1
      libraries/AP_Common/AP_Common.h

1
libraries/AP_Common/AP_Common.h

@ -88,6 +88,7 @@ @@ -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…
Cancel
Save