distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
#include "distortos/chip/ChipSpiMasterLowLevel.hpp"
Public Member Functions | |
constexpr | SpiMasterLowLevelInterruptBased (const SpiPeripheral &spiPeripheral) |
SpiMasterLowLevelInterruptBased's constructor. More... | |
Public Member Functions inherited from distortos::chip::SpiMasterLowLevelInterruptBased | |
constexpr | SpiMasterLowLevelInterruptBased (const SpiPeripheral &spiPeripheral) |
SpiMasterLowLevelInterruptBased's constructor. More... | |
~SpiMasterLowLevelInterruptBased () override | |
SpiMasterLowLevelInterruptBased's destructor. More... | |
void | configure (devices::SpiMode mode, uint32_t clockFrequency, uint8_t wordLength, bool lsbFirst, uint32_t dummyData) override |
Configures parameters of low-level SPI master driver. More... | |
void | interruptHandler () |
Interrupt handler. More... | |
int | start () override |
Starts low-level SPI master driver. More... | |
void | startTransfer (devices::SpiMasterBase &spiMasterBase, const void *writeBuffer, void *readBuffer, size_t size) override |
Starts asynchronous transfer. More... | |
void | stop () override |
Stops low-level SPI master driver. More... | |
Public Member Functions inherited from distortos::devices::SpiMasterLowLevel | |
virtual | ~SpiMasterLowLevel ()=default |
SpiMasterLowLevel's destructor. More... | |
ChipSpiMasterLowLevel is an alias for SpiMasterLowLevelInterruptBased.
|
inlineexplicit |
SpiMasterLowLevelInterruptBased's constructor.
[in] | spiPeripheral | is a reference to raw SPI peripheral |