| ccband | RF channel band: {0} for IEEE 802.15.4 RF channels; {1,...,5} for user-defined RF channels; | |
| channel | Number of an IEEE 802.15.4 RF channel: {0,...,10}; All other values are reserved and must not be used. | |
| ccnumber | center frequency index: {0,...,255} for ccband={1,2,3};{0,...,94} for ccband=4;{0,...,102} for ccband=5;All other values are reserved and must not be used |
ccband=0 is stored. Unless the value of the parameter ccband is not changed by the software, an explicit write of this subregister can ommited in the use cases PHY_SET_CHANNEL and PHY_SET_CHANNEL_LOCK.Use Cases:
/* AT86RF212::TRX_OFF */ trx_bit_write(SR_CC_BAND, 0); trx_bit_write(SR_CHANNEL, channel);
/* AT86RF212::[PLL_ACTIVE] */ trx_bit_write(SR_CC_BAND, 0); trx_bit_write(SR_CHANNEL, channel); delay(tTR20);
ccband has the value 0, in order to ensure, that the value read from sub register SR_CHANNEL is valid. The channel number can be read at any time without affecting any ongoing transactions (send, receive).
/* AT86RF212::[ACTIVE] */ ccband = trx_bit_read(SR_CC_BAND); ASSERT(ccband==0); channel = trx_bit_read(SR_CHANNEL);
/* AT86RF212::TRX_OFF */ trx_bit_write(SR_CC_BAND, ccband); trx_bit_write(SR_CC_NUMBER, ccnumber);
/* AT86RF212::[PLL_ACTIVE] */ trx_bit_write(SR_CC_BAND, ccband); trx_bit_write(SR_CC_NUMBER, ccnumber); delay(tTR20);
ccband is not 0, in order to ensure, that the value read from sub register SR_CC_NUMBER is valid. The value from the sub registers SR_CC_NUMBER and SR_CC_BAND can be read at any time without affecting any transaction.
/* AT86RF212::[ACTIVE] */ ccband = trx_bit_read(SR_CC_BAND); ASSERT(ccband!=0); ccnumber = trx_bit_read(SR_CC_NUMBER);
1.5.6