Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Toggles specified bit(s) in a value.

Files

lib_def.h

Prototype

Code Block
languagecpp
          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.