Implementation specific interface for using the Datawire DMA peripheral.
◆ _cyhal_dma_dw_init()
Initialize the Datawire peripheral.
- Parameters
-
[out] | obj | The DMA object to initialize |
[in] | priority | The priority of this DMA operation relative to others. Values must be between 0-3 with 0 being the highest priority. |
- Returns
- The status of the init request
◆ _cyhal_dma_dw_free()
Frees the Datawire specific DMA object.
- Parameters
-
[in,out] | obj | The DMA object |
◆ _cyhal_dma_dw_configure()
Setup a Datawire descriptor for the dma resource.
- Parameters
-
[in] | obj | The DMA object |
[in] | cfg | Configuration prameters for the transfer |
- Returns
- The status of the configure request
◆ _cyhal_dma_dw_start_transfer()
Start a Datawire transfer.
Initiates DMA channel transfer for specified DMA object
- Parameters
-
- Returns
- The status of the start_transfer request
◆ _cyhal_dma_dw_enable_event()
Configure Datawire event enablement.
- Parameters
-
[in] | obj | The DMA object |
[in] | event | The DMA event type |
[in] | intr_priority | The priority for NVIC interrupt events. The priority from the most recent call will take precedence, i.e all events will have the same priority. |
[in] | enable | True to turn on interrupts, False to turn off |
◆ _cyhal_dma_dw_is_busy()
Checks whether a transfer is pending or running on the DMA channel.
- Parameters
-
- Returns
- True if DMA channel is busy