#[repr(transparent)]pub struct SniffCtrl(pub u32);
Expand description
Sniffer Control
Tuple Fields§
§0: u32
Implementations§
Source§impl SniffCtrl
impl SniffCtrl
pub const fn calc(&self) -> Calc
pub fn set_calc(&mut self, val: Calc)
Sourcepub const fn bswap(&self) -> bool
pub const fn bswap(&self) -> bool
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 set_bswap(&mut self, val: bool)
pub fn set_bswap(&mut self, val: bool)
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 const fn out_rev(&self) -> bool
pub const fn out_rev(&self) -> bool
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 set_out_rev(&mut self, val: bool)
pub fn set_out_rev(&mut self, val: bool)
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 const fn out_inv(&self) -> bool
pub const fn out_inv(&self) -> bool
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.
Sourcepub fn set_out_inv(&mut self, val: bool)
pub fn set_out_inv(&mut self, val: bool)
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.