各位TI工作人员和论坛前辈好,请问一下,如果我要改变RF的频率,是否需要将RF设置为关闭模式?或者设置RF的频率是否需要一些其它的操作,而不是直接对FREQCTRL进行操作。
Susan Yang:
You can simply change frequency by writing into FREQCTRL register. This parameter is overwritten by Zstack, so you have to change function which handle frequency.
You can switch to any channel on the fly, what more, you can switch to channels out of 802.15.4 definnition (full frqency range of cc2530).
Channel decision is made in MAC_INTERNAL_API void macRadioUpdateChannel(void);
MAC_RADIO_SET_CHANNEL(macPhyChannel);—>MAC_RADIO_SET_CHANNEL(myDefinitionOfChannel);