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 an active 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_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 DMAC channel. 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_SetCurrentDescriptor (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Sets a descriptor as current for the specified DMAC channel. More... | |
__STATIC_INLINE cy_en_dmac_descriptor_t | Cy_DMAC_Channel_GetCurrentDescriptor (DMAC_Type const *base, uint32_t channel) |
Returns the descriptor, which is active in the channel at the moment. 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 an active descriptor and other parameters.
base | The pointer to the hardware DMAC block. |
channel | The 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 | The channel number. |
__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 DMAC channel.
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, with "0" representing the highest priority and "3" representing the lowest priority |
__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_SetCurrentDescriptor | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Sets a descriptor as current for the specified DMAC channel.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The descriptor to be associated with the channel. |
__STATIC_INLINE cy_en_dmac_descriptor_t Cy_DMAC_Channel_GetCurrentDescriptor | ( | DMAC_Type const * | base, |
uint32_t | channel | ||
) |
Returns the descriptor, which is active in the channel at the moment.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |