Go to the source code of this file.
Defines |
#define | BITCLR(c, b) (c &= ~(1<<b)) |
#define | BITREAD(c, b) (c & (1<<b)) |
#define | BITSET(c, b) (c |= (1<<b)) |
#define | BITTOG(c, b) (c ^= (1<<b)) |
#define | false 0 |
#define | true 1 |
Define Documentation
#define BITCLR |
( |
|
c, |
|
|
|
b |
|
) |
| (c &= ~(1<<b)) |
CLEARS the specified bit b inside a c byte/char. (Dspl. bit, then one complement everything then AND with char)
Definition at line 31 of file utils.h.
#define BITREAD |
( |
|
c, |
|
|
|
b |
|
) |
| (c & (1<<b)) |
READS the specified bit b inside a c byte/char
Definition at line 22 of file utils.h.
#define BITSET |
( |
|
c, |
|
|
|
b |
|
) |
| (c |= (1<<b)) |
SETS the specified bit b inside a c byte/char
Definition at line 26 of file utils.h.
#define BITTOG |
( |
|
c, |
|
|
|
b |
|
) |
| (c ^= (1<<b)) |
TOGGLES bit value. (XOR)
Definition at line 35 of file utils.h.