DmaPeripheral class is a raw DMA peripheral for DMAv2 in STM32.
More...
#include "distortos/chip/STM32-DMAv2-DmaPeripheral.hpp"
DmaPeripheral class is a raw DMA peripheral for DMAv2 in STM32.
◆ DmaPeripheral()
constexpr distortos::chip::DmaPeripheral::DmaPeripheral |
( |
const uintptr_t |
dmaBase | ) |
|
|
inlineexplicit |
DmaPeripheral's constructor.
- Parameters
-
[in] | dmaBase | is a base address of DMA peripheral |
◆ getDma()
DMA_TypeDef& distortos::chip::DmaPeripheral::getDma |
( |
| ) |
const |
|
inlineprivate |
- Returns
- reference to DMA_TypeDef object
◆ readHisr()
uint32_t distortos::chip::DmaPeripheral::readHisr |
( |
| ) |
const |
|
inline |
- Returns
- current value of HISR register
◆ readLisr()
uint32_t distortos::chip::DmaPeripheral::readLisr |
( |
| ) |
const |
|
inline |
- Returns
- current value of LISR register
◆ writeHifcr()
void distortos::chip::DmaPeripheral::writeHifcr |
( |
const uint32_t |
hifcr | ) |
const |
|
inline |
Writes value to HIFCR register.
- Parameters
-
[in] | hifcr | is the value that will be written to HIFCR register |
◆ writeLifcr()
void distortos::chip::DmaPeripheral::writeLifcr |
( |
const uint32_t |
lifcr | ) |
const |
|
inline |
Writes value to LIFCR register.
- Parameters
-
[in] | lifcr | is the value that will be written to LIFCR register |
◆ dmaBase_
uintptr_t distortos::chip::DmaPeripheral::dmaBase_ |
|
private |
base address of DMA peripheral
The documentation for this class was generated from the following file: