![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Laelaps top deck auxilliary regulated 5V power out enable class. More...
#include <laeGpio.h>
Public Member Functions | |
LaeAux5VOutEnable () | |
Default constructor. | |
virtual | ~LaeAux5VOutEnable () |
Destructor. | |
virtual void | sync () |
Synchronized this with GPIO hardware state. | |
bool | enable () |
Enable regulated 5V power to top deck. More... | |
bool | disable () |
Disable regulated 5V power to top deck. More... | |
bool | isEnabled () |
Test if regulated 5V power to top deck is enabled. More... | |
![]() | |
LaeGpio (const std::string &strTag, const int gpio, const LaeGpio::Direction dir) | |
Default intialization constructor. More... | |
virtual | ~LaeGpio () |
Destructor. | |
virtual int | writeValue (const LaeGpio::TriState value) |
Write value to gpio. More... | |
virtual int | writeValue (const int value) |
Write value to gpio. More... | |
virtual int | readValue (int &value) |
Read current value of gpio. More... | |
int | hasValue () const |
Get the current shadowed gpio value. More... | |
bool | isConfigured () const |
Is the exported GPIO number configured to match this ojbect? More... | |
Additional Inherited Members | |
![]() | |
enum | TriState { UNKNOWN = -1, LOW = 0, HIGH = 1 } |
GPIO tri-state value. More... | |
enum | Direction { INPUT = GPIO_DIR_IN, OUTPUT = GPIO_DIR_OUT } |
GPIO direction. More... | |
![]() | |
bool | checkConfig () |
Check if the exported GPIO exists in /sys/class and that it has been configured to match this objects configuration. More... | |
![]() | |
std::string | m_gpioTag |
identifying tag | |
int | m_gpioNum |
exported GPIO number | |
LaeGpio::Direction | m_gpioDir |
GPIO direction. | |
int | m_gpioVal |
shadowed value | |
bool | m_gpioCfg |
GPIO is [not] configured (correctly) | |
Laelaps top deck auxilliary regulated 5V power out enable class.
bool LaeAux5VOutEnable::disable | ( | ) |
Disable regulated 5V power to top deck.
Definition at line 456 of file laeGpio.cxx.
References laelaps::LaeGpio::isConfigured(), laelaps::LaeGpio::m_gpioNum, laelaps::LaeGpio::m_gpioTag, laelaps::LaeGpio::m_gpioVal, laelaps::LaeGpio::sync(), laelaps::LaeGpio::UNKNOWN, and laelaps::LaeGpio::writeValue().
bool LaeAux5VOutEnable::enable | ( | ) |
Enable regulated 5V power to top deck.
Definition at line 430 of file laeGpio.cxx.
References laelaps::LaeGpio::isConfigured(), laelaps::LaeGpio::m_gpioNum, laelaps::LaeGpio::m_gpioTag, laelaps::LaeGpio::m_gpioVal, laelaps::LaeGpio::sync(), laelaps::LaeGpio::UNKNOWN, and laelaps::LaeGpio::writeValue().
bool LaeAux5VOutEnable::isEnabled | ( | ) |
Test if regulated 5V power to top deck is enabled.
Definition at line 482 of file laeGpio.cxx.
References laelaps::LaeGpio::hasValue(), laelaps::LaeGpio::HIGH, laelaps::LaeGpio::m_gpioVal, laelaps::LaeGpio::sync(), and laelaps::LaeGpio::UNKNOWN.