distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::chip::DmaChannelFunctor Class Referenceabstract

#include "distortos/chip/DmaChannelFunctor.hpp"

Inheritance diagram for distortos::chip::DmaChannelFunctor:

Public Member Functions

virtual ~DmaChannelFunctor ()=default
 DmaChannelFunctor's destructor. More...
virtual void transferCompleteEvent ()=0
 "Transfer complete" event More...
virtual void transferErrorEvent (size_t transactionsLeft)=0
 "Transfer error" event More...

Detailed Description

DmaChannelFunctor class is a functor for low-level DMA channel driver in STM32

Constructor & Destructor Documentation

◆ ~DmaChannelFunctor()

virtual distortos::chip::DmaChannelFunctor::~DmaChannelFunctor ( )

DmaChannelFunctor's destructor.

Member Function Documentation

◆ transferCompleteEvent()

virtual void distortos::chip::DmaChannelFunctor::transferCompleteEvent ( )
pure virtual

"Transfer complete" event

Called by low-level DMA channel driver when the transfer is physically finished.

Implemented in distortos::chip::SpiMasterLowLevelDmaBased::RxDmaChannelFunctor, and distortos::chip::DmaChannelFunctorCommon.

Here is the caller graph for this function:

◆ transferErrorEvent()

virtual void distortos::chip::DmaChannelFunctor::transferErrorEvent ( size_t  transactionsLeft)
pure virtual

"Transfer error" event

Called by low-level DMA channel driver when transfer error is detected.

[in]transactionsLeftis the number of transactions left

Implemented in distortos::chip::SpiMasterLowLevelDmaBased::TxDmaChannelFunctor, and distortos::chip::SpiMasterLowLevelDmaBased::RxDmaChannelFunctor.

Here is the caller graph for this function:

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