SMDFBitNIsSet

Checks if a bit is set.

Syntax

  #include <smsutapi.h> 
   
  int SMDFBitNIsSet ( 
     unsigned char   c);
  

Parameters

c

(IN) Specifies the bit to test.

Return Values

The following table lists the return values associated with the function.

0x00000000

Bit N is not set.

nonzero

Bit N is set.

Remarks

SMDFBitNIsSet is actually a set of macros where N stands for the bit to be tested. N ranges from 1 to 6 as shown below:

  SMDFBit1IsSet Checks if bit 0 is set 
  SMDFBit6IsSet Checks if bit 6 is set