Struct imxrt_ral::RORegister
pub struct RORegister<T> { /* private fields */ }
Expand description
A read-only register of type T.
Contains one value of type T and provides a volatile read function to it.
§Safety
This register should be used where reads and writes to this peripheral register do not lead to 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§
§impl<T> RORegister<T>where
T: Copy,
impl<T> RORegister<T>where
T: Copy,
pub fn read(&self) -> T
pub fn read(&self) -> T
Reads the value of the register.
Auto Trait Implementations§
impl<T> !Freeze for RORegister<T>
impl<T> !RefUnwindSafe for RORegister<T>
impl<T> Send for RORegister<T>where
T: Send,
impl<T> !Sync for RORegister<T>
impl<T> Unpin for RORegister<T>where
T: Unpin,
impl<T> UnwindSafe for RORegister<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