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

type W = W<u32, MDMCTRL0>;

Writer for register MDMCTRL0

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 dem_num_zeros(&mut self) -> DEM_NUM_ZEROS_W[src]

Bits 6:7 - 7:6] Sets how many zero symbols must be detected before the sync word when searching for sync. Only one zero symbol is required to have a correlation value above the correlation threshold set in the MDMCTRL1 register. 00: Reserved 01: 1 zero symbol 10: 2 zero symbols 11: 3 zero symbols

pub fn demod_avg_mode(&mut self) -> DEMOD_AVG_MODE_W[src]

Bit 5 - 5:5] Defines the behavior or the frequency offset averaging filter. 0: Lock average level after preamble match. Restart frequency offset calibration when searching for the next frame. 1: Continuously update average level.

pub fn preamble_length(&mut self) -> PREAMBLE_LENGTH_W[src]

Bits 1:4 - 4:1] The number of preamble bytes (two zero-symbols) to be sent in TX mode before the SFD, encoded in steps of 2 symbols (1 byte). The reset value of 2 is compliant with IEEE 802.15.4. 0000: 2 leading-zero bytes 0001: 3 leading-zero bytes 0010: 4 leading-zero bytes ... 1111: 17 leading-zero bytes

pub fn tx_filter(&mut self) -> TX_FILTER_W[src]

Bit 0 - 0:0] Defines the kind of TX filter that is used. The normal TX filter is as defined by the IEEE 802.15.4 standard. Extra filtering may be applied to lower the out-of-band emissions. 0: Normal TX filtering 1: Enable extra filtering