Struct imxrt_ral::RWRegister
source · pub struct RWRegister<T> { /* private fields */ }
Expand description
A read-write register of type T.
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 register do not lead to memory unsafety. For example, it is a poor choice for a DMA target, but less worrisome for a GPIO output data register.
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> !Freeze for RWRegister<T>
impl<T> !RefUnwindSafe for RWRegister<T>
impl<T> Send for RWRegister<T>where
T: Send,
impl<T> !Sync for RWRegister<T>
impl<T> Unpin for RWRegister<T>where
T: Unpin,
impl<T> UnwindSafe for RWRegister<T>where
T: UnwindSafe,
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