8.6.2 Bit_is_clear Macro

A macro that returns true if a bit is clear in an SFR.

Include

<avr/sfr_defs.h>

Prototype

int _bit_is_clear(sfr, bit_number);

Remarks

This macro tests to see if the specified bit in sfr is clear, returning true if that is the case; 0 otherwise.

Example

#include <xc.h>
#include <avr/sfr_defs.h>
int main(void)
{
  if(bit_is_clear(EIMSK, PCIE2))
    proceed = 1;
}