Functions | |
cy_en_dma_status_t | Cy_DMA_Channel_Init (DW_Type *base, uint32_t channel, cy_stc_dma_channel_config_t const *channelConfig) |
Initializes the DMA channel with a descriptor and other parameters. More... | |
void | Cy_DMA_Channel_DeInit (DW_Type *base, uint32_t channel) |
Clears the content of registers corresponding to the channel. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_SetDescriptor (DW_Type *base, uint32_t channel, cy_stc_dma_descriptor_t const *descriptor) |
Sets a descriptor as current for the specified DMA channel. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_Enable (DW_Type *base, uint32_t channel) |
The function is used to enable a DMA channel. More... | |
__STATIC_INLINE bool | Cy_DMA_Channel_IsEnabled (DW_Type *base, uint32_t channel) |
The function checks whether a channel is in the enabled state. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_Disable (DW_Type *base, uint32_t channel) |
The function is used to disable a DMA channel. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_SetPriority (DW_Type *base, uint32_t channel, uint32_t priority) |
The function is used to set a priority for the DMA channel. More... | |
__STATIC_INLINE uint32_t | Cy_DMA_Channel_GetPriority (DW_Type const *base, uint32_t channel) |
Returns the priority of the DMA channel. More... | |
__STATIC_INLINE cy_en_dma_intr_cause_t | Cy_DMA_Channel_GetStatus (DW_Type const *base, uint32_t channel) |
Returns the interrupt reason of the specified channel. More... | |
__STATIC_INLINE cy_stc_dma_descriptor_t * | Cy_DMA_Channel_GetCurrentDescriptor (DW_Type const *base, uint32_t channel) |
Returns the descriptor that is active in the channel. More... | |
__STATIC_INLINE uint8_t | Cy_DMA_Channel_GetCurrentYIndex (DW_Type const *base, uint32_t channel) |
Returns the current Y loop index for the channel. More... | |
__STATIC_INLINE uint32_t | Cy_DMA_Channel_GetInterruptStatus (DW_Type const *base, uint32_t channel) |
Returns the interrupt status of the specified channel. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_ClearInterrupt (DW_Type *base, uint32_t channel) |
Clears the interrupt status of the specified channel. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_SetInterrupt (DW_Type *base, uint32_t channel) |
Sets the interrupt for the specified channel. More... | |
__STATIC_INLINE uint32_t | Cy_DMA_Channel_GetInterruptMask (DW_Type const *base, uint32_t channel) |
Returns the interrupt mask value of the specified channel. More... | |
__STATIC_INLINE void | Cy_DMA_Channel_SetInterruptMask (DW_Type *base, uint32_t channel, uint32_t interrupt) |
Sets an interrupt mask value for the specified channel. More... | |
__STATIC_INLINE uint32_t | Cy_DMA_Channel_GetInterruptStatusMasked (DW_Type const *base, uint32_t channel) |
Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation. More... | |
__STATIC_FORCEINLINE void | Cy_DMA_Channel_SetSWTrigger (DW_Type const *base, uint32_t channel) |
The function is used to set a SW trigger for a channel. More... | |
cy_en_dma_status_t Cy_DMA_Channel_Init | ( | DW_Type * | base, |
uint32_t | channel, | ||
cy_stc_dma_channel_config_t const * | channelConfig | ||
) |
Initializes the DMA channel with a descriptor and other parameters.
base | The pointer to the hardware DMA block. |
channel | A channel number. |
channelConfig | The structure that has the initialization information for the channel. |
void Cy_DMA_Channel_DeInit | ( | DW_Type * | base, |
uint32_t | channel | ||
) |
Clears the content of registers corresponding to the channel.
base | The pointer to the hardware DMA block. |
channel | A channel number. |
__STATIC_INLINE void Cy_DMA_Channel_SetDescriptor | ( | DW_Type * | base, |
uint32_t | channel, | ||
cy_stc_dma_descriptor_t const * | descriptor | ||
) |
Sets a descriptor as current for the specified DMA channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
descriptor | This is the descriptor to be associated with the channel. For CAT1C devices this pointer needs to point to 32 byte aligned structure. |
__STATIC_INLINE void Cy_DMA_Channel_Enable | ( | DW_Type * | base, |
uint32_t | channel | ||
) |
The function is used to enable a DMA channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE bool Cy_DMA_Channel_IsEnabled | ( | DW_Type * | base, |
uint32_t | channel | ||
) |
The function checks whether a channel is in the enabled state.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE void Cy_DMA_Channel_Disable | ( | DW_Type * | base, |
uint32_t | channel | ||
) |
The function is used to disable a DMA channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE void Cy_DMA_Channel_SetPriority | ( | DW_Type * | base, |
uint32_t | channel, | ||
uint32_t | priority | ||
) |
The function is used to set a priority for the DMA channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
priority | The priority to be set for the DMA channel. The allowed values are 0,1,2,3. |
__STATIC_INLINE uint32_t Cy_DMA_Channel_GetPriority | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the priority of the DMA channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE cy_en_dma_intr_cause_t Cy_DMA_Channel_GetStatus | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the interrupt reason of the specified channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE cy_stc_dma_descriptor_t * Cy_DMA_Channel_GetCurrentDescriptor | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the descriptor that is active in the channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE uint8_t Cy_DMA_Channel_GetCurrentYIndex | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the current Y loop index for the channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE uint32_t Cy_DMA_Channel_GetInterruptStatus | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the interrupt status of the specified channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE void Cy_DMA_Channel_ClearInterrupt | ( | DW_Type * | base, |
uint32_t | channel | ||
) |
Clears the interrupt status of the specified channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE void Cy_DMA_Channel_SetInterrupt | ( | DW_Type * | base, |
uint32_t | channel | ||
) |
Sets the interrupt for the specified channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE uint32_t Cy_DMA_Channel_GetInterruptMask | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the interrupt mask value of the specified channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_INLINE void Cy_DMA_Channel_SetInterruptMask | ( | DW_Type * | base, |
uint32_t | channel, | ||
uint32_t | interrupt | ||
) |
Sets an interrupt mask value for the specified channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
interrupt | The interrupt mask: CY_DMA_INTR_MASK to enable the interrupt or 0UL to disable the interrupt. |
__STATIC_INLINE uint32_t Cy_DMA_Channel_GetInterruptStatusMasked | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation.
base | The pointer to the hardware DMA block. |
channel | The channel number. |
__STATIC_FORCEINLINE void Cy_DMA_Channel_SetSWTrigger | ( | DW_Type const * | base, |
uint32_t | channel | ||
) |
The function is used to set a SW trigger for a channel.
base | The pointer to the hardware DMA block. |
channel | The channel number. |