Struct rp2040_pac::pio0::sm::SM
source · #[repr(C)]pub struct SM { /* private fields */ }
Expand description
Register block
Implementations§
source§impl SM
impl SM
sourcepub const fn sm_clkdiv(&self) -> &SM_CLKDIV
pub const fn sm_clkdiv(&self) -> &SM_CLKDIV
0x00 - Clock divisor register for state machine 0
Frequency = clock freq / (CLKDIV_INT + CLKDIV_FRAC / 256)
sourcepub const fn sm_execctrl(&self) -> &SM_EXECCTRL
pub const fn sm_execctrl(&self) -> &SM_EXECCTRL
0x04 - Execution/behavioural settings for state machine 0
sourcepub const fn sm_shiftctrl(&self) -> &SM_SHIFTCTRL
pub const fn sm_shiftctrl(&self) -> &SM_SHIFTCTRL
0x08 - Control behaviour of the input/output shift registers for state machine 0
sourcepub const fn sm_instr(&self) -> &SM_INSTR
pub const fn sm_instr(&self) -> &SM_INSTR
0x10 - Read to see the instruction currently addressed by state machine 0’s program counter
Write to execute an instruction immediately (including jumps) and then resume execution.
sourcepub const fn sm_pinctrl(&self) -> &SM_PINCTRL
pub const fn sm_pinctrl(&self) -> &SM_PINCTRL
0x14 - State machine pin control
Auto Trait Implementations§
impl !RefUnwindSafe for SM
impl Send for SM
impl !Sync for SM
impl Unpin for SM
impl UnwindSafe for SM
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