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().
uint8_t dma_resource::channel_id |
Allocated DMA channel ID.
Referenced by _dma_set_config(), dma_abort_job(), dma_allocate(), dma_disable_callback(), dma_enable_callback(), dma_free(), dma_resume_job(), dma_start_transfer_job(), dma_suspend_job(), dma_trigger_transfer(), and DMAC_Handler().
DmacDescriptor* dma_resource::descriptor |
DMA transfer descriptor.
Referenced by dma_add_descriptor(), dma_allocate(), dma_reset_descriptor(), dma_start_transfer_job(), and dma_update_descriptor().
enum status_code dma_resource::job_status |
Status of the last job.
Referenced by dma_abort_job(), dma_add_descriptor(), dma_get_job_status(), dma_is_busy(), dma_resume_job(), dma_start_transfer_job(), and DMAC_Handler().
uint32_t dma_resource::transfered_size |
Transferred data size.
Referenced by dma_abort_job(), and DMAC_Handler().