Functions | |
| cy_en_dmac_status_t | Cy_DMAC_Channel_Init (DMAC_Type *base, uint32_t channel, cy_stc_dmac_channel_config_t const *config) |
| Initializes the DMAC channel with a descriptor and other parameters. More... | |
| void | Cy_DMAC_Channel_DeInit (DMAC_Type *base, uint32_t channel) |
| Clears the content of registers corresponding to the channel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_SetDescriptor (DMAC_Type *base, uint32_t channel, cy_stc_dmac_descriptor_t const *descriptor) |
| Sets a descriptor as current for the specified DMACchannel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_Enable (DMAC_Type *base, uint32_t channel) |
| Enables a DMAC channel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_Disable (DMAC_Type *base, uint32_t channel) |
| Disables a DMACchannel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_SetPriority (DMAC_Type *base, uint32_t channel, uint32_t priority) |
| The function is used to set a priority for the DMAC channel. More... | |
| __STATIC_INLINE uint32_t | Cy_DMAC_Channel_GetPriority (DMAC_Type const *base, uint32_t channel) |
| Returns the priority of the DMAC channel. More... | |
| __STATIC_INLINE void * | Cy_DMAC_Channel_GetCurrentSrcAddress (DMAC_Type const *base, uint32_t channel) |
| Returns the source address being used for the current transfer. More... | |
| __STATIC_INLINE void * | Cy_DMAC_Channel_GetCurrentDstAddress (DMAC_Type const *base, uint32_t channel) |
| Returns the destination address being used for the current transfer. More... | |
| __STATIC_INLINE uint32_t | Cy_DMAC_Channel_GetCurrentXloopIndex (DMAC_Type const *base, uint32_t channel) |
| Returns the current transfer X-loop index. More... | |
| __STATIC_INLINE uint32_t | Cy_DMAC_Channel_GetCurrentYloopIndex (DMAC_Type const *base, uint32_t channel) |
| Returns the current transfer X-loop index. More... | |
| __STATIC_INLINE cy_stc_dmac_descriptor_t * | Cy_DMAC_Channel_GetCurrentDescriptor (DMAC_Type const *base, uint32_t channel) |
| Returns the descriptor that is active in the channel. More... | |
| __STATIC_INLINE uint32_t | Cy_DMAC_Channel_GetInterruptStatus (DMAC_Type const *base, uint32_t channel) |
| Returns the interrupt status of the specified channel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_ClearInterrupt (DMAC_Type *base, uint32_t channel, uint32_t interrupt) |
| Clears the interrupt status of the specified channel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_SetInterrupt (DMAC_Type *base, uint32_t channel, uint32_t interrupt) |
| Sets the interrupt for the specified channel. More... | |
| __STATIC_INLINE uint32_t | Cy_DMAC_Channel_GetInterruptMask (DMAC_Type const *base, uint32_t channel) |
| Returns the interrupt mask value of the specified channel. More... | |
| __STATIC_INLINE void | Cy_DMAC_Channel_SetInterruptMask (DMAC_Type *base, uint32_t channel, uint32_t interrupt) |
| Sets an interrupt mask value for the specified channel. More... | |
| __STATIC_INLINE uint32_t | Cy_DMAC_Channel_GetInterruptStatusMasked (DMAC_Type const *base, uint32_t channel) |
| Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation. More... | |
| cy_en_dmac_status_t Cy_DMAC_Channel_Init | ( | DMAC_Type * | base, |
| uint32_t | channel, | ||
| cy_stc_dmac_channel_config_t const * | config | ||
| ) |
Initializes the DMAC channel with a descriptor and other parameters.
| base | The pointer to the hardware DMAC block. |
| channel | A channel number. |
| config | The structure that has the initialization information for the channel. |
| void Cy_DMAC_Channel_DeInit | ( | DMAC_Type * | base, |
| uint32_t | channel | ||
| ) |
Clears the content of registers corresponding to the channel.
| base | The pointer to the hardware DMAC block. |
| channel | A channel number. |
| __STATIC_INLINE void Cy_DMAC_Channel_SetDescriptor | ( | DMAC_Type * | base, |
| uint32_t | channel, | ||
| cy_stc_dmac_descriptor_t const * | descriptor | ||
| ) |
Sets a descriptor as current for the specified DMACchannel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| descriptor | This is the descriptor to be associated with the channel. |
| __STATIC_INLINE void Cy_DMAC_Channel_Enable | ( | DMAC_Type * | base, |
| uint32_t | channel | ||
| ) |
Enables a DMAC channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE void Cy_DMAC_Channel_Disable | ( | DMAC_Type * | base, |
| uint32_t | channel | ||
| ) |
Disables a DMACchannel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE void Cy_DMAC_Channel_SetPriority | ( | DMAC_Type * | base, |
| uint32_t | channel, | ||
| uint32_t | priority | ||
| ) |
The function is used to set a priority for the DMAC channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| priority | The priority to be set for the DMAC channel. The allowed values are 0,1,2,3. |
| __STATIC_INLINE uint32_t Cy_DMAC_Channel_GetPriority | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the priority of the DMAC channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE void * Cy_DMAC_Channel_GetCurrentSrcAddress | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the source address being used for the current transfer.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE void * Cy_DMAC_Channel_GetCurrentDstAddress | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the destination address being used for the current transfer.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE uint32_t Cy_DMAC_Channel_GetCurrentXloopIndex | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the current transfer X-loop index.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE uint32_t Cy_DMAC_Channel_GetCurrentYloopIndex | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the current transfer X-loop index.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE cy_stc_dmac_descriptor_t * Cy_DMAC_Channel_GetCurrentDescriptor | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the descriptor that is active in the channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE uint32_t Cy_DMAC_Channel_GetInterruptStatus | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the interrupt status of the specified channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE void Cy_DMAC_Channel_ClearInterrupt | ( | DMAC_Type * | base, |
| uint32_t | channel, | ||
| uint32_t | interrupt | ||
| ) |
Clears the interrupt status of the specified channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| interrupt | The interrupt mask, see Interrupt Masks. |
| __STATIC_INLINE void Cy_DMAC_Channel_SetInterrupt | ( | DMAC_Type * | base, |
| uint32_t | channel, | ||
| uint32_t | interrupt | ||
| ) |
Sets the interrupt for the specified channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| interrupt | The interrupt mask. See Interrupt Masks. |
| __STATIC_INLINE uint32_t Cy_DMAC_Channel_GetInterruptMask | ( | DMAC_Type const * | base, |
| uint32_t | channel | ||
| ) |
Returns the interrupt mask value of the specified channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| __STATIC_INLINE void Cy_DMAC_Channel_SetInterruptMask | ( | DMAC_Type * | base, |
| uint32_t | channel, | ||
| uint32_t | interrupt | ||
| ) |
Sets an interrupt mask value for the specified channel.
| base | The pointer to the hardware DMAC block. |
| channel | The channel number. |
| interrupt | The interrupt mask, see Interrupt Masks. |
| __STATIC_INLINE uint32_t Cy_DMAC_Channel_GetInterruptStatusMasked | ( | DMAC_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 DMAC block. |
| channel | The channel number. |