Go to the source code of this file.
Defines | |
#define | BIN(x) |
because sdcc can't handle binary constats, they must be handled by this macro. | |
#define | bit_test(x, y) ( x & (1<<y) ) |
returns a positive value if bit y is set in byte x, 0 otherwise | |
#define | bit_clear(x, y) ( x&= ~(1<<y) ) |
clears bit y in byte x (sets it to 0) | |
#define | bit_set(x, y) ( x|= (1<<y) ) |
sets bit y in byte x (sets it to 1) | |
#define | bit_zeros(x) |
returns the number of 0-bits in the byte | |
#define | bit_ones(x) |
returns the number of 1-bits in the byte | |
#define | boolean bool |
defines boolean as an alias for bool |
Definition in file sdccutils.h.
|
Value: because sdcc can't handle binary constats, they must be handled by this macro. example: byte y= BIN(11000101); Definition at line 14 of file sdccutils.h. Referenced by RFArbitration(), RFArbitrationBit(), RFArbitrationBitDebug(), and RFSendPacket(). |