![]() |
![]() |
#define PASAHO_READ_BITFIELD | ( | a, | |
b, | |||
c | |||
) | (((a)>>(b)) & ((1UL<<(c))-1)) |
PASAHO_READ_BITFIELD is used to read the specific bit fields.
It is one of the main macros for accessing configuration bit fields Input parameter a contains bit field b is bit offset withing bit field c is number of bits used by that parameter
#define PASAHO_SET_BITFIELD | ( | a, | |
x, | |||
b, | |||
c | |||
) |
(a) &= ~(((1UL<<(c))-1)<<(b)), \ (a) |= (((x) & ((1UL<<(c))-1))<<(b))
PASAHO_SET_BITFIELD is used to set the specific bit fields.
It is one of the main macros for accessing configuration bit fields Input parameter a contains bit field b is bit offset withing bit field c is number of bits used by that parameter x is new value of parameter that is packed in this bit field