pub struct PtrIO;Expand description
Default RegisterIO implementation.
Provides infallible register access through volatile pointer reads and writes.
Trait Implementations§
Source§impl RawRegisterIO for PtrIO
impl RawRegisterIO for PtrIO
Source§type Error = Infallible
type Error = Infallible
The error type this register transport returns. For infallible transports
(e.g., direct volatile pointer accesses), this should be
core::convert::Infallible
so that the Reg type can provide an infallible API in addition
to the try_* API.Auto Trait Implementations§
impl Freeze for PtrIO
impl RefUnwindSafe for PtrIO
impl Send for PtrIO
impl Sync for PtrIO
impl Unpin for PtrIO
impl UnsafeUnpin for PtrIO
impl UnwindSafe for PtrIO
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> RegisterIO for Twhere
T: RawRegisterIO,
impl<T> RegisterIO for Twhere
T: RawRegisterIO,
type Error = <T as RawRegisterIO>::Error
Source§unsafe fn try_read_register<R>(
&self,
ptr: *const <R as Register>::Regwidth,
) -> Result<R, <T as RegisterIO>::Error>
unsafe fn try_read_register<R>( &self, ptr: *const <R as Register>::Regwidth, ) -> Result<R, <T as RegisterIO>::Error>
Read a register value Read more