![]() |
Open Lighting Architecture
0.9.6
|
Uses data in a DMXBuffer to drive GPIO pins.
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 | |
![]() | |
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 ThreadId | Self () |
Returns the current thread's id. |
|
explicit |
Create a new GPIODriver.
options | the Options struct. |
bool ola::plugin::gpio::GPIODriver::Init | ( | ) |
Initialize the GPIODriver.
|
inline |
Get a list of the GPIO pins controlled by this driver.
bool ola::plugin::gpio::GPIODriver::SendDmx | ( | const DmxBuffer & | dmx | ) |
Set the values of the GPIO pins from the data in the DMXBuffer.
dmx | the DmxBuffer with the values to use. |