Open Lighting Architecture: ola::plugin::spi::FakeSPIWriter Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::plugin::spi::FakeSPIWriter Class Reference

## Detailed Description

A Fake SPI Writer used for testing

Inheritance diagram for ola::plugin::spi::FakeSPIWriter:

## Public Member Functions
| FakeSPIWriter (const std::string &device_path)
bool | Init ()
std::string | DevicePath () const
bool | WriteSPIData (const uint8_t *data, unsigned int length)
void | BlockWriter ()
void | UnblockWriter ()
void | ResetWrite ()
void | WaitForWrite ()
unsigned int | WriteCount () const
unsigned int | LastWriteSize () const
void | CheckDataMatches (const ola::testing::SourceLine &source_line, const uint8_t *data, unsigned int length)

## Member Function Documentation

## ◆ DevicePath()

std::string ola::plugin::spi::FakeSPIWriter::DevicePath | ( |  | ) | const
| inlinevirtual

Implements ola::plugin::spi::SPIWriterInterface.

## ◆ Init()

bool ola::plugin::spi::FakeSPIWriter::Init | ( |  | ) |
| inlinevirtual

Implements ola::plugin::spi::SPIWriterInterface.

## ◆ WriteSPIData()

bool ola::plugin::spi::FakeSPIWriter::WriteSPIData | ( | const uint8_t * | data,
|  | unsigned int | length )
| virtual

Implements ola::plugin::spi::SPIWriterInterface.

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

- plugins/spi/FakeSPIWriter.h
- plugins/spi/FakeSPIWriter.cpp