pub struct SignalMap { /* private fields */ }Expand description
A family’s pads, signals, packages, and DMA requests.
Implementations§
Source§impl SignalMap
impl SignalMap
Sourcepub fn package_of(&self, chip: &str) -> Option<&Package>
pub fn package_of(&self, chip: &str) -> Option<&Package>
The package a part number comes in, if the family lists packages and
chip is specific enough to pick one.
CubeMX writes a part as STM32MP257FAKx, where the x is the
temperature-range digit, so stm32mp257fak3 matches it and
stm32mp257 (no package letters) matches nothing.
Sourcepub fn signal_routes(&self, peripheral: &str, signal: &str) -> Vec<&Signal>
pub fn signal_routes(&self, peripheral: &str, signal: &str) -> Vec<&Signal>
Every pad that can carry <peripheral>_<signal> (case-insensitive),
e.g. ("usart2", "tx").
Matching is on the vendor’s function name, so it also works for blocks
no controller core can reach (whose Signal::peripheral is None).
Sourcepub fn dma_requests(&self) -> &[DmaRequest]
pub fn dma_requests(&self) -> &[DmaRequest]
Every DMA request line of the family.
Sourcepub fn dma_requests_for(&self, peripheral: &str) -> Vec<&DmaRequest>
pub fn dma_requests_for(&self, peripheral: &str) -> Vec<&DmaRequest>
The DMA request lines peripheral raises (case-insensitive).
Trait Implementations§
Auto Trait Implementations§
impl Forget for SignalMap
impl Freeze for SignalMap
impl RefUnwindSafe for SignalMap
impl Send for SignalMap
impl Sync for SignalMap
impl Unpin for SignalMap
impl UnsafeUnpin for SignalMap
impl UnwindSafe for SignalMap
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