libgpiodcxx line definitions

class offset

Wrapper around unsigned int for representing line offsets.

Public Functions

inline offset(unsigned int off = 0)

Constructor with implicit conversion from unsigned int.

Parameters:

off – Line offset.

offset(const offset &other) = default

Copy constructor.

Parameters:

other – Object to copy.

offset(offset &&other) = default

Move constructor.

Parameters:

other – Object to move.

offset &operator=(const offset &other) = default

Assignment operator.

Parameters:

other – Object to copy.

Returns:

Reference to self.

offset &operator=(offset &&other) noexcept = default

Move assignment operator.

Parameters:

other – Object to move.

Returns:

Reference to self.

inline operator unsigned int() const noexcept

Conversion operator to unsigned int.

enum class gpiod::line::value

Logical line states.

Values:

enumerator INACTIVE

Line is inactive.

enumerator ACTIVE

Line is active.

enum class gpiod::line::direction

Direction settings.

Values:

enumerator AS_IS

Request the line(s), but don’t change current direction.

enumerator INPUT

Direction is input - we’re reading the state of a GPIO line.

enumerator OUTPUT

Direction is output - we’re driving the GPIO line.

enum class gpiod::line::edge

Edge detection settings.

Values:

enumerator NONE

Line edge detection is disabled.

enumerator RISING

Line detects rising edge events.

enumerator FALLING

Line detect falling edge events.

enumerator BOTH

Line detects both rising and falling edge events.

enum class gpiod::line::bias

Internal bias settings.

Values:

enumerator AS_IS

Don’t change the bias setting when applying line config.

enumerator UNKNOWN

The internal bias state is unknown.

enumerator DISABLED

The internal bias is disabled.

enumerator PULL_UP

The internal pull-up bias is enabled.

enumerator PULL_DOWN

The internal pull-down bias is enabled.

enum class gpiod::line::drive

Drive settings.

Values:

enumerator PUSH_PULL

Drive setting is push-pull.

enumerator OPEN_DRAIN

Line output is open-drain.

enumerator OPEN_SOURCE

Line output is open-source.

enum class gpiod::line::clock

Event clock settings.

Values:

enumerator MONOTONIC

Line uses the monotonic clock for edge event timestamps.

enumerator REALTIME

Line uses the realtime clock for edge event timestamps.

enumerator HTE