Embassy
rp-pac

Crates

git

Versions

default

Flavors

Struct rp_pac::dma::regs::SniffCtrl

source ·
#[repr(transparent)]
pub struct SniffCtrl(pub u32);
Expand description

Sniffer Control

Tuple Fields§

§0: u32

Implementations§

source§

impl SniffCtrl

source

pub const fn en(&self) -> bool

Enable sniffer

source

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

Enable sniffer

source

pub const fn dmach(&self) -> u8

DMA channel for Sniffer to observe

source

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

DMA channel for Sniffer to observe

source

pub const fn calc(&self) -> Calc

source

pub fn set_calc(&mut self, val: Calc)

source

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.

source

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.

source

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.

source

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.

source

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.

source

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§

source§

impl Clone for SniffCtrl

source§

fn clone(&self) -> SniffCtrl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for SniffCtrl

source§

fn default() -> SniffCtrl

Returns the “default value” for a type. Read more
source§

impl PartialEq<SniffCtrl> for SniffCtrl

source§

fn eq(&self, other: &SniffCtrl) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SniffCtrl

source§

impl Eq for SniffCtrl

source§

impl StructuralEq for SniffCtrl

source§

impl StructuralPartialEq for SniffCtrl

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.