|
Speeduino
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
9#define BIT_SET(var,pos) ((var) |= (1U<<(pos)))
12#define BIT_CLEAR(var,pos) ((var) &= ~(1U<<(pos)))
15#define BIT_CHECK(var,pos) !!((var) & (1U<<(pos)))
18#define BIT_TOGGLE(var,pos) ((var)^= 1UL << (pos))
21#define BIT_WRITE(var, pos, bitvalue) ((bitvalue) ? BIT_SET((var), (pos)) : BIT_CLEAR((var), (pos)))