pub struct ChipMap { /* private fields */ }Expand description
A single core’s peripheral and interrupt map.
Implementations§
Source§impl ChipMap
impl ChipMap
Sourcepub fn peripheral(&self, name: &str) -> Option<&PeripheralEntry>
pub fn peripheral(&self, name: &str) -> Option<&PeripheralEntry>
Look up a peripheral instance by name (case-insensitive).
Sourcepub fn contains_peripheral(&self, name: &str) -> bool
pub fn contains_peripheral(&self, name: &str) -> bool
Whether this core can reach the named peripheral instance.
Sourcepub fn peripheral_names(&self) -> Vec<String>
pub fn peripheral_names(&self) -> Vec<String>
Every peripheral instance name this core can reach, as the dump spells them. Order is unspecified; callers that emit code must sort.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChipMap
impl RefUnwindSafe for ChipMap
impl Send for ChipMap
impl Sync for ChipMap
impl Unpin for ChipMap
impl UnsafeUnpin for ChipMap
impl UnwindSafe for ChipMap
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