Versions Compared

Key

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

...

lib_def.h

Prototype

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          DEF_BIT_CLR(val, mask);


Arguments

val

Value to modify by clearing the specified bits.

...

val and mask should be unsigned integers.

Example Usage

CAPTION
Code Block
LanguageC++
CaptionText
languagecpp
          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);