Microchip® Advanced Software Framework

Structure for DMA transfer resource.

#include <dma.h>

Data Fields

dma_callback_t callback [DMA_CALLBACK_N]
 Array of callback functions for DMA transfer job. More...
 
uint8_t callback_enable
 Bit mask for enabled callbacks. More...
 
uint8_t channel_id
 Allocated DMA channel ID. More...
 
DmacDescriptor * descriptor
 DMA transfer descriptor. More...
 
enum status_code job_status
 Status of the last job. More...
 
uint32_t transfered_size
 Transferred data size. More...
 

dma_callback_t dma_resource::callback[DMA_CALLBACK_N]

Array of callback functions for DMA transfer job.

Referenced by dma_register_callback(), dma_unregister_callback(), and DMAC_Handler().

uint8_t dma_resource::callback_enable

Bit mask for enabled callbacks.

Referenced by dma_disable_callback(), dma_enable_callback(), and DMAC_Handler().

DmacDescriptor* dma_resource::descriptor
uint32_t dma_resource::transfered_size

Transferred data size.

Referenced by dma_abort_job(), and DMAC_Handler().