bit_is_set()

Abstcact

The bit_is_set() is a macro that checks if the second argumen-th bit of the first argument is 1.

Source Code

The bit_is_set() is defined in hardware/tools/avr/avr/include/avr/sfr_defs.h as below.

1
#define bit_is_set(sfr, bit) (_SFR_BYTE(sfr) & _BV(bit))

It calculates the logical AND of _SFR_BYTE(str) and _BV(bit).

Version

7.3.0-atmel3.6.1-arduino7

Last Update

May 15, 2021

inserted by FC2 system