AnsweredAssumed Answered

Need help understanding HAL_DMA_RegisterCallback function

Question asked by Christopher Pappas on Aug 13, 2016
Latest reply on Oct 28, 2016 by Eternauta
HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)(DMA_HandleTypeDef *_hdma))

These are the parameters I am using in my code:

HAL_DMA_RegisterCallback(&hdma_dac1, HAL_DMA_XFER_HALFCPLT_CB_ID, MyDmaDac1Callback)

Getting errors on this line no matter how many times I try to alter the parameters.
Does a practical real-world code example exist to guide me on the proper syntax for this function? Can anyone offer some assistance?

Thanks,
Christopher

Outcomes