|
distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
Functions | |
| uint8_t | getChannelShift (const uint8_t channelId) |
| Gets channel shift for shared DMA registers (LISR, LISR, LIFCR and HIFCR). More... | |
| uint32_t | modifyCr (const uint32_t cr, const DmaChannelPeripheral &dmaChannelPeripheral, const uint32_t clear, const uint32_t set) |
| Modifies current value of CR register. More... | |
| uint32_t | readIsr (const DmaPeripheral &dmaPeripheral, const uint8_t channelId) |
| Reads current value of LISR or HISR register. More... | |
| void | writeIfcr (const DmaPeripheral &dmaPeripheral, const uint8_t channelId, const uint32_t ifcr) |
| Writes value to LIFCR or HIFCR register. More... | |
Variables | |
| constexpr uint8_t | maxRequest {DMA_SxCR_CHSEL_Msk >> DMA_SxCR_CHSEL_Pos} |
| maximum allowed value for request identifier More... | |
| constexpr uint32_t | tcieHtieTeieDmeieEnFlags |
| TCIE, HTIE, TEIE, DMEIE and EN flags of CR register. More... | |
| uint8_t distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::getChannelShift | ( | const uint8_t | channelId | ) |
Gets channel shift for shared DMA registers (LISR, LISR, LIFCR and HIFCR).
| [in] | channelId | is a DMA channel identifier |
| uint32_t distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::modifyCr | ( | const uint32_t | cr, |
| const DmaChannelPeripheral & | dmaChannelPeripheral, | ||
| const uint32_t | clear, | ||
| const uint32_t | set | ||
| ) |
Modifies current value of CR register.
| [in] | cr | is the current value of CR register |
| [in] | dmaChannelPeripheral | is a reference to raw DMA channel peripheral |
| [in] | clear | is the bitmask of bits that should be cleared in CR register |
| [in] | set | is the bitmask of bits that should be set in CR register |
| uint32_t distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::readIsr | ( | const DmaPeripheral & | dmaPeripheral, |
| const uint8_t | channelId | ||
| ) |
Reads current value of LISR or HISR register.
| [in] | dmaPeripheral | is a reference to raw DMA peripheral |
| [in] | channelId | is a DMA channel identifier |
| void distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::writeIfcr | ( | const DmaPeripheral & | dmaPeripheral, |
| const uint8_t | channelId, | ||
| const uint32_t | ifcr | ||
| ) |
Writes value to LIFCR or HIFCR register.
| [in] | dmaPeripheral | is a reference to raw DMA peripheral |
| [in] | channelId | is a DMA channel identifier |
| [in] | ifcr | is the value that will be written to LIFCR or HIFCR register |
| constexpr uint8_t distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::maxRequest {DMA_SxCR_CHSEL_Msk >> DMA_SxCR_CHSEL_Pos} |
maximum allowed value for request identifier
| constexpr uint32_t distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::tcieHtieTeieDmeieEnFlags |
TCIE, HTIE, TEIE, DMEIE and EN flags of CR register.