Implementation specific interface for using the DMAC DMA peripheral.
◆ _cyhal_dma_dmac_init()
Initialize the DMAC 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_dmac_free()
Frees the DMAC specific object.
- Parameters
-
[in,out] | obj | The DMA object |
◆ _cyhal_dma_dmac_configure()
Setup a DMAC descriptor for the dma resource.
- Parameters
-
[in] | obj | The DMA object |
[in] | cfg | Configuration parameters for the transfer |
- Returns
- The status of the configure request
◆ _cyhal_dma_dmac_start_transfer()
Start a DMAC transfer.
Initiates DMA channel transfer for specified DMA object
- Parameters
-
- Returns
- The status of the start_transfer request
◆ _cyhal_dma_dmac_enable_event()
Configure DMAC 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_dmac_is_busy()
Checks whether a transfer is pending or running on the DMA channel.
- Parameters
-
- Returns
- True if DMA channel is busy