#[repr(transparent)]pub struct Perm(pub u32);
Expand description
Description cluster: Get and set the applicable access permissions for the peripheral slave index n
Tuple Fields§
§0: u32
Implementations§
Source§impl Perm
impl Perm
Sourcepub const fn securemapping(&self) -> Securemapping
pub const fn securemapping(&self) -> Securemapping
Read capabilities for TrustZone Cortex-M secure attribute
Sourcepub fn set_securemapping(&mut self, val: Securemapping)
pub fn set_securemapping(&mut self, val: Securemapping)
Read capabilities for TrustZone Cortex-M secure attribute
Sourcepub fn set_secattr(&mut self, val: bool)
pub fn set_secattr(&mut self, val: bool)
Peripheral security mapping
Sourcepub fn set_dmasec(&mut self, val: bool)
pub fn set_dmasec(&mut self, val: bool)
Security attribution for the DMA transfer
Sourcepub const fn present(&self) -> Present
pub const fn present(&self) -> Present
Indicates if a peripheral is present with peripheral slave index n
Sourcepub fn set_present(&mut self, val: Present)
pub fn set_present(&mut self, val: Present)
Indicates if a peripheral is present with peripheral slave index n
Trait Implementations§
impl Copy for Perm
impl Eq for Perm
impl StructuralPartialEq for Perm
Auto Trait Implementations§
impl Freeze for Perm
impl RefUnwindSafe for Perm
impl Send for Perm
impl Sync for Perm
impl Unpin for Perm
impl UnwindSafe for Perm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)