DUNE: Uniform Navigational Environment
2.4.2
|
Public Types | |
enum | Direction { GPIO_DIR_INPUT, GPIO_DIR_OUTPUT } |
Public Member Functions | |
GPIO (unsigned int number) | |
~GPIO (void) | |
void | setDirection (Direction direction) |
void | setDirection (const std::string &direction) |
void | setValue (bool value) |
bool | getValue (void) |
DUNE::Hardware::GPIO::GPIO | ( | unsigned int | number | ) |
DUNE::Hardware::GPIO::~GPIO | ( | void | ) |
Default destructor.
bool DUNE::Hardware::GPIO::getValue | ( | void | ) |
void DUNE::Hardware::GPIO::setDirection | ( | Direction | direction | ) |
Set GPIO direction.
[in] | direction | GPIO direction. |
References GPIO_DIR_INPUT.
Referenced by setDirection().
void DUNE::Hardware::GPIO::setDirection | ( | const std::string & | direction | ) |
Set GPIO direction.
[in] | direction | "input" or "output". |
References GPIO_DIR_INPUT, GPIO_DIR_OUTPUT, and setDirection().
void DUNE::Hardware::GPIO::setValue | ( | bool | value | ) |