#[repr(transparent)]pub struct PeriphidPerm(pub u32);
Expand description
Description cluster: List capabilities and access permissions for the peripheral with ID n
Tuple Fields§
§0: u32
Implementations§
Source§impl PeriphidPerm
impl PeriphidPerm
Sourcepub const fn securemapping(&self) -> PeriphidPermSecuremapping
pub const fn securemapping(&self) -> PeriphidPermSecuremapping
Define configuration capabilities for Arm TrustZone Cortex-M secure attribute
Sourcepub fn set_securemapping(&mut self, val: PeriphidPermSecuremapping)
pub fn set_securemapping(&mut self, val: PeriphidPermSecuremapping)
Define configuration capabilities for Arm TrustZone Cortex-M secure attribute
Sourcepub const fn dma(&self) -> Dma
pub const fn dma(&self) -> Dma
Indicates if the peripheral has DMA capabilities and if DMA transfer can be assigned to a different security attribute than the peripheral itself
Sourcepub fn set_dma(&mut self, val: Dma)
pub fn set_dma(&mut self, val: Dma)
Indicates if the peripheral has DMA capabilities and if DMA transfer can be assigned to a different security attribute than the peripheral itself
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
pub const fn lock(&self) -> bool
pub fn set_lock(&mut self, val: bool)
Sourcepub fn set_present(&mut self, val: Present)
pub fn set_present(&mut self, val: Present)
Indicate if a peripheral is present with ID n
Trait Implementations§
Source§impl Clone for PeriphidPerm
impl Clone for PeriphidPerm
Source§fn clone(&self) -> PeriphidPerm
fn clone(&self) -> PeriphidPerm
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PeriphidPerm
impl Default for PeriphidPerm
Source§fn default() -> PeriphidPerm
fn default() -> PeriphidPerm
Returns the “default value” for a type. Read more
Source§impl PartialEq for PeriphidPerm
impl PartialEq for PeriphidPerm
impl Copy for PeriphidPerm
impl Eq for PeriphidPerm
impl StructuralPartialEq for PeriphidPerm
Auto Trait Implementations§
impl Freeze for PeriphidPerm
impl RefUnwindSafe for PeriphidPerm
impl Send for PeriphidPerm
impl Sync for PeriphidPerm
impl Unpin for PeriphidPerm
impl UnwindSafe for PeriphidPerm
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
)