3.3.5.1 DMAC_ChannelCallbackRegister
This function allows a DMAC PLIB client to set an event handler.
This function allows a client to set an event handler. The client may want to receive transfer related events in cases when it submits a DMAC PLIB transfer request. The event handler should be set before the client intends to perform operations that could generate events.
void
DMAC_ChannelCallbackRegister
(
DMAC_CHANNEL channel,
const DMAC_CHANNEL_CALLBACK eventHandler,
const uintptr_t contextHandle
)
Precondition
- DMAC should have been initialized by calling DMAC_Initialize
Parameters
- channel - A specific DMAC channel from which the events are expected.
- callback - Pointer to the event handler function.
- context - Value identifying the context of the application/driver/middleware that registered the event handling function.
Returns
- void
