GPIO line definitions
- group line_defs
These defines are used across the API.
Enums
-
enum gpiod_line_value
Logical line state.
Values:
-
enumerator GPIOD_LINE_VALUE_ERROR
Returned to indicate an error when reading the value.
-
enumerator GPIOD_LINE_VALUE_INACTIVE
Line is logically inactive.
-
enumerator GPIOD_LINE_VALUE_ACTIVE
Line is logically active.
-
enumerator GPIOD_LINE_VALUE_ERROR
-
enum gpiod_line_direction
Direction settings.
Values:
-
enumerator GPIOD_LINE_DIRECTION_AS_IS
Request the line(s), but don’t change direction.
-
enumerator GPIOD_LINE_DIRECTION_INPUT
Direction is input - for reading the value of an externally driven GPIO line.
-
enumerator GPIOD_LINE_DIRECTION_OUTPUT
Direction is output - for driving the GPIO line.
-
enumerator GPIOD_LINE_DIRECTION_AS_IS
-
enum gpiod_line_edge
Edge detection settings.
Values:
-
enumerator GPIOD_LINE_EDGE_NONE
Line edge detection is disabled.
-
enumerator GPIOD_LINE_EDGE_RISING
Line detects rising edge events.
-
enumerator GPIOD_LINE_EDGE_FALLING
Line detects falling edge events.
-
enumerator GPIOD_LINE_EDGE_BOTH
Line detects both rising and falling edge events.
-
enumerator GPIOD_LINE_EDGE_NONE
-
enum gpiod_line_bias
Internal bias settings.
Values:
-
enumerator GPIOD_LINE_BIAS_AS_IS
Don’t change the bias setting when applying line config.
-
enumerator GPIOD_LINE_BIAS_UNKNOWN
The internal bias state is unknown.
-
enumerator GPIOD_LINE_BIAS_DISABLED
The internal bias is disabled.
-
enumerator GPIOD_LINE_BIAS_PULL_UP
The internal pull-up bias is enabled.
-
enumerator GPIOD_LINE_BIAS_PULL_DOWN
The internal pull-down bias is enabled.
-
enumerator GPIOD_LINE_BIAS_AS_IS
-
enum gpiod_line_drive
Drive settings.
Values:
-
enumerator GPIOD_LINE_DRIVE_PUSH_PULL
Drive setting is push-pull.
-
enumerator GPIOD_LINE_DRIVE_OPEN_DRAIN
Line output is open-drain.
-
enumerator GPIOD_LINE_DRIVE_OPEN_SOURCE
Line output is open-source.
-
enumerator GPIOD_LINE_DRIVE_PUSH_PULL
-
enum gpiod_line_clock
Clock settings.
Values:
-
enumerator GPIOD_LINE_CLOCK_MONOTONIC
Line uses the monotonic clock for edge event timestamps.
-
enumerator GPIOD_LINE_CLOCK_REALTIME
Line uses the realtime clock for edge event timestamps.
-
enumerator GPIOD_LINE_CLOCK_HTE
Line uses the hardware timestamp engine for event timestamps.
-
enumerator GPIOD_LINE_CLOCK_MONOTONIC
-
enum gpiod_line_value