distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::devices::SpiMasterBase Class Referenceabstract

#include <SpiMasterBase.hpp>

Inheritance diagram for distortos::devices::SpiMasterBase:
[legend]

Public Member Functions

virtual ~SpiMasterBase ()=0
 SpiMasterBase's destructor. More...
 
virtual void transferCompleteEvent (SpiMasterErrorSet errorSet, size_t bytesTransfered)=0
 "Transfer complete" event More...
 

Detailed Description

SpiMasterBase class is an interface with callbacks for low-level SPI master driver, which can serve as a base for high-level SPI master drivers

Constructor & Destructor Documentation

◆ ~SpiMasterBase()

distortos::devices::SpiMasterBase::~SpiMasterBase ( )
pure virtual

SpiMasterBase's destructor.

Member Function Documentation

◆ transferCompleteEvent()

virtual void distortos::devices::SpiMasterBase::transferCompleteEvent ( SpiMasterErrorSet  errorSet,
size_t  bytesTransfered 
)
pure virtual

"Transfer complete" event

Called by low-level SPI master driver when the transfer is physically finished.

Parameters
[in]errorSetis the set of error bits
[in]bytesTransferedis the number of bytes transfered by low-level SPI master driver (read from write buffer and/or written to read buffer), may be unreliable if errorSet is not empty (i.e. transfer error was detected)

Implemented in distortos::devices::SpiMaster.

Here is the caller graph for this function:

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