Functions | |
cy_en_dmac_status_t | Cy_DMAC_Descriptor_Init (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, const cy_stc_dmac_descriptor_config_t *config) |
Initializes the descriptor structure from a pre-initialized configuration structure. More... | |
void | Cy_DMAC_Descriptor_DeInit (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Clears the content of the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetState (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, bool valid) |
Sets the state of the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetSrcAddress (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, void volatile const *srcAddress) |
Sets the source address parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetDstAddress (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, void volatile *dstAddress) |
Sets the destination address parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetDataCount (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, uint32_t count) |
Sets the number of data elements of the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetSrcIncrement (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, bool increment) |
Sets the source increment parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetDstIncrement (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, bool increment) |
Sets the destination increment parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetDataSize (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, cy_en_dmac_data_size_t dataSize) |
Sets the Data Element Size parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetSrcTransferSize (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, cy_en_dmac_transfer_size_t srcTransferSize) |
Sets the Source Transfer Size parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetDstTransferSize (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, cy_en_dmac_transfer_size_t dstTransferSize) |
Sets the Destination Transfer Size parameter for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetRetrigger (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, cy_en_dmac_retrigger_t retrigger) |
Sets the retrigger value which specifies whether the controller should wait for the input trigger to be deactivated. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetFlipping (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, bool flipping) |
Enables/disables the descriptor flipping parameter of the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetTriggerType (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, cy_en_dmac_trigger_type_t triggerType) |
Sets the mode of the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetPreemptable (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, bool preemptable) |
Sets the preemptable value for the specified descriptor. More... | |
__STATIC_INLINE void | Cy_DMAC_Descriptor_SetCpltState (DMAC_Type *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor, bool invalidate) |
Sets the invalidate value for the specified descriptor. More... | |
__STATIC_INLINE bool | Cy_DMAC_Descriptor_GetState (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns a state of the specified descriptor. More... | |
__STATIC_INLINE void * | Cy_DMAC_Descriptor_GetSrcAddress (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the source address parameter of the specified descriptor. More... | |
__STATIC_INLINE void * | Cy_DMAC_Descriptor_GetDstAddress (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the destination address parameter of the specified descriptor. More... | |
__STATIC_INLINE uint32_t | Cy_DMAC_Descriptor_GetDataCount (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the number of data elements of the specified descriptor. More... | |
__STATIC_INLINE bool | Cy_DMAC_Descriptor_GetSrcIncrement (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the source increment parameter for the specified descriptor. More... | |
__STATIC_INLINE bool | Cy_DMAC_Descriptor_GetDstIncrement (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the destination increment parameter for the specified descriptor. More... | |
__STATIC_INLINE uint32_t | Cy_DMAC_Descriptor_GetCurrentIndex (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the current transfer data element index of the specified descriptor. More... | |
__STATIC_INLINE cy_en_dmac_data_size_t | Cy_DMAC_Descriptor_GetDataSize (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the Data Element Size of the specified descriptor. More... | |
__STATIC_INLINE cy_en_dmac_transfer_size_t | Cy_DMAC_Descriptor_GetSrcTransferSize (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the Source Transfer Size of the specified descriptor. More... | |
__STATIC_INLINE cy_en_dmac_transfer_size_t | Cy_DMAC_Descriptor_GetDstTransferSize (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the Destination Transfer Size of the specified descriptor. More... | |
__STATIC_INLINE cy_en_dmac_retrigger_t | Cy_DMAC_Descriptor_GetRetrigger (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the value, which specifies whether the controller should wait for the input trigger to be deactivated. More... | |
__STATIC_INLINE bool | Cy_DMAC_Descriptor_GetFlipping (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the flipping parameter of the specified descriptor. More... | |
__STATIC_INLINE cy_en_dmac_trigger_type_t | Cy_DMAC_Descriptor_GetTriggerType (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the mode of the specified descriptor. More... | |
__STATIC_INLINE cy_en_dmac_response_t | Cy_DMAC_Descriptor_GetResponse (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the last transfer response code. More... | |
__STATIC_INLINE bool | Cy_DMAC_Descriptor_GetPreemptable (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the preemptable value for the specified descriptor. More... | |
__STATIC_INLINE bool | Cy_DMAC_Descriptor_GetCpltState (DMAC_Type const *base, uint32_t channel, cy_en_dmac_descriptor_t descriptor) |
Returns the completion state parameter for the specified descriptor. More... | |
cy_en_dmac_status_t Cy_DMAC_Descriptor_Init | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
const cy_stc_dmac_descriptor_config_t * | config | ||
) |
Initializes the descriptor structure from a pre-initialized configuration structure.
This function initializes only one ping/pong descriptor and not the channel.
base | The pointer to the hardware DMAC block. |
channel | A channel number. |
descriptor | The ping/pong descriptor. |
config | This is a configuration structure that has all initialization information for the descriptor. |
void Cy_DMAC_Descriptor_DeInit | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Clears the content of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The descriptor structure instance. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetState | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
bool | valid | ||
) |
Sets the state of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
valid | true - validate, false - invalidate. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetSrcAddress | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
void volatile const * | srcAddress | ||
) |
Sets the source address parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
srcAddress | The source address value for the descriptor. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetDstAddress | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
void volatile * | dstAddress | ||
) |
Sets the destination address parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
dstAddress | The destination address value for the descriptor. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetDataCount | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
uint32_t | count | ||
) |
Sets the number of data elements of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
count | The natural number of data elements to transfer, for example, "1" means one data element is transferred. The valid range is 1...65536. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetSrcIncrement | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
bool | increment | ||
) |
Sets the source increment parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
increment | The value of the source increment parameter, true - the address increment is enabled. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetDstIncrement | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
bool | increment | ||
) |
Sets the destination increment parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
increment | The value of the destination increment parameter, true - the address increment is enabled. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetDataSize | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
cy_en_dmac_data_size_t | dataSize | ||
) |
Sets the Data Element Size parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
dataSize | The Data Element Size cy_en_dmac_data_size_t |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetSrcTransferSize | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
cy_en_dmac_transfer_size_t | srcTransferSize | ||
) |
Sets the Source Transfer Size parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
srcTransferSize | The Source Transfer Size cy_en_dmac_transfer_size_t. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetDstTransferSize | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
cy_en_dmac_transfer_size_t | dstTransferSize | ||
) |
Sets the Destination Transfer Size parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
dstTransferSize | The Destination Transfer Size cy_en_dmac_transfer_size_t. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetRetrigger | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
cy_en_dmac_retrigger_t | retrigger | ||
) |
Sets the retrigger value which specifies whether the controller should wait for the input trigger to be deactivated.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
retrigger | The cy_en_dmac_retrigger_t parameter specifies whether the controller should wait for the input trigger to be deactivated. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetFlipping | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
bool | flipping | ||
) |
Enables/disables the descriptor flipping parameter of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
flipping | Enable descriptor flipping. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetTriggerType | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
cy_en_dmac_trigger_type_t | triggerType | ||
) |
Sets the mode of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
triggerType | The descriptor trigger type, see cy_en_dmac_trigger_type_t. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetPreemptable | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
bool | preemptable | ||
) |
Sets the preemptable value for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
preemptable | The preemptable control value: true - enabled, false - disabled. |
__STATIC_INLINE void Cy_DMAC_Descriptor_SetCpltState | ( | DMAC_Type * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor, | ||
bool | invalidate | ||
) |
Sets the invalidate value for the specified descriptor.
If true - the descriptor will be invalidated on completion.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
invalidate | The invalidate control value: true - enabled, false - disabled. |
__STATIC_INLINE bool Cy_DMAC_Descriptor_GetState | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns a state of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE void * Cy_DMAC_Descriptor_GetSrcAddress | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the source address parameter of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE void * Cy_DMAC_Descriptor_GetDstAddress | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the destination address parameter of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE uint32_t Cy_DMAC_Descriptor_GetDataCount | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the number of data elements of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE bool Cy_DMAC_Descriptor_GetSrcIncrement | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the source increment parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE bool Cy_DMAC_Descriptor_GetDstIncrement | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the destination increment parameter for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE uint32_t Cy_DMAC_Descriptor_GetCurrentIndex | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the current transfer data element index of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE cy_en_dmac_data_size_t Cy_DMAC_Descriptor_GetDataSize | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the Data Element Size of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE cy_en_dmac_transfer_size_t Cy_DMAC_Descriptor_GetSrcTransferSize | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the Source Transfer Size of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE cy_en_dmac_transfer_size_t Cy_DMAC_Descriptor_GetDstTransferSize | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the Destination Transfer Size of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE cy_en_dmac_retrigger_t Cy_DMAC_Descriptor_GetRetrigger | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the value, which specifies whether the controller should wait for the input trigger to be deactivated.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE bool Cy_DMAC_Descriptor_GetFlipping | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the flipping parameter of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE cy_en_dmac_trigger_type_t Cy_DMAC_Descriptor_GetTriggerType | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the mode of the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE cy_en_dmac_response_t Cy_DMAC_Descriptor_GetResponse | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the last transfer response code.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE bool Cy_DMAC_Descriptor_GetPreemptable | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the preemptable value for the specified descriptor.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |
__STATIC_INLINE bool Cy_DMAC_Descriptor_GetCpltState | ( | DMAC_Type const * | base, |
uint32_t | channel, | ||
cy_en_dmac_descriptor_t | descriptor | ||
) |
Returns the completion state parameter for the specified descriptor.
If true - the descriptor will be invalidated on completion.
base | The pointer to the hardware DMAC block. |
channel | The channel number. |
descriptor | The ping/pong descriptor. |