I try to integrate some mmwaveLink features into the demo project in SDK3.5.0.4.
I hope my radar can continue monitor the Tx power of the radar in each processing cycle when the radar is working.
I try to imitate the rlRfGetTemperatureReport source code in the MmwaveLink to create another my own API to get TxPower, e.g. rlRfGetTxPowerReport
I look into the source code of rlRfGetTemperatureReport API in rl_sensor.c as follows.
rlReturnVal_t rlRfGetTemperatureReport(rlUInt8_t deviceMap, rlRfTempData_t* data) { rlReturnVal_t retVal; RL_LOGV_ARG0("rlRfGetTemperatureReport starts...\n"); /* check if deviceIndex is out of defined value */ if ((rlDriverIsDeviceMapValid(deviceMap) != RL_RET_CODE_OK) || \ (RL_NULL_PTR == data)) { /* set return error code */ retVal = RL_RET_CODE_INVALID_INPUT; RL_LOGE_ARG0("rlRfGetTemperatureReport, Invalid device map\n"); } else { /* Package the command with given data and send it to device */ retVal = rlDriverExecuteGetApi(deviceMap, RL_RF_MISC_CONF_GET_MSG, RL_RF_CHAR_CONF_DYNAMIC_GET_SB, (rlUInt8_t*)data, (rlUInt16_t)sizeof(rlRfTempData_t)); } RL_LOGV_ARG0("rlRfGetTemperatureReport ends...\n"); return retVal; }
However I have the problem to assign the parameters of rlDriverExecuteGetApi.
Please, tell me am I in the right track?
Teach me how to assign the parameters of rlDriverExecuteGetApi if you know about it.
Thanks your help.