AWR1843-DEMO工程研究 (MmwDemo_CLISensorStart部分)
此部分桥接cli与sensor start
命令语法检测
if (argc == 2)
{
doReconfig = (bool) atoi (argv[1]);
if (doReconfig == true)
{
CLI_write ("Error: Reconfig is not supported, only argument of 0 is\n"
"(do not reconfig, just re-start the sensor) valid\n");
return -1;
}
}
else
{
doReconfig = true;
}
检查传感器配置
if ((gMmwMssMCB.sensorState == MmwDemo_SensorState_INIT) ||
(gMmwMssMCB.sensorState == MmwDemo_SensorState_OPENED))
{
MMWave_CtrlCfg ctrlCfg;
CLI_getMMWaveExtensionConfig (&ctrlCfg);
gMmwMssMCB.objDetCommonCfg.preStartCommonCfg.numSubFrames =
MmwDemo_RFParser_getNumSubFrames(&ctrlCfg);
if (MmwDemo_isAllCfgInPendingState() == 0