libgpiod 1.6.3
Macros
Common helper macros

Commonly used utility macros. More...

Macros

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

Detailed Description

Commonly used utility macros.

Macro Definition Documentation

◆ GPIOD_API

#define GPIOD_API   __attribute__((visibility("default")))

Makes symbol visible.

Definition at line 62 of file gpiod.h.

◆ 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.

◆ GPIOD_DEPRECATED

#define GPIOD_DEPRECATED   __attribute__((deprecated))

Marks a public function as deprecated.

Definition at line 79 of file gpiod.h.

◆ GPIOD_UNUSED

#define GPIOD_UNUSED   __attribute__((unused))

Marks a function argument or variable as potentially unused.

Definition at line 67 of file gpiod.h.