pub struct MTIME { /* private fields */ }Expand description
Peripheral register.
Implementations§
Methods from Deref<Target = Reg<u64, RW>>§
Sourcepub unsafe fn as_atomic<'a>(&self) -> &'a AtomicU64
pub unsafe fn as_atomic<'a>(&self) -> &'a AtomicU64
Creates a new atomic reference to the register.
§Safety
- Register must be properly aligned for atomic operations.
- The register must not be accessed through non-atomic operations for the whole lifetime
'a.
Sourcepub unsafe fn atomic_clear_bit(&self, n: usize, order: Ordering)
pub unsafe fn atomic_clear_bit(&self, n: usize, order: Ordering)
Clears the nth bit of the register atomically.
§Safety
- Register must be properly aligned for atomic operations.
- The register must not be accessed through non-atomic operations until this function returns.
Sourcepub unsafe fn atomic_set_bit(&self, n: usize, order: Ordering)
pub unsafe fn atomic_set_bit(&self, n: usize, order: Ordering)
Sets the nth bit of the register atomically.
§Safety
- Register must be properly aligned for atomic operations.
- The register must not be accessed through non-atomic operations until this function returns.
Trait Implementations§
impl Copy for MTIME
impl Eq for MTIME
impl StructuralPartialEq for MTIME
Auto Trait Implementations§
impl Freeze for MTIME
impl RefUnwindSafe for MTIME
impl Send for MTIME
impl Sync for MTIME
impl Unpin for MTIME
impl UnwindSafe for MTIME
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