Struct rp2040_pac2::pio::regs::DbgCfginfo[][src]

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

The PIO hardware has some free parameters that may vary between chip products. These should be provided in the chip datasheet, but are also exposed here.

Implementations

impl DbgCfginfo[src]

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

The size of the instruction memory, measured in units of one instruction

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

The size of the instruction memory, measured in units of one instruction

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

The number of state machines this PIO instance is equipped with.

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

The number of state machines this PIO instance is equipped with.

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

The depth of the state machine TX/RX FIFOs, measured in words. Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double this depth.

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

The depth of the state machine TX/RX FIFOs, measured in words. Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double this depth.

Trait Implementations

impl Clone for DbgCfginfo[src]

impl Copy for DbgCfginfo[src]

impl Default for DbgCfginfo[src]

Auto Trait Implementations

impl Send for DbgCfginfo

impl Sync for DbgCfginfo

impl Unpin for DbgCfginfo

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.