Struct stm32ral::UnsafeRWRegister
source · [−]pub struct UnsafeRWRegister<T> { /* private fields */ }
Expand description
A read-write register of type T, where read/write access is unsafe.
Contains one value of type T and provides volatile read/write functions to it.
Safety
This register should be used where reads and writes to this peripheral may invoke undefined behaviour or memory unsafety. For example, any registers you write a memory address into.
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
Auto Trait Implementations
impl<T> !RefUnwindSafe for UnsafeRWRegister<T>
impl<T> Send for UnsafeRWRegister<T> where
T: Send,
impl<T> !Sync for UnsafeRWRegister<T>
impl<T> Unpin for UnsafeRWRegister<T> where
T: Unpin,
impl<T> UnwindSafe for UnsafeRWRegister<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