Hi Sir
We followed the sample code and would like to enable continuous streaming mode(single tone).
But it will fail if we use below code sample.
Could you advise where is the mistake and thanks.
#define CONV_FREQ_GHZ_TO_CODEWORD(X) ROUND_TO_INT32(X * (1.0e9/53.644))
rlContModeCfg_t contModeCfg;
contModeCfg.startFreqConst = (CONV_FREQ_GHZ_TO_CODEWORD(nFreqCent));
contModeCfg.txOutPowerBackoffCode = 0;
contModeCfg.txPhaseShifter = 0;
contModeCfg.digOutSampleRate = 10000;
contModeCfg.hpfCornerFreq1 = 0;
contModeCfg.hpfCornerFreq2 = 0;
contModeCfg.rxGain = 30;
contModeCfg.vcoSelect = 0x0;
contModeCfg.reserved0 = 0x0;
rlContModeEn_t contModeEnable;
contModeEnable.contModeEn = 1;
retVal = rlSetContModeConfig(RL_DEVICE_MAP_INTERNAL_BSS, (rlContModeCfg_t*)&contModeCfg);
/* Check for mmWaveLink API call status */
if(retVal != 0)
{
/* Error: Link reported an issue. */
System_printf("Error: rlSetContModeConfig retVal=%d\n", retVal);
return -1;
}
System_printf("Debug: Finished rlSetContModeConfig\n");
retVal = rlEnableContMode(RL_DEVICE_MAP_INTERNAL_BSS, (rlContModeEn_t*)&contModeEnable);
/* Check for mmWaveLink API call status */
if(retVal != 0)
{
/* Error: Link reported an issue. */
System_printf("Error: rlEnableContMode retVal=%d\n", retVal);
return -1;
}
System_printf("Debug: Finished rlEnableContMode\n");
BR
Yimin