pub type W = W<SNIFF_CTRL_SPEC>;
Expand description
Register SNIFF_CTRL
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
Source§impl W
impl W
Sourcepub fn en(&mut self) -> EN_W<'_, SNIFF_CTRL_SPEC>
pub fn en(&mut self) -> EN_W<'_, SNIFF_CTRL_SPEC>
Bit 0 - Enable sniffer
Sourcepub fn dmach(&mut self) -> DMACH_W<'_, SNIFF_CTRL_SPEC>
pub fn dmach(&mut self) -> DMACH_W<'_, SNIFF_CTRL_SPEC>
Bits 1:4 - DMA channel for Sniffer to observe
Sourcepub fn calc(&mut self) -> CALC_W<'_, SNIFF_CTRL_SPEC>
pub fn calc(&mut self) -> CALC_W<'_, SNIFF_CTRL_SPEC>
Bits 5:8
Sourcepub fn bswap(&mut self) -> BSWAP_W<'_, SNIFF_CTRL_SPEC>
pub fn bswap(&mut self) -> BSWAP_W<'_, SNIFF_CTRL_SPEC>
Bit 9 - Locally perform a byte reverse on the sniffed data, before feeding into checksum.
Note that the sniff hardware is downstream of the DMA channel byteswap performed in the read master: if channel CTRL_BSWAP and SNIFF_CTRL_BSWAP are both enabled, their effects cancel from the sniffer’s point of view.
Sourcepub fn out_rev(&mut self) -> OUT_REV_W<'_, SNIFF_CTRL_SPEC>
pub fn out_rev(&mut self) -> OUT_REV_W<'_, SNIFF_CTRL_SPEC>
Bit 10 - If set, the result appears bit-reversed when read. This does not affect the way the checksum is calculated; the result is transformed on-the-fly between the result register and the bus.
Sourcepub fn out_inv(&mut self) -> OUT_INV_W<'_, SNIFF_CTRL_SPEC>
pub fn out_inv(&mut self) -> OUT_INV_W<'_, SNIFF_CTRL_SPEC>
Bit 11 - If set, the result appears inverted (bitwise complement) when read. This does not affect the way the checksum is calculated; the result is transformed on-the-fly between the result register and the bus.