#[repr(transparent)]pub struct Mair0(pub u32);Expand description
MPU Memory Attribute Indirection Registers 0.
Tuple Fields§
§0: u32Implementations§
Source§impl Mair0
impl Mair0
Sourcepub const fn attr0(&self) -> u8
pub const fn attr0(&self) -> u8
Memory attribute encoding for MPU regions with an AttrIndex of 0.
Sourcepub const fn set_attr0(&mut self, val: u8)
pub const fn set_attr0(&mut self, val: u8)
Memory attribute encoding for MPU regions with an AttrIndex of 0.
Sourcepub const fn attr1(&self) -> u8
pub const fn attr1(&self) -> u8
Memory attribute encoding for MPU regions with an AttrIndex of 1.
Sourcepub const fn set_attr1(&mut self, val: u8)
pub const fn set_attr1(&mut self, val: u8)
Memory attribute encoding for MPU regions with an AttrIndex of 1.
Sourcepub const fn attr2(&self) -> u8
pub const fn attr2(&self) -> u8
Memory attribute encoding for MPU regions with an AttrIndex of 2.
Sourcepub const fn set_attr2(&mut self, val: u8)
pub const fn set_attr2(&mut self, val: u8)
Memory attribute encoding for MPU regions with an AttrIndex of 2.
Trait Implementations§
impl Copy for Mair0
impl Eq for Mair0
impl StructuralPartialEq for Mair0
Auto Trait Implementations§
impl Freeze for Mair0
impl RefUnwindSafe for Mair0
impl Send for Mair0
impl Sync for Mair0
impl Unpin for Mair0
impl UnwindSafe for Mair0
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