[][src]Type Definition cc2538::rfcore_xreg::freqctrl::W

type W = W<u32, FREQCTRL>;

Writer for register FREQCTRL

Methods

impl W[src]

pub fn reserved32(&mut self) -> RESERVED32_W[src]

Bits 8:31 - 31:8] This register is 8 bits in a 32-bit address space.

pub fn reserved8(&mut self) -> RESERVED8_W[src]

Bit 7 - 7:7] Reserved. Always read 0.

pub fn freq(&mut self) -> FREQ_W[src]

Bits 0:6 - 6:0] Frequency control word The frequency word in FREQ[6:0] is an offset value from 2394 (fRF = FREQ[6 0] + 2394). The RF-frequency is specified from 2405 to 2480 MHz in 1-MHz steps; hence, the only valid settings for FREQ[6:0] are 11 to 86 (11 + 2394 = 2405 and 86 + 2394 = 2480). The device supports the frequency range from 2394 to 2507 MHz. Consequently, the usable settings for FREQ[6:0] are 0 to 113. Settings outside of the usable range (114 to 127) give a frequency of 2507 MHz. IEEE 802.15.4-2006 specifies a frequency range from 2405 MHz to 2480 MHz with 16 channels 5 MHz apart. The channels are numbered 11 through 26. For an IEEE 802.15.4-2006 compliant system, the only valid settings are thus FREQ[6:0] = 11 + 5 (channel number - 11).