distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::chip::ChipSpiMasterLowLevel Class Reference

#include "distortos/chip/ChipSpiMasterLowLevel.hpp"

Inheritance diagram for distortos::chip::ChipSpiMasterLowLevel:
[legend]
Collaboration diagram for distortos::chip::ChipSpiMasterLowLevel:
[legend]

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

Detailed Description

Member Function Documentation

◆ SpiMasterLowLevelInterruptBased()

constexpr distortos::chip::SpiMasterLowLevelInterruptBased::SpiMasterLowLevelInterruptBased
inlineexplicit

SpiMasterLowLevelInterruptBased's constructor.

Parameters
[in]spiPeripheralis a reference to raw SPI peripheral

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