pub struct BoardPins {
pub leds: LedPins,
pub usart1: Usart1Pins,
pub spi4: Spi4Pins,
pub drv8873: DrvPins,
pub m1: Motor1Pins,
pub m2: Motor2Pins,
pub encoder: EncoderPins,
pub can1: Can1Pins,
pub can2: Can2Pins,
}Expand description
All board pins. Construct this once at startup using:
let pins = BoardPins::new(dp.GPIOA, dp.GPIOB, dp.GPIOD, dp.GPIOE);Fields§
§leds: LedPins§usart1: Usart1Pins§spi4: Spi4Pins§drv8873: DrvPins§m1: Motor1Pins§m2: Motor2Pins§encoder: EncoderPins§can1: Can1Pins§can2: Can2PinsImplementations§
Auto Trait Implementations§
impl Freeze for BoardPins
impl RefUnwindSafe for BoardPins
impl Send for BoardPins
impl Sync for BoardPins
impl Unpin for BoardPins
impl UnwindSafe for BoardPins
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