Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Protected Member Functions | List of all members
ola::plugin::spi::HardwareBackend Class Reference

Detailed Description

A HardwareBackend which uses GPIO pins and an external de-multiplexer

Inheritance diagram for ola::plugin::spi::HardwareBackend:
Inheritance graph
Collaboration diagram for ola::plugin::spi::HardwareBackend:
Collaboration graph


struct  Options

Public Member Functions

 HardwareBackend (const Options &options, SPIWriterInterface *writer, ExportMap *export_map)
bool Init ()
uint8_t * Checkout (uint8_t output, unsigned int length)
uint8_t * Checkout (uint8_t output, unsigned int length, unsigned int latch_bytes)
void Commit (uint8_t output)
std::string DevicePath () const
- Public Member Functions inherited from ola::thread::Thread
 Thread (const Options &options=Options())
 Create a new thread with the specified thread options. More...
virtual ~Thread ()
virtual bool Start ()
 Start the thread and wait for the thread to be running. More...
virtual bool FastStart ()
 Start the thread and return immediately. More...
virtual bool Join (void *ptr=NULL)
 Join this thread. More...
bool IsRunning ()
 Check if the thread is running. More...
ThreadId Id () const
 Return the thread id. More...
std::string Name () const
 Return the thread name. More...

Protected Member Functions

void * Run ()
 The entry point for the new thread. More...

Additional Inherited Members

- Static Public Member Functions inherited from ola::thread::Thread
static ThreadId Self ()
 Returns the current thread's id. More...
- Static Protected Attributes inherited from ola::plugin::spi::SPIBackendInterface
static const char SPI_DROP_VAR [] = "spi-drops"
static const char SPI_DROP_VAR_KEY [] = "device"

Member Function Documentation

void * ola::plugin::spi::HardwareBackend::Run ( )

The entry point for the new thread.

A value returned to Join().

Sub classes must implement this.

Implements ola::thread::Thread.

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