/
DEF_BIT_CLR()
DEF_BIT_CLR()
Clears the appropriate bits in a value according to a specified bit mask.
Files
lib_def.h
Prototype
DEF_BIT_CLR(val, mask);
Arguments
val
Value to modify by clearing the specified bits.
mask
Mask of bits to clear in the value.
Returned Value
Modified value with specified bits clear.
Required Configuration
None.
Notes / Warnings
val
and mask
should be unsigned integers.
Example Usage
CPU_INT16U flags; CPU_INT16U flags_alarm; flags = Get current flags; flags_alarm = DEF_BIT_00 | DEF_BIT_03; DEF_BIT_CLR(flags, flags_alarm); DEF_BIT_CLR_32(</code>events<code >, flags);
Related content
DEF_BIT_SET()
DEF_BIT_SET()
More like this
DEF_BIT_IS_SET()
DEF_BIT_IS_SET()
More like this
DEF_BIT_IS_CLR()
DEF_BIT_IS_CLR()
More like this
DEF_BIT_IS_SET_ANY()
DEF_BIT_IS_SET_ANY()
More like this
DEF_BIT_IS_CLR_ANY()
DEF_BIT_IS_CLR_ANY()
More like this
DEF_BIT_TOGGLE()
DEF_BIT_TOGGLE()
More like this