STM32L443xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_DMA_EnableChannel (DMA_TypeDef *DMAx, uint32_t Channel) |
Enable DMA channel. | |
__STATIC_INLINE void | LL_DMA_DisableChannel (DMA_TypeDef *DMAx, uint32_t Channel) |
Disable DMA channel. | |
__STATIC_INLINE uint32_t | LL_DMA_IsEnabledChannel (DMA_TypeDef *DMAx, uint32_t Channel) |
Check if DMA channel is enabled or disabled. | |
__STATIC_INLINE void | LL_DMA_ConfigTransfer (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t Configuration) |
Configure all parameters link to DMA transfer. | |
__STATIC_INLINE void | LL_DMA_SetDataTransferDirection (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t Direction) |
Set Data transfer direction (read from peripheral or from memory). | |
__STATIC_INLINE uint32_t | LL_DMA_GetDataTransferDirection (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Data transfer direction (read from peripheral or from memory). | |
__STATIC_INLINE void | LL_DMA_SetMode (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t Mode) |
Set DMA mode circular or normal. | |
__STATIC_INLINE uint32_t | LL_DMA_GetMode (DMA_TypeDef *DMAx, uint32_t Channel) |
Get DMA mode circular or normal. | |
__STATIC_INLINE void | LL_DMA_SetPeriphIncMode (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t PeriphOrM2MSrcIncMode) |
Set Peripheral increment mode. | |
__STATIC_INLINE uint32_t | LL_DMA_GetPeriphIncMode (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Peripheral increment mode. | |
__STATIC_INLINE void | LL_DMA_SetMemoryIncMode (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t MemoryOrM2MDstIncMode) |
Set Memory increment mode. | |
__STATIC_INLINE uint32_t | LL_DMA_GetMemoryIncMode (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Memory increment mode. | |
__STATIC_INLINE void | LL_DMA_SetPeriphSize (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t PeriphOrM2MSrcDataSize) |
Set Peripheral size. | |
__STATIC_INLINE uint32_t | LL_DMA_GetPeriphSize (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Peripheral size. | |
__STATIC_INLINE void | LL_DMA_SetMemorySize (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t MemoryOrM2MDstDataSize) |
Set Memory size. | |
__STATIC_INLINE uint32_t | LL_DMA_GetMemorySize (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Memory size. | |
__STATIC_INLINE void | LL_DMA_SetChannelPriorityLevel (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t Priority) |
Set Channel priority level. | |
__STATIC_INLINE uint32_t | LL_DMA_GetChannelPriorityLevel (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Channel priority level. | |
__STATIC_INLINE void | LL_DMA_SetDataLength (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t NbData) |
Set Number of data to transfer. | |
__STATIC_INLINE uint32_t | LL_DMA_GetDataLength (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Number of data to transfer. | |
__STATIC_INLINE void | LL_DMA_ConfigAddresses (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t SrcAddress, uint32_t DstAddress, uint32_t Direction) |
Configure the Source and Destination addresses. | |
__STATIC_INLINE void | LL_DMA_SetMemoryAddress (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t MemoryAddress) |
Set the Memory address. | |
__STATIC_INLINE void | LL_DMA_SetPeriphAddress (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t PeriphAddress) |
Set the Peripheral address. | |
__STATIC_INLINE uint32_t | LL_DMA_GetMemoryAddress (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Memory address. | |
__STATIC_INLINE uint32_t | LL_DMA_GetPeriphAddress (DMA_TypeDef *DMAx, uint32_t Channel) |
Get Peripheral address. | |
__STATIC_INLINE void | LL_DMA_SetM2MSrcAddress (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t MemoryAddress) |
Set the Memory to Memory Source address. | |
__STATIC_INLINE void | LL_DMA_SetM2MDstAddress (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t MemoryAddress) |
Set the Memory to Memory Destination address. | |
__STATIC_INLINE uint32_t | LL_DMA_GetM2MSrcAddress (DMA_TypeDef *DMAx, uint32_t Channel) |
Get the Memory to Memory Source address. | |
__STATIC_INLINE uint32_t | LL_DMA_GetM2MDstAddress (DMA_TypeDef *DMAx, uint32_t Channel) |
Get the Memory to Memory Destination address. | |
__STATIC_INLINE void | LL_DMA_SetPeriphRequest (DMA_TypeDef *DMAx, uint32_t Channel, uint32_t PeriphRequest) |
Set DMA request for DMA instance on Channel x. | |
__STATIC_INLINE uint32_t | LL_DMA_GetPeriphRequest (DMA_TypeDef *DMAx, uint32_t Channel) |
Get DMA request for DMA instance on Channel x. |
__STATIC_INLINE void LL_DMA_ConfigAddresses | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | SrcAddress, | ||
uint32_t | DstAddress, | ||
uint32_t | Direction | ||
) |
Configure the Source and Destination addresses.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
SrcAddress | Between Min_Data = 0 and Max_Data = 0xFFFFFFFF |
DstAddress | Between Min_Data = 0 and Max_Data = 0xFFFFFFFF |
Direction | This parameter can be one of the following values: |
None |
Definition at line 1049 of file stm32l4xx_ll_dma.h.
References LL_DMA_DIRECTION_MEMORY_TO_PERIPH.
__STATIC_INLINE void LL_DMA_ConfigTransfer | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | Configuration | ||
) |
Configure all parameters link to DMA transfer.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Configuration | This parameter must be a combination of all the following values:
|
None |
Definition at line 628 of file stm32l4xx_ll_dma.h.
Referenced by LL_DMA_Init().
__STATIC_INLINE void LL_DMA_DisableChannel | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Disable DMA channel.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
None |
Definition at line 572 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_EnableChannel | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Enable DMA channel.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
None |
Definition at line 552 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetChannelPriorityLevel | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Channel priority level.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 972 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetDataLength | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Number of data to transfer.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Between | Min_Data = 0 and Max_Data = 0xFFFFFFFF |
Definition at line 1019 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetDataTransferDirection | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Data transfer direction (read from peripheral or from memory).
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 680 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetM2MDstAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get the Memory to Memory Destination address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Between | Min_Data = 0 and Max_Data = 0xFFFFFFFF |
Definition at line 1237 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetM2MSrcAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get the Memory to Memory Source address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Between | Min_Data = 0 and Max_Data = 0xFFFFFFFF |
Definition at line 1216 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetMemoryAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Memory address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Between | Min_Data = 0 and Max_Data = 0xFFFFFFFF |
Definition at line 1128 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetMemoryIncMode | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Memory increment mode.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 823 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetMemorySize | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Memory size.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 921 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetMode | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get DMA mode circular or normal.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 729 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetPeriphAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Peripheral address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Between | Min_Data = 0 and Max_Data = 0xFFFFFFFF |
Definition at line 1149 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetPeriphIncMode | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Peripheral increment mode.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 776 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_GetPeriphRequest | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get DMA request for DMA instance on Channel x.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 1546 of file stm32l4xx_ll_dma.h.
References DMA_CSELR_OFFSET, and DMA_POSITION_CSELR_CXS.
__STATIC_INLINE uint32_t LL_DMA_GetPeriphSize | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Get Peripheral size.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 872 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE uint32_t LL_DMA_IsEnabledChannel | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel | ||
) |
Check if DMA channel is enabled or disabled.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
State | of bit (1 or 0). |
Definition at line 592 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetChannelPriorityLevel | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | Priority | ||
) |
Set Channel priority level.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Priority | This parameter can be one of the following values: |
None |
Definition at line 947 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetDataLength | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | NbData | ||
) |
Set Number of data to transfer.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
NbData | Between Min_Data = 0 and Max_Data = 0x0000FFFF |
None |
Definition at line 996 of file stm32l4xx_ll_dma.h.
Referenced by LL_DMA_Init().
__STATIC_INLINE void LL_DMA_SetDataTransferDirection | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | Direction | ||
) |
Set Data transfer direction (read from peripheral or from memory).
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Direction | This parameter can be one of the following values: |
None |
Definition at line 655 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetM2MDstAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | MemoryAddress | ||
) |
Set the Memory to Memory Destination address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
MemoryAddress | Between Min_Data = 0 and Max_Data = 0xFFFFFFFF |
None |
Definition at line 1195 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetM2MSrcAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | MemoryAddress | ||
) |
Set the Memory to Memory Source address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
MemoryAddress | Between Min_Data = 0 and Max_Data = 0xFFFFFFFF |
None |
Definition at line 1172 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetMemoryAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | MemoryAddress | ||
) |
Set the Memory address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
MemoryAddress | Between Min_Data = 0 and Max_Data = 0xFFFFFFFF |
None |
Definition at line 1084 of file stm32l4xx_ll_dma.h.
Referenced by LL_DMA_Init().
__STATIC_INLINE void LL_DMA_SetMemoryIncMode | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | MemoryOrM2MDstIncMode | ||
) |
Set Memory increment mode.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
MemoryOrM2MDstIncMode | This parameter can be one of the following values: |
None |
Definition at line 800 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetMemorySize | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | MemoryOrM2MDstDataSize | ||
) |
Set Memory size.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
MemoryOrM2MDstDataSize | This parameter can be one of the following values: |
None |
Definition at line 897 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetMode | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | Mode | ||
) |
Set DMA mode circular or normal.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
Mode | This parameter can be one of the following values: |
None |
Definition at line 706 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetPeriphAddress | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | PeriphAddress | ||
) |
Set the Peripheral address.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
PeriphAddress | Between Min_Data = 0 and Max_Data = 0xFFFFFFFF |
None |
Definition at line 1107 of file stm32l4xx_ll_dma.h.
Referenced by LL_DMA_Init().
__STATIC_INLINE void LL_DMA_SetPeriphIncMode | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | PeriphOrM2MSrcIncMode | ||
) |
Set Peripheral increment mode.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
PeriphOrM2MSrcIncMode | This parameter can be one of the following values: |
None |
Definition at line 753 of file stm32l4xx_ll_dma.h.
__STATIC_INLINE void LL_DMA_SetPeriphRequest | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | PeriphRequest | ||
) |
Set DMA request for DMA instance on Channel x.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
PeriphRequest | This parameter can be one of the following values: |
None |
Definition at line 1512 of file stm32l4xx_ll_dma.h.
References DMA_CSELR_OFFSET, and DMA_POSITION_CSELR_CXS.
Referenced by LL_DMA_DeInit(), and LL_DMA_Init().
__STATIC_INLINE void LL_DMA_SetPeriphSize | ( | DMA_TypeDef * | DMAx, |
uint32_t | Channel, | ||
uint32_t | PeriphOrM2MSrcDataSize | ||
) |
Set Peripheral size.
DMAx | DMAx Instance |
Channel | This parameter can be one of the following values: |
PeriphOrM2MSrcDataSize | This parameter can be one of the following values: |
None |
Definition at line 848 of file stm32l4xx_ll_dma.h.