47 volatile dma_status_t jobStatus;
50 void (*callbacks[DMA_CALLBACK_N])(
void *);
51 dma_beat_size_t beatSize;
52 dma_address_increment_t addressIncrement;
53 dma_stepsize_t stepSize;
54 dma_stepsel_t stepSel;
55 dma_block_action_t blockAction;
56 dma_event_output_selection_t eventOutputSelection;
void dma_set_priority(gossamer_dma_job_t *dmaJob, dma_priority_t priority)
Sets the priority level for a DMA channel.
Definition dma.c:311
bool dma_start_job(gossamer_dma_job_t *dmaJob)
Starts a configured DMA job.
Definition dma.c:382
void dma_init(void)
Initializes the DMA system (clocks, descriptor memory, interrupts), but does not enable it.
Definition dma.c:232
void dma_disable(void)
Disables the DMA controller.
Definition dma.c:270
void dma_set_event_output(gossamer_dma_job_t *dmaJob, bool enabled)
Enables or disables event output for a DMA channel.
Definition dma.c:323
void dma_set_event_input(gossamer_dma_job_t *dmaJob, dma_event_input_action_t action)
Configures event input action for a DMA channel.
Definition dma.c:317
void dma_stop_job(gossamer_dma_job_t *dmaJob)
Stops a running DMA job and aborts the transfer.
Definition dma.c:408
DmacDescriptor * dma_add_descriptor(gossamer_dma_job_t *dmaJob, void *src, void *dst, uint32_t count)
Adds a transfer descriptor to a DMA job.
Definition dma.c:329
void dma_trigger(gossamer_dma_job_t *dmaJob)
Issues a software trigger to a DMA channel.
Definition dma.c:430
bool dma_configure(gossamer_dma_job_t *dmaJob, uint8_t peripheralTrigger, dma_trigger_action_t triggerAction, dma_configuration_flags_t flags)
Allocates a DMA channel and configures a job.
Definition dma.c:274
void dma_suspend_job(gossamer_dma_job_t *dmaJob)
Suspends a running DMA job.
Definition dma.c:416
void dma_resume_job(gossamer_dma_job_t *dmaJob)
Resumes a suspended DMA job.
Definition dma.c:423
void dma_enable(void)
Enables the DMA controller.
Definition dma.c:266