pub struct AfMapping {
pub pin: Pin,
pub af: u8,
pub peripheral: &'static str,
pub signal: &'static str,
}Expand description
One alternate-function mapping: a Pin driving a peripheral signal at a
given AF number (AF0–AF15).
Fields§
§pin: Pin§af: u8§peripheral: &'static strPeripheral instance, e.g. "SPI1".
signal: &'static strSignal on that peripheral, e.g. "MOSI".
Trait Implementations§
impl Copy for AfMapping
impl Eq for AfMapping
impl StructuralPartialEq for AfMapping
Auto Trait Implementations§
impl Freeze for AfMapping
impl RefUnwindSafe for AfMapping
impl Send for AfMapping
impl Sync for AfMapping
impl Unpin for AfMapping
impl UnsafeUnpin for AfMapping
impl UnwindSafe for AfMapping
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