pub struct PeripheralEntry {
pub name: String,
pub base: u32,
pub block: String,
}Expand description
A resolved peripheral: its MMIO base and register-block reference.
Fields§
§name: StringInstance name exactly as the dump spells it, e.g. LPI2C1. Lookups are
case-insensitive, so this is what code generation must use when it needs
to name the matching HAL peripheral singleton.
base: u32Physical base address as seen by the owning core.
block: StringRegister-block reference from the dump, e.g. lpi2c/LPI2C or gpio/GPIO.
Implementations§
Trait Implementations§
Source§impl Clone for PeripheralEntry
impl Clone for PeripheralEntry
Source§impl Debug for PeripheralEntry
impl Debug for PeripheralEntry
impl Eq for PeripheralEntry
Source§impl PartialEq for PeripheralEntry
impl PartialEq for PeripheralEntry
impl StructuralPartialEq for PeripheralEntry
Auto Trait Implementations§
impl Freeze for PeripheralEntry
impl RefUnwindSafe for PeripheralEntry
impl Send for PeripheralEntry
impl Sync for PeripheralEntry
impl Unpin for PeripheralEntry
impl UnsafeUnpin for PeripheralEntry
impl UnwindSafe for PeripheralEntry
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.