Struct rp2040_pac2::generic::Reg[][src]

pub struct Reg<T: Copy, A: Access> { /* fields omitted */ }

Implementations

impl<T: Copy, A: Access> Reg<T, A>[src]

pub fn from_ptr(ptr: *mut u8) -> Self[src]

pub fn ptr(&self) -> *mut T[src]

impl<T: Copy, A: Read> Reg<T, A>[src]

pub unsafe fn read(&self) -> T[src]

impl<T: Copy, A: Write> Reg<T, A>[src]

pub unsafe fn write_value(&self, val: T)[src]

impl<T: Default + Copy, A: Write> Reg<T, A>[src]

pub unsafe fn write<R>(&self, f: impl FnOnce(&mut T) -> R) -> R[src]

impl<T: Copy, A: Read + Write> Reg<T, A>[src]

pub unsafe fn modify<R>(&self, f: impl FnOnce(&mut T) -> R) -> R[src]

Trait Implementations

impl<T: Clone + Copy, A: Clone + Access> Clone for Reg<T, A>[src]

impl<T: Copy, A: Copy + Access> Copy for Reg<T, A>[src]

impl<T: Copy, A: Access> Send for Reg<T, A>[src]

impl<T: Copy, A: Access> Sync for Reg<T, A>[src]

Auto Trait Implementations

impl<T, A> Unpin for Reg<T, A>

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.