你(们)好
我想在我的代码上配置512线性调频脉冲 cfg。到目前为止、我使用的方法是逐个配置、但需要更长的时间。
当我将其更改为8 x 8或32 x 32时、效率会是多少? 或者如何配置将是实现这一目的的最佳方法?
针对实例代码段的8 x 8配置:
for (ChirpCntGrp1 = 0;ChirpCntGrp1 <512;ChirpCntGrp1 ++){
啁啾 Cfg[ChirpCnt].chirpStartIdx = ChirpCntGrp1 ;
啁啾 Cfg[ChirpCnt].chirpEndIdx = ChirpCntGrp1;
啁啾 Cfg[ChirpCnt].freqSlopeVar =(int16_t)(0 *((uint64_t)(1<<26)))/((uint64_t)(3.6*1e9*900));
啁啾 Cfg[ChirpCnt].idleTimeVar =(uint32_t)((float) 0 * 1000 / 10);
啁啾 Cfg[ChirpCnt].adcStartTimeVar =(uint32_t)((float) 0 * 1000 / 10);
啁啾 Cfg[ChirpCnt].profileID = 0;
啁啾 Cfg[ChirpCnt].txEnable = 2;
啁啾 Cfg[ChirpCnt].startFreqVar =(uint32_t)(((ChirpCntGrp1*200e3)*((uint64_t)(1<<26)))/(3.6*1e9))+\
(uint32_t)((((ChirpCntGrp2*0.6e6)*((uint64_t)(1<<26)))/(3.6*1e9));
ChirpCnt++;
if (ChirpCnt = 8){
错误代码= rlSetChirpConfig (RL_DEVICE_MAP_INTERNAL_BSS、8U、&啁 啾 Cfg[0]);
ChirpCnt = 0;
}
if (错误代码!= RL_RET_CODE_OK)
{
/*错误:设置线性调频脉冲配置失败*/
退货错误代码;
}
}
BR
六