Global namespace for Piduino.
More...
|
| enum | AccessLayer {
AccessLayerAuto = 0
, AccessLayerIoMap = 0x0001
, AccessLayerSysFs = 0x0002
, AccessLayerGpioDev = 0x0004
,
AccessLayerAll = AccessLayerIoMap + AccessLayerGpioDev
, AccessLayerUnk = -1
} |
| | Enumerates the possible hardware access layers for GPIO operations. More...
|
| |
| enum class | Argument { no = 0
, required
, optional
} |
| | Option's argument type. More...
|
| |
| enum class | Attribute {
inactive = 0
, hidden = 1
, required = 2
, optional = 3
,
advanced = 4
, expert = 5
} |
| | Option's attribute. More...
|
| |
| enum class | OptionName { unspecified
, short_name
, long_name
} |
| | Option name type. Used in invalid_option exception. More...
|
| |
Global namespace for Piduino.
◆ Option_ptr
◆ AccessLayer
Enumerates the possible hardware access layers for GPIO operations.
The AccessLayer enum defines the different mechanisms by which a GPIO pin can be accessed and controlled at the system level. These layers represent various interfaces provided by the operating system or hardware abstraction, allowing flexible and platform-specific access to GPIO functionality.
- AccessLayerAuto: Automatically select the most appropriate access layer.
- AccessLayerIoMap: Use memory-mapped I/O for direct hardware access.
- AccessLayerSysFs: Use the sysfs interface provided by the Linux kernel.
- AccessLayerGpioDev: Use the /dev/gpiochip character device interface.
- AccessLayerAll: Enable all supported access layers.
- AccessLayerUnk: Unknown or uninitialized access layer.
| Enumerator |
|---|
| AccessLayerAuto | |
| AccessLayerIoMap | |
| AccessLayerSysFs | |
| AccessLayerGpioDev | |
| AccessLayerAll | |
| AccessLayerUnk | |
Definition at line 48 of file gpiopin.h.
◆ Argument
Option's argument type.
Switch has "no" argument Value has "required" argument Implicit has "optional" argument
| Enumerator |
|---|
| no | |
| required | |
| optional | |
Definition at line 45 of file popl.h.
◆ Attribute
Option's attribute.
inactive: Option is not set and will not be parsed hidden: Option is active, but will not show up in the help message required: Option must be set on the command line. Otherwise an exception will be thrown optional: Option must not be set. Default attribute. advanced: Option is advanced and will only show up in the advanced help message expoert: Option is expert and will only show up in the expert help message
| Enumerator |
|---|
| inactive | |
| hidden | |
| required | |
| optional | |
| advanced | |
| expert | |
Definition at line 61 of file popl.h.
◆ OptionName
Option name type. Used in invalid_option exception.
unspecified: not specified short_name: The option's short name long_name: The option's long name
| Enumerator |
|---|
| unspecified | |
| short_name | |
| long_name | |
Definition at line 77 of file popl.h.
◆ fileno()
template<typename charT , typename traits >
| int Piduino::fileno |
( |
const std::basic_ios< charT, traits > & |
stream | ) |
|
Map a stream pointer to a file descriptor.
Returns the integer file descriptor associated with the C++ stream pointed to by stream.
◆ operator<<() [1/2]
| std::ostream & Piduino::operator<< |
( |
std::ostream & |
__os, |
|
|
_Setpriority |
__p |
|
) |
| |
|
inline |
◆ operator<<() [2/2]
| static std::ostream & Piduino::operator<< |
( |
std::ostream & |
out, |
|
|
const OptionParser & |
op |
|
) |
| |
|
inlinestatic |
◆ setpriority()
◆ db
◆ SPI
◆ Syslog
◆ system
◆ Wire
Global I2cDev object for convenient access to the default I2C bus.