Syntax
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
ContentsIndex
PreviousUpNext
bitRead
Syntax
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
Description

Reads a bit of a number.

Parameters
Parameters 
Description 
the number from which to read
 
which bit to read, starting at 0 for the least-significant (rightmost) bit  
Returns

the value of the bit (0 or 1).

File

wiring_constants.h

Group