Struct rp2040_pac2::sio::Sio[][src]

pub struct Sio(pub *mut u8);

Single-cycle IO block Provides core-local and inter-core hardware for the two processors, with single-cycle access.

Implementations

impl Sio[src]

pub fn cpuid(self) -> Reg<u32, R>[src]

Processor core identifier Value is 0 when read from processor core 0, and 1 when read from processor core 1.

pub fn spinlock_st(self) -> Reg<u32, R>[src]

Spinlock state A bitmap containing the state of all 32 spinlocks (1=locked). Mainly intended for debugging.

pub fn div(self) -> Div[src]

pub fn fifo(self) -> Fifo[src]

pub fn interp(self, n: usize) -> Interp[src]

pub fn spinlock(self, n: usize) -> Reg<u32, R>[src]

Reading from a spinlock address will: - Return 0 if lock is already locked - Otherwise return nonzero, and simultaneously claim the lock Writing (any value) releases the lock. If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins. The value returned on success is 0x1 << lock number.

pub fn gpio_oe(self, n: usize) -> Gpio[src]

pub fn gpio_in(self, n: usize) -> Reg<u32, RW>[src]

Input value for GPIO pins

pub fn gpio_out(self, n: usize) -> Gpio[src]

Trait Implementations

impl Clone for Sio[src]

impl Copy for Sio[src]

impl Send for Sio[src]

impl Sync for Sio[src]

Auto Trait Implementations

impl Unpin for Sio

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.