libgpiod  1.6.2
Macros
Common helper macros

Commonly used utility macros. More...

Macros

#define GPIOD_API   __attribute__((visibility("default")))
 Makes symbol visible.
 
#define GPIOD_UNUSED   __attribute__((unused))
 Marks a function argument or variable as potentially unused.
 
#define GPIOD_BIT(nr)   (1UL << (nr))
 Shift 1 by given offset. More...
 
#define GPIOD_DEPRECATED   __attribute__((deprecated))
 Marks a public function as deprecated.
 

Detailed Description

Commonly used utility macros.

Macro Definition Documentation

◆ GPIOD_BIT

#define GPIOD_BIT (   nr)    (1UL << (nr))

Shift 1 by given offset.

Parameters
nrBit position.
Returns
1 shifted by nr.

Definition at line 74 of file gpiod.h.