Struct nucleo_l031k6_bsp::Board
source · pub struct Board<VDD, VCORE, RTC> {
pub pwr: Power<VDD, VCORE, RTC>,
pub flash: Flash,
pub rcc: Rcc,
}
Expand description
The L031K6-Nucleo
Fields
pwr: Power<VDD, VCORE, RTC>
The constrained Power peripheral
flash: Flash
The constrained Flash peripheral
rcc: Rcc
The constrained Rcc peripheral
Implementations
sourceimpl<VDD, VCORE, RTC> Board<VDD, VCORE, RTC>
impl<VDD, VCORE, RTC> Board<VDD, VCORE, RTC>
sourcepub fn pins(&mut self, gpioa: GPIOA, gpiob: GPIOB, gpioc: GPIOC) -> Pins
pub fn pins(&mut self, gpioa: GPIOA, gpiob: GPIOB, gpioc: GPIOC) -> Pins
Obtain Pins for this board in their post-reset state
sourcepub fn systick_start(&mut self, syst: &mut SYST, src: SystClkSource, ticks: u32)
pub fn systick_start(&mut self, syst: &mut SYST, src: SystClkSource, ticks: u32)
Set the up SysTick exception to be called every ticks
CPU cycles
sourcepub fn user_led<T>(&mut self, d13: PB3<T>) -> Led
pub fn user_led<T>(&mut self, d13: PB3<T>) -> Led
Configure pin D13 to be used to drive the user led LD3
Auto Trait Implementations
impl<VDD, VCORE, RTC> RefUnwindSafe for Board<VDD, VCORE, RTC>where
RTC: RefUnwindSafe,
VCORE: RefUnwindSafe,
VDD: RefUnwindSafe,
impl<VDD, VCORE, RTC> Send for Board<VDD, VCORE, RTC>where
RTC: Send,
VCORE: Send,
VDD: Send,
impl<VDD, VCORE, RTC> Sync for Board<VDD, VCORE, RTC>where
RTC: Sync,
VCORE: Sync,
VDD: Sync,
impl<VDD, VCORE, RTC> Unpin for Board<VDD, VCORE, RTC>where
RTC: Unpin,
VCORE: Unpin,
VDD: Unpin,
impl<VDD, VCORE, RTC> UnwindSafe for Board<VDD, VCORE, RTC>where
RTC: UnwindSafe,
VCORE: UnwindSafe,
VDD: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more