PER Firmware
Loading...
Searching...
No Matches
PHAL_DMA_Callback_t Struct Reference

A DMA channel interrupt callback and the context passed to it. More...

#include <dma.h>

Public Attributes

PHAL_DMA_IRQCallbackFn_t irq_fn
 
void * ctx
 

Detailed Description

A DMA channel interrupt callback and the context passed to it.

Set via PHAL_DMA_initWithCallback(). Leave zero-initialized (irq_fn == nullptr) for channels that don't need interrupt-driven completion (ex: a channel whose completion is polled or driven by another peripheral's IDLE/status interrupt instead).

Member Data Documentation

◆ ctx

void* PHAL_DMA_Callback_t::ctx

Passed to irq_fn as-is. See PHAL_DMA_IRQCallbackFn_t for its lifetime requirement

◆ irq_fn

PHAL_DMA_IRQCallbackFn_t PHAL_DMA_Callback_t::irq_fn

nullptr if this channel has no registered callback


The documentation for this struct was generated from the following file: