Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
ola::plugin::gpio::GPIODriver Class Reference

Detailed Description

Uses data in a DMXBuffer to drive GPIO pins.

Inheritance diagram for ola::plugin::gpio::GPIODriver:
Inheritance graph
[legend]
Collaboration diagram for ola::plugin::gpio::GPIODriver:
Collaboration graph
[legend]

Classes

struct  GPIOPin
struct  Options
 The Options. More...

Public Member Functions

 GPIODriver (const Options &options)
 Create a new GPIODriver.
 ~GPIODriver ()
 Destructor.
bool Init ()
 Initialize the GPIODriver.
std::vector< uint8_t > PinList () const
 Get a list of the GPIO pins controlled by this driver.
bool SendDmx (const DmxBuffer &dmx)
 Set the values of the GPIO pins from the data in the DMXBuffer.
void * Run ()

Additional Inherited Members

- Private Member Functions inherited from ola::thread::Thread
 Thread (const Options &options=Options())
 Create a new thread with the specified thread options.
virtual ~Thread ()
 Destructor.
virtual bool Start ()
 Start the thread and wait for the thread to be running.
virtual bool FastStart ()
 Start the thread and return immediately.
virtual bool Join (void *ptr=NULL)
 Join this thread.
bool IsRunning ()
 Check if the thread is running.
ThreadId Id () const
 Return the thread id.
std::string Name () const
 Return the thread name.
virtual void * Run ()=0
 The entry point for the new thread.
- Static Private Member Functions inherited from ola::thread::Thread
static ThreadId Self ()
 Returns the current thread's id.

Constructor & Destructor Documentation

ola::plugin::gpio::GPIODriver::GPIODriver ( const Options options)
explicit

Create a new GPIODriver.

Parameters
optionsthe Options struct.

Member Function Documentation

bool ola::plugin::gpio::GPIODriver::Init ( )

Initialize the GPIODriver.

Returns
true is successful, false otherwise.
std::vector<uint8_t> ola::plugin::gpio::GPIODriver::PinList ( ) const
inline

Get a list of the GPIO pins controlled by this driver.

Returns
A list of GPIO pin numbers.
bool ola::plugin::gpio::GPIODriver::SendDmx ( const DmxBuffer dmx)

Set the values of the GPIO pins from the data in the DMXBuffer.

Parameters
dmxthe DmxBuffer with the values to use.
Returns
true is the GPIO pins were updated.

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