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

Detailed Description

A fake backend used for testing. If we had gmock this would be much easier...

Inheritance diagram for ola::plugin::spi::FakeSPIBackend:
Inheritance graph
[legend]
Collaboration diagram for ola::plugin::spi::FakeSPIBackend:
Collaboration graph
[legend]

Public Member Functions

 FakeSPIBackend (unsigned int outputs)
 
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)
 
const uint8_t * GetData (uint8_t output, unsigned int *length)
 
std::string DevicePath () const
 
bool Init ()
 
unsigned int Writes (uint8_t output) const
 

Additional Inherited Members

- 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"
 

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