#define bitRead(value, bit) (((value) >> (bit)) & 0x01) | #define bitRead(value, bit) (((value) >> (bit)) & 0x01) | ||||
#define bitSet(value, bit) ((value) |= (1UL << (bit))) | #define bitSet(value, bit) ((value) |= (1UL << (bit))) | ||||
#define bitClear(value, bit) ((value) &= ~(1UL << (bit))) | #define bitClear(value, bit) ((value) &= ~(1UL << (bit))) | ||||
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit)) | |||||
#define bitWrite(value, bit, bitvalue) ((bitvalue) ? bitSet((value), (bit)) : bitClear((value), (bit))) | |||||
typedef unsigned int word; | typedef unsigned int word; | ||||
#define bitRead(value, bit) (((value) >> (bit)) & 0x01) | #define bitRead(value, bit) (((value) >> (bit)) & 0x01) | ||||
#define bitSet(value, bit) ((value) |= (1UL << (bit))) | #define bitSet(value, bit) ((value) |= (1UL << (bit))) | ||||
#define bitClear(value, bit) ((value) &= ~(1UL << (bit))) | #define bitClear(value, bit) ((value) &= ~(1UL << (bit))) | ||||
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit)) | |||||
#define bitWrite(value, bit, bitvalue) ((bitvalue) ? bitSet((value), (bit)) : bitClear((value), (bit))) | |||||
typedef unsigned int word; | typedef unsigned int word; | ||||