Tool/software: Code Composer Studio
Hi,
The callback fucntion MmwDemo_dssMmwaveConfigCallbackFxn is assigned to initCfg which is then sent to MMWave_init function.
I couldn't understand when the callback function will be called?
and where does the parameter ptrCtrlCfg of MmwDemo_dssMmwaveConfigCallbackFxn come from?
static void MmwDemo_dssMmwaveConfigCallbackFxn(MMWave_CtrlCfg* ptrCtrlCfg) { /* Save the configuration */ memcpy((void *)(&gMmwDssMCB.cfg.ctrlCfg), (void *)ptrCtrlCfg, sizeof(MMWave_CtrlCfg)); gMmwDssMCB.stats.configEvt++; /* Post event to notify configuration is done */ Event_post(gMmwDssMCB.eventHandle, MMWDEMO_CONFIG_EVT); return; }
Thanks and Best Regards,
Ardeal