This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

what's the meaning of the callback function

Other Parts Discussed in Thread: OMAPL138

Hello all,

I'm learning the EDMA3(used on omapl138)and I was confused when watching the code:

/* Callback function */
void callback(unsigned int tccNum, unsigned int status, void *appData)
{
(void)tccNum;
(void)appData;

if(EDMA3_XFER_COMPLETE == status)
{
/* Transfer completed successfully */
irqRaised = 1;
}

else if(EDMA3_CC_DMA_EVT_MISS == status)
{
/* Transfer resulted in DMA event miss error. */
irqRaised = -1;
}

else if(EDMA3_CC_QDMA_EVT_MISS == status)
{
/* Transfer resulted in QDMA event miss error. */
irqRaised = -2;
}
}

please tell me what's the meaning of this function and how to use it.