Model Railroad System
2.2.1
|
Output pin, initialized to high, inverted. More...
Public Member Functions | |
GpioOutputSafeHighInvert (name,...) | |
Constructor, used to set up the GPIO pin. More... | |
~GpioOutputSafeHighInvert () | |
Destructor. More... | |
Set () | |
Set the pin to true (logic low). More... | |
Clr () | |
Set the pin to false (logic high). More... | |
Get () | |
Get the pin's logic state. More... | |
Private Attributes | |
basepin | |
The base pin. More... | |
Output pin, initialized to high, inverted.
name | Name of the pin. |
... | Options:
|
linuxgpio::GpioOutputSafeHighInvert::GpioOutputSafeHighInvert | ( | name | , |
... | |||
) |
Constructor, used to set up the GPIO pin.
The pin number is written to the export control file and then the pin's diection control file is computed and the pin's direction is written.
name | The name of the pin. |
... | Options:
|
linuxgpio::GpioOutputSafeHighInvert::~GpioOutputSafeHighInvert | ( | ) |
Destructor.
Unexport the pin.
linuxgpio::GpioOutputSafeHighInvert::Clr | ( | ) |
Set the pin to false (logic high).
linuxgpio::GpioOutputSafeHighInvert::Get | ( | ) |
Get the pin's logic state.
linuxgpio::GpioOutputSafeHighInvert::Set | ( | ) |
Set the pin to true (logic low).
|
private |
The base pin.