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

DmaPeripheral class is a raw DMA peripheral for DMAv2 in STM32. More...

#include "distortos/chip/STM32-DMAv2-DmaPeripheral.hpp"

Public Member Functions

constexpr DmaPeripheral (const uintptr_t dmaBase)
 DmaPeripheral's constructor. More...
 
uint32_t readHisr () const
 
uint32_t readLisr () const
 
void writeHifcr (const uint32_t hifcr) const
 Writes value to HIFCR register. More...
 
void writeLifcr (const uint32_t lifcr) const
 Writes value to LIFCR register. More...
 

Private Member Functions

DMA_TypeDef & getDma () const
 

Private Attributes

uintptr_t dmaBase_
 base address of DMA peripheral More...
 

Detailed Description

DmaPeripheral class is a raw DMA peripheral for DMAv2 in STM32.

Constructor & Destructor Documentation

◆ DmaPeripheral()

constexpr distortos::chip::DmaPeripheral::DmaPeripheral ( const uintptr_t  dmaBase)
inlineexplicit

DmaPeripheral's constructor.

Parameters
[in]dmaBaseis a base address of DMA peripheral

Member Function Documentation

◆ getDma()

DMA_TypeDef& distortos::chip::DmaPeripheral::getDma ( ) const
inlineprivate
Returns
reference to DMA_TypeDef object
Here is the caller graph for this function:

◆ readHisr()

uint32_t distortos::chip::DmaPeripheral::readHisr ( ) const
inline
Returns
current value of HISR register
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readLisr()

uint32_t distortos::chip::DmaPeripheral::readLisr ( ) const
inline
Returns
current value of LISR register
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeHifcr()

void distortos::chip::DmaPeripheral::writeHifcr ( const uint32_t  hifcr) const
inline

Writes value to HIFCR register.

Parameters
[in]hifcris the value that will be written to HIFCR register
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeLifcr()

void distortos::chip::DmaPeripheral::writeLifcr ( const uint32_t  lifcr) const
inline

Writes value to LIFCR register.

Parameters
[in]lifcris the value that will be written to LIFCR register
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dmaBase_

uintptr_t distortos::chip::DmaPeripheral::dmaBase_
private

base address of DMA peripheral


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