HSPI::StreamAdapter Class Reference
Helper class for streaming data to/from SPI devices. More...
#include <StreamAdapter.h>
Public Member Functions | |
StreamAdapter (MemoryDevice &device) | |
bool | write (IDataSourceStream *source, uint32_t address, size_t len, InterruptDelegate callback) |
bool | read (ReadWriteStream *dest, uint32_t address, size_t len, InterruptDelegate callback) |
bool | getIsWrite () const |
size_t | getBytesRequested () const |
size_t | getBytesTransferred () const |
Detailed Description
Helper class for streaming data to/from SPI devices.
Constructor & Destructor Documentation
◆ StreamAdapter()
HSPI::StreamAdapter::StreamAdapter | ( | MemoryDevice & | device | ) |
Member Function Documentation
◆ getBytesRequested()
|
inline |
◆ getBytesTransferred()
|
inline |
◆ getIsWrite()
|
inline |
◆ read()
bool HSPI::StreamAdapter::read | ( | ReadWriteStream * | dest, |
uint32_t | address, | ||
size_t | len, | ||
InterruptDelegate | callback | ||
) |
◆ write()
bool HSPI::StreamAdapter::write | ( | IDataSourceStream * | source, |
uint32_t | address, | ||
size_t | len, | ||
InterruptDelegate | callback | ||
) |
The documentation for this class was generated from the following file: