pub struct Mpuir { /* private fields */ }Expand description
MPUIR (MPU Type Register)
Implementations§
Source§impl Mpuir
impl Mpuir
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new_with_raw_value(value: u32) -> Mpuir
pub const fn new_with_raw_value(value: u32) -> Mpuir
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn iregions(&self) -> u8
pub const fn iregions(&self) -> u8
Specifies the number of Instruction regions implemented by the MPU.
If the MPU implements a Unified memory map this field is UNK/SBZ.
Sourcepub const fn dregions(&self) -> u8
pub const fn dregions(&self) -> u8
Specifies the number of Data or Unified regions implemented by the MPU.
Sourcepub const fn non_unified(&self) -> bool
pub const fn non_unified(&self) -> bool
Is the MPU non-unified
Trait Implementations§
Source§impl SysRegRead for Mpuir
impl SysRegRead for Mpuir
impl Copy for Mpuir
Auto Trait Implementations§
impl Freeze for Mpuir
impl RefUnwindSafe for Mpuir
impl Send for Mpuir
impl Sync for Mpuir
impl Unpin for Mpuir
impl UnwindSafe for Mpuir
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