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. More... | |
using | values = ::std::vector< value > |
Vector of line values. More... | |
using | value_mapping = ::std::pair< offset, value > |
Represents a mapping of a line offset to line logical state. More... | |
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. More... | |
Enumerations | |
enum | value { value::INACTIVE = 0, value::ACTIVE = 1 } |
Logical line states. More... | |
enum | direction { direction::AS_IS = 1, direction::INPUT, direction::OUTPUT } |
Direction settings. More... | |
enum | edge { edge::NONE = 1, edge::RISING, edge::FALLING, edge::BOTH } |
Edge detection settings. More... | |
enum | bias { bias::AS_IS = 1, bias::UNKNOWN, bias::DISABLED, bias::PULL_UP, bias::PULL_DOWN } |
Internal bias settings. More... | |
enum | drive { drive::PUSH_PULL = 1, drive::OPEN_DRAIN, drive::OPEN_SOURCE } |
Drive settings. More... | |
enum | clock { clock::MONOTONIC = 1, clock::REALTIME, clock::HTE } |
Event clock settings. More... | |
Functions | |
::std::ostream & | operator<< (::std::ostream &out, value val) |
Stream insertion operator for logical line values. More... | |
::std::ostream & | operator<< (::std::ostream &out, direction dir) |
Stream insertion operator for direction values. More... | |
::std::ostream & | operator<< (::std::ostream &out, edge edge) |
Stream insertion operator for edge detection values. More... | |
::std::ostream & | operator<< (::std::ostream &out, bias bias) |
Stream insertion operator for bias values. More... | |
::std::ostream & | operator<< (::std::ostream &out, drive drive) |
Stream insertion operator for drive values. More... | |
::std::ostream & | operator<< (::std::ostream &out, clock clock) |
Stream insertion operator for event clock values. More... | |
::std::ostream & | operator<< (::std::ostream &out, const values &vals) |
Stream insertion operator for the list of output values. More... | |
::std::ostream & | operator<< (::std::ostream &out, const offsets &offs) |
Stream insertion operator for the list of line offsets. More... | |
::std::ostream & | operator<< (::std::ostream &out, const value_mapping &mapping) |
Stream insertion operator for the offset-to-value mapping. More... | |
::std::ostream & | operator<< (::std::ostream &out, const value_mappings &mappings) |
Stream insertion operator for the list of offset-to-value mappings. More... | |
Namespace containing various type definitions for GPIO lines.
using gpiod::line::offsets = typedef ::std::vector<offset> |
Vector of line offsets.
using gpiod::line::value_mapping = typedef ::std::pair<offset, value> |
Represents a mapping of a line offset to line logical state.
using gpiod::line::value_mappings = typedef ::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 = typedef ::std::vector<value> |
Vector of line values.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
::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. |
::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, |
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, |
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, |
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, |
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 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, |
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. |