DmaChannelPeripheral class is a raw DMA channel peripheral for DMAv2 in STM32.
More...
#include "distortos/chip/STM32-DMAv2-DmaChannelPeripheral.hpp"
DmaChannelPeripheral class is a raw DMA channel peripheral for DMAv2 in STM32.
◆ DmaChannelPeripheral()
constexpr distortos::chip::DmaChannelPeripheral::DmaChannelPeripheral |
( |
const uintptr_t |
dmaBase, |
|
|
const uint8_t |
channelId |
|
) |
| |
|
inline |
DmaChannelPeripheral's constructor.
- Parameters
-
[in] | dmaBase | is a base address of DMA peripheral |
[in] | channelId | is a DMA channel identifier |
◆ getChannelId()
uint8_t distortos::chip::DmaChannelPeripheral::getChannelId |
( |
| ) |
const |
|
inline |
- Returns
- DMA channel identifier
◆ getDmaChannel()
DMA_Stream_TypeDef& distortos::chip::DmaChannelPeripheral::getDmaChannel |
( |
| ) |
const |
|
inlineprivate |
- Returns
- reference to DMA_Stream_TypeDef object
◆ readCr()
uint32_t distortos::chip::DmaChannelPeripheral::readCr |
( |
| ) |
const |
|
inline |
- Returns
- current value of CR register
◆ readFcr()
uint32_t distortos::chip::DmaChannelPeripheral::readFcr |
( |
| ) |
const |
|
inline |
- Returns
- current value of FCR register
◆ readM0ar()
uint32_t distortos::chip::DmaChannelPeripheral::readM0ar |
( |
| ) |
const |
|
inline |
- Returns
- current value of M0AR register
◆ readM1ar()
uint32_t distortos::chip::DmaChannelPeripheral::readM1ar |
( |
| ) |
const |
|
inline |
- Returns
- current value of M1AR register
◆ readNdtr()
uint32_t distortos::chip::DmaChannelPeripheral::readNdtr |
( |
| ) |
const |
|
inline |
- Returns
- current value of NDTR register
◆ readPar()
uint32_t distortos::chip::DmaChannelPeripheral::readPar |
( |
| ) |
const |
|
inline |
- Returns
- current value of PAR register
◆ writeCr()
void distortos::chip::DmaChannelPeripheral::writeCr |
( |
const uint32_t |
cr | ) |
const |
|
inline |
Writes value to CR register.
- Parameters
-
[in] | cr | is the value that will be written to CR register |
◆ writeFcr()
void distortos::chip::DmaChannelPeripheral::writeFcr |
( |
const uint32_t |
fcr | ) |
const |
|
inline |
Writes value to FCR register.
- Parameters
-
[in] | fcr | is the value that will be written to FCR register |
◆ writeM0ar()
void distortos::chip::DmaChannelPeripheral::writeM0ar |
( |
const uint32_t |
m0ar | ) |
const |
|
inline |
Writes value to M0AR register.
- Parameters
-
[in] | m0ar | is the value that will be written to M0AR register |
◆ writeM1ar()
void distortos::chip::DmaChannelPeripheral::writeM1ar |
( |
const uint32_t |
m1ar | ) |
const |
|
inline |
Writes value to M1AR register.
- Parameters
-
[in] | m1ar | is the value that will be written to M1AR register |
◆ writeNdtr()
void distortos::chip::DmaChannelPeripheral::writeNdtr |
( |
const uint32_t |
ndtr | ) |
const |
|
inline |
Writes value to NDTR register.
- Parameters
-
[in] | ndtr | is the value that will be written to NDTR register |
◆ writePar()
void distortos::chip::DmaChannelPeripheral::writePar |
( |
const uint32_t |
par | ) |
const |
|
inline |
Writes value to PAR register.
- Parameters
-
[in] | par | is the value that will be written to PAR register |
◆ channelId_
uint8_t distortos::chip::DmaChannelPeripheral::channelId_ |
|
private |
◆ dmaChannelBase_
uintptr_t distortos::chip::DmaChannelPeripheral::dmaChannelBase_ |
|
private |
base address of DMA channel peripheral
The documentation for this class was generated from the following file: