#[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.
Trait Implementations§
impl Copy for SniffCtrl
impl Eq for SniffCtrl
impl StructuralPartialEq for SniffCtrl
Auto Trait Implementations§
impl Freeze for SniffCtrl
impl RefUnwindSafe for SniffCtrl
impl Send for SniffCtrl
impl Sync for SniffCtrl
impl Unpin for SniffCtrl
impl UnwindSafe for SniffCtrl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)