CARMA C++
carma::canbus::GpioDio Class Reference

GpioDio class for use with gpio framework. More...

#include <carma/canbus/GpioDio.h>

Inheritance diagram for carma::canbus::GpioDio:
carma::canbus::Dio

Public Member Functions

void clear ()
 Clear (unassert) all lines. More...
 
 GpioDio ()
 Constructor for emulation. More...
 
 GpioDio (std::vector< int > basePins, bool resetOnStart)
 Constructor. More...
 
void powerOff ()
 Unassert the 'power' line. More...
 
void powerOn ()
 Assert the 'power' line. More...
 
void reservedHi ()
 Assert the 'reserved' line. More...
 
void reservedLo ()
 Unassert the 'reserved' line. More...
 
void resetHi ()
 Assert the reset line. More...
 
void resetLo ()
 Unassert the 'reset' line. More...
 
 ~GpioDio ()
 Destructor. More...
 
- Public Member Functions inherited from carma::canbus::Dio
virtual ~Dio ()
 Destructor. More...
 

Detailed Description

GpioDio class for use with gpio framework.

Definition at line 24 of file GpioDio.h.

Constructor & Destructor Documentation

carma::canbus::GpioDio::GpioDio ( )

Constructor for emulation.

carma::canbus::GpioDio::GpioDio ( std::vector< int >  basePins,
bool  resetOnStart 
)

Constructor.

Parameters
baseGpioPinsBase gpio pin numbers, separate by atleast 8.
resetOnStartwill write a resetHi to Dio immediately following startup. This is useful for placing devices in a known state until the user is ready to start them by reasserting the line low.
carma::canbus::GpioDio::~GpioDio ( )

Destructor.

Member Function Documentation

void carma::canbus::GpioDio::clear ( )
virtual

Clear (unassert) all lines.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.

void carma::canbus::GpioDio::powerOff ( )
virtual

Unassert the 'power' line.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.

void carma::canbus::GpioDio::powerOn ( )
virtual

Assert the 'power' line.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.

void carma::canbus::GpioDio::reservedHi ( )
virtual

Assert the 'reserved' line.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.

void carma::canbus::GpioDio::reservedLo ( )
virtual

Unassert the 'reserved' line.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.

void carma::canbus::GpioDio::resetHi ( )
virtual

Assert the reset line.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.

void carma::canbus::GpioDio::resetLo ( )
virtual

Unassert the 'reset' line.

Exceptions
carma::canbus::ErrorExceptionon error.

Implements carma::canbus::Dio.


The documentation for this class was generated from the following file: