GpioPinBase Class Reference
|
Space-ng SDK
|
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
sol3::gpio::impl::GpioPinBase Class Reference
#include <sol3/gpio/gpio.h>
Inheritance diagram for sol3::gpio::impl::GpioPinBase:
Public Member Functions | |
| GpioPinBase (GpioPinBase &&other) noexcept | |
| GpioPinBase & | operator= (GpioPinBase &&other) noexcept |
| GpioPinBase (GpioPinBase const &)=delete | |
| GpioPinBase & | operator= (GpioPinBase const &)=delete |
Protected Member Functions | |
| ~GpioPinBase () | |
| GpioPinBase (GpioPinId pin, GpioPinManager *manager, int value_fd) | |
| Protected constructor - only derived classes can create. More... | |
Protected Attributes | |
| GpioPinId | pin_ |
| GpioPinManager * | manager_ |
| int | value_fd_ |
Friends | |
| class | GpioPinManager |
Detailed Description
Base class for RAII GPIO pin wrappers, GpioInputPin and GpioOutputPin
This class is used to maintain a "reservation" with GpioPinManager for a particular pin to prevent other threads or contexts from invalidating the configuration while this pin is in use. Maintains an open file descriptor to the value file for the pin, for efficient reading and writing of pin values. Automatically releases the pin from GpioPinManager and closes value file when destroyed.
Constructor & Destructor Documentation
◆ GpioPinBase() [1/3]
|
noexcept |
◆ GpioPinBase() [2/3]
|
delete |
◆ ~GpioPinBase()
|
protected |
◆ GpioPinBase() [3/3]
|
protected |
Protected constructor - only derived classes can create.
Member Function Documentation
◆ operator=() [1/2]
|
noexcept |
◆ operator=() [2/2]
|
delete |
Friends And Related Function Documentation
◆ GpioPinManager
|
friend |
Member Data Documentation
◆ manager_
|
protected |
◆ pin_
|
protected |
◆ value_fd_
|
protected |
The documentation for this class was generated from the following file:
- /workspaces/astro/sol3-sdk/cpp/sol3/gpio/gpio.h
Generated by