Struct rp2040_pac2::dma::regs::SniffCtrl[][src]

#[repr(transparent)]pub struct SniffCtrl(pub u32);

Sniffer Control

Implementations

impl SniffCtrl[src]

pub const fn out_inv(&self) -> bool[src]

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.

pub fn set_out_inv(&mut self, val: bool)[src]

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.

pub const fn out_rev(&self) -> bool[src]

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.

pub fn set_out_rev(&mut self, val: bool)[src]

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.

pub const fn bswap(&self) -> bool[src]

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.

pub fn set_bswap(&mut self, val: bool)[src]

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.

pub const fn calc(&self) -> SniffCtrlCalc[src]

pub fn set_calc(&mut self, val: SniffCtrlCalc)[src]

pub const fn dmach(&self) -> u8[src]

DMA channel for Sniffer to observe

pub fn set_dmach(&mut self, val: u8)[src]

DMA channel for Sniffer to observe

pub const fn en(&self) -> bool[src]

Enable sniffer

pub fn set_en(&mut self, val: bool)[src]

Enable sniffer

Trait Implementations

impl Clone for SniffCtrl[src]

impl Copy for SniffCtrl[src]

impl Default for SniffCtrl[src]

Auto Trait Implementations

impl Send for SniffCtrl

impl Sync for SniffCtrl

impl Unpin for SniffCtrl

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.