pub struct MmioRegion {
base: usize,
size: usize,
}Fields§
§base: usize§size: usizeImplementations§
Source§impl MmioRegion
impl MmioRegion
Sourcefn checked_addr(&self, offset: usize, width: usize) -> usize
fn checked_addr(&self, offset: usize, width: usize) -> usize
Performs the checked addr operation.
Sourcepub fn set_bits32(&self, offset: usize, bits: u32)
pub fn set_bits32(&self, offset: usize, bits: u32)
Sets bits32.
Sourcepub fn clear_bits32(&self, offset: usize, bits: u32)
pub fn clear_bits32(&self, offset: usize, bits: u32)
Performs the clear bits32 operation.
Trait Implementations§
impl Send for MmioRegion
impl Sync for MmioRegion
Auto Trait Implementations§
impl Freeze for MmioRegion
impl RefUnwindSafe for MmioRegion
impl Unpin for MmioRegion
impl UnsafeUnpin for MmioRegion
impl UnwindSafe for MmioRegion
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