distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp} Namespace Reference

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...
 

Function Documentation

◆ getChannelShift()

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).

Parameters
[in]channelIdis a DMA channel identifier
Returns
channel shift
Here is the caller graph for this function:

◆ modifyCr()

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.

Parameters
[in]cris the current value of CR register
[in]dmaChannelPeripheralis a reference to raw DMA channel peripheral
[in]clearis the bitmask of bits that should be cleared in CR register
[in]setis the bitmask of bits that should be set in CR register
Returns
value written to CR register
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readIsr()

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.

Parameters
[in]dmaPeripheralis a reference to raw DMA peripheral
[in]channelIdis a DMA channel identifier
Returns
current value of LISR or HISR register
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeIfcr()

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.

Parameters
[in]dmaPeripheralis a reference to raw DMA peripheral
[in]channelIdis a DMA channel identifier
[in]ifcris the value that will be written to LIFCR or HIFCR register
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ maxRequest

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

◆ tcieHtieTeieDmeieEnFlags

constexpr uint32_t distortos::chip::anonymous_namespace{STM32-DMAv2-DmaChannel.cpp}::tcieHtieTeieDmeieEnFlags
Initial value:
{DMA_SxCR_TCIE | DMA_SxCR_HTIE | DMA_SxCR_TEIE | DMA_SxCR_DMEIE |
DMA_SxCR_EN}

TCIE, HTIE, TEIE, DMEIE and EN flags of CR register.