Struct stm32ral::UnsafeRORegister
source · [−]pub struct UnsafeRORegister<T> { /* private fields */ }
Expand description
A read-only register of type T, where read access is unsafe.
Contains one value of type T and provides a volatile read function to it.
Safety
This register should be used where reads to this peripheral may invoke undefined behaviour or memory unsafety.
Access to this register must be synchronised; if multiple threads (or the main thread and an interrupt service routine) are accessing it simultaneously you may encounter data races.
Implementations
sourceimpl<T: Copy> UnsafeRORegister<T>
impl<T: Copy> UnsafeRORegister<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for UnsafeRORegister<T>
impl<T> Send for UnsafeRORegister<T> where
T: Send,
impl<T> !Sync for UnsafeRORegister<T>
impl<T> Unpin for UnsafeRORegister<T> where
T: Unpin,
impl<T> UnwindSafe for UnsafeRORegister<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more