Struct rp2040_pac2::sio::Sio [−][src]
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]
fn clone(&self) -> Sio
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Sio
[src]
impl Send for Sio
[src]
impl Sync for Sio
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,