Toggles specified bit(s) in a value.
Files
lib_def.h
Prototype
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
DEF_BIT_TOGGLE(val, mask);
|
Arguments
val
Value to modify by toggling the specified bits.
mask
Mask of bits to toggle.
Returned Value
Modified value with specified bit(s) toggled.
Required Configuration
None.
Notes / Warnings
val
and mask
SHOULD be unsigned integers.