|
libgpiod
|
Namespace containing various type definitions for GPIO lines. More...
Classes | |
| class | offset |
| Wrapper around unsigned int for representing line offsets. More... | |
Typedefs | |
| using | offsets = ::std::vector<offset> |
| Vector of line offsets. | |
| using | values = ::std::vector<value> |
| Vector of line values. | |
| using | value_mapping = ::std::pair<offset, value> |
| Represents a mapping of a line offset to line logical state. | |
| using | value_mappings = ::std::vector<value_mapping> |
| Vector of offset->value mappings. Each mapping is defined as a pair of an unsigned and signed integers. | |
Enumerations | |
| enum class | value { INACTIVE = 0 , ACTIVE = 1 } |
| Logical line states. More... | |
| enum class | direction { AS_IS = 1 , INPUT , OUTPUT } |
| Direction settings. More... | |
| enum class | edge { NONE = 1 , RISING , FALLING , BOTH } |
| Edge detection settings. More... | |
| enum class | bias { AS_IS = 1 , UNKNOWN , DISABLED , PULL_UP , PULL_DOWN } |
| Internal bias settings. More... | |
| enum class | drive { PUSH_PULL = 1 , OPEN_DRAIN , OPEN_SOURCE } |
| Drive settings. More... | |
| enum class | clock { MONOTONIC = 1 , REALTIME , HTE } |
| Event clock settings. More... | |
Functions | |
| ::std::ostream & | operator<< (::std::ostream &out, value val) |
| Stream insertion operator for logical line values. | |
| ::std::ostream & | operator<< (::std::ostream &out, direction dir) |
| Stream insertion operator for direction values. | |
| ::std::ostream & | operator<< (::std::ostream &out, edge edge) |
| Stream insertion operator for edge detection values. | |
| ::std::ostream & | operator<< (::std::ostream &out, bias bias) |
| Stream insertion operator for bias values. | |
| ::std::ostream & | operator<< (::std::ostream &out, drive drive) |
| Stream insertion operator for drive values. | |
| ::std::ostream & | operator<< (::std::ostream &out, clock clock) |
| Stream insertion operator for event clock values. | |
| ::std::ostream & | operator<< (::std::ostream &out, const values &vals) |
| Stream insertion operator for the list of output values. | |
| ::std::ostream & | operator<< (::std::ostream &out, const offsets &offs) |
| Stream insertion operator for the list of line offsets. | |
| ::std::ostream & | operator<< (::std::ostream &out, const value_mapping &mapping) |
| Stream insertion operator for the offset-to-value mapping. | |
| ::std::ostream & | operator<< (::std::ostream &out, const value_mappings &mappings) |
| Stream insertion operator for the list of offset-to-value mappings. | |
Namespace containing various type definitions for GPIO lines.
| using gpiod::line::offsets = ::std::vector<offset> |
Vector of line offsets.
| using gpiod::line::value_mapping = ::std::pair<offset, value> |
Represents a mapping of a line offset to line logical state.
| using gpiod::line::value_mappings = ::std::vector<value_mapping> |
Vector of offset->value mappings. Each mapping is defined as a pair of an unsigned and signed integers.
| using gpiod::line::values = ::std::vector<value> |
Vector of line values.
|
strong |
|
strong |
|
strong |
Direction settings.
| Enumerator | |
|---|---|
| AS_IS | Request the line(s), but don't change current direction. |
| INPUT | Direction is input - we're reading the state of a GPIO line. |
| OUTPUT | Direction is output - we're driving the GPIO line. |
|
strong |
|
strong |
|
strong |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| bias | bias ) |
Stream insertion operator for bias values.
| out | Output stream. |
| bias | Value to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| clock | clock ) |
Stream insertion operator for event clock values.
| out | Output stream. |
| clock | Value to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| const offsets & | offs ) |
Stream insertion operator for the list of line offsets.
| out | Output stream. |
| offs | Object to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| const value_mapping & | mapping ) |
Stream insertion operator for the offset-to-value mapping.
| out | Output stream. |
| mapping | Value to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| const value_mappings & | mappings ) |
Stream insertion operator for the list of offset-to-value mappings.
| out | Output stream. |
| mappings | Object to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| const values & | vals ) |
Stream insertion operator for the list of output values.
| out | Output stream. |
| vals | Object to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| direction | dir ) |
Stream insertion operator for direction values.
| out | Output stream. |
| dir | Value to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| drive | drive ) |
Stream insertion operator for drive values.
| out | Output stream. |
| drive | Value to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| edge | edge ) |
Stream insertion operator for edge detection values.
| out | Output stream. |
| edge | Value to insert into the output stream in a human-readable form. |
| ::std::ostream & gpiod::line::operator<< | ( | ::std::ostream & | out, |
| value | val ) |
Stream insertion operator for logical line values.
| out | Output stream. |
| val | Value to insert into the output stream in a human-readable form. |