1.36.8.5 MEM2MEM_CALLBACK Typedef

C

typedef void (*MEM2MEM_CALLBACK) (MEM2MEM_TRANSFER_EVENT event, uintptr_t context);

Summary

Pointer to a MEM2MEM Transfer Event handler function.

Description

This data type defines a MEM2MEM Transfer Event Handler Function. A MEM2MEM PLIB client must register a transfer event handler function of this type to receive transfer related events from the PLIB.

If the event is MEM2MEM_TRANSFER_EVENT_COMPLETE, this means that the data was transferred successfully.

If the event is MEM2MEM_TRANSFER_EVENT_ERROR, this means that the data was not transferred successfully.

The context parameter contains the context handle that was provided by the client at the time of registering the event handler. This context handle can be anything that the client considers helpful or necessary to identify the client context associated with the MEM2MEM channel that generated the event.

The event handler function executes in an interrupt context of MEM2MEM. It is recommended to the application not to perform process intensive operations with in this function.

Remarks

None.