我注意到其他模式(包括FSK、long range made、ook)下,在smartrf_settings_predefined.c中会配置deviation、symbolRate数值,具体结构体的声明如下:
struct { uint16_t modType:3; //!< \brief 0: FSK<br> //!< 1: GFSK<br> //!< Others: <i>Reserved</i> uint16_t deviation:13; //!< Deviation (250 Hz steps) } modulation; struct { uint32_t preScale:4; //!< Prescaler value uint32_t :4; uint32_t rateWord:21; //!< Rate word uint32_t decimMode:3; //!< \brief 0: Use automatic PDIF decimation<br> //!< 1: Force PDIF decimation to 0<br> //!< 3: Force PDIF decimation to 1<br> //!< 5: Force PDIF decimation to 2<br> //!< Others: <i>Reserved</i> } symbolRate; //!< Symbol rate setting
但在smartrf_settings_predefined.c配置high speed mode时,我并没有找到这几个变量,具体配置如下:
rfc_CMD_RADIO_SETUP_t RF_cmdRadioSetup_hsm =
{
.commandNo = CMD_RADIO_SETUP,
.status = 0x0000,
.pNextOp = 0x00000000,
.startTime = 0x00000000,
.startTrigger.triggerType = 0x0,
.startTrigger.bEnaCmd = 0x0,
.startTrigger.triggerNo = 0x0,
.startTrigger.pastTrig = 0x0,
.condition.rule = 0x1,
.condition.nSkip = 0x0,
.mode = 0x05,
.loDivider = 5,
.config.frontEndMode = 0x0,
.config.biasMode = 0x1,
.config.bNoFsPowerUp = 0,
.txPower = 0x23F,
.pRegOverride = pOverrides_hsm,
};
我该如何得到high speed mode下deviation、symbolRate的数值,或者可能的话,请告诉我这些数值。
P.S.使用的工程为rfPacketErrorRate
谢谢