Struct rp_pac::pio::regs::DbgCfginfo
source · #[repr(transparent)]pub struct DbgCfginfo(pub u32);
Expand description
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.
Tuple Fields§
§0: u32
Implementations§
source§impl DbgCfginfo
impl DbgCfginfo
sourcepub const fn fifo_depth(&self) -> u8
pub const fn fifo_depth(&self) -> u8
The depth of the state machine TX/RX FIFOs, measured in words. Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double this depth.
sourcepub fn set_fifo_depth(&mut self, val: u8)
pub fn set_fifo_depth(&mut self, val: u8)
The depth of the state machine TX/RX FIFOs, measured in words. Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double this depth.
sourcepub const fn sm_count(&self) -> u8
pub const fn sm_count(&self) -> u8
The number of state machines this PIO instance is equipped with.
sourcepub fn set_sm_count(&mut self, val: u8)
pub fn set_sm_count(&mut self, val: u8)
The number of state machines this PIO instance is equipped with.
sourcepub const fn imem_size(&self) -> u8
pub const fn imem_size(&self) -> u8
The size of the instruction memory, measured in units of one instruction
sourcepub fn set_imem_size(&mut self, val: u8)
pub fn set_imem_size(&mut self, val: u8)
The size of the instruction memory, measured in units of one instruction
Trait Implementations§
source§impl Clone for DbgCfginfo
impl Clone for DbgCfginfo
source§fn clone(&self) -> DbgCfginfo
fn clone(&self) -> DbgCfginfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for DbgCfginfo
impl Default for DbgCfginfo
source§fn default() -> DbgCfginfo
fn default() -> DbgCfginfo
Returns the “default value” for a type. Read more
source§impl PartialEq for DbgCfginfo
impl PartialEq for DbgCfginfo
impl Copy for DbgCfginfo
impl Eq for DbgCfginfo
impl StructuralPartialEq for DbgCfginfo
Auto Trait Implementations§
impl Freeze for DbgCfginfo
impl RefUnwindSafe for DbgCfginfo
impl Send for DbgCfginfo
impl Sync for DbgCfginfo
impl Unpin for DbgCfginfo
impl UnwindSafe for DbgCfginfo
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)