chsvlib
chsv helper source code

◆ CHECKMASKFLAG

#define CHECKMASKFLAG (   mask,
  flag 
)    (((mask) & (flag)) == (flag))

Macro for checking state of the bits specified by flags in the bit mask mask.

Parameters
flagspecifies the bits with states are to be checked
maskspecifies the mask of bits containing bits of flag
Returns
'true' if the bits of flag are set within the mask, false otherwise
Remarks
Declared in chsvbase.h.