pub struct ClockConfig { /* private fields */ }Expand description
Implementations§
Source§impl ClockConfig
impl ClockConfig
Sourcepub const fn hclk(self, psc: AhbPsc) -> Self
pub const fn hclk(self, psc: AhbPsc) -> Self
Sets the AHB prescaler, dividing sysclk down to hclk.
Sourcepub const fn pclk1(self, psc: ApbPsc) -> Self
pub const fn pclk1(self, psc: ApbPsc) -> Self
Sets the APB1 prescaler, dividing hclk down to pclk1.
Sourcepub const fn pclk2(self, psc: ApbPsc) -> Self
pub const fn pclk2(self, psc: ApbPsc) -> Self
Sets the APB2 prescaler, dividing hclk down to pclk2.
Sourcepub const fn usart0_sel(self, src: Usart0Sel) -> Self
pub const fn usart0_sel(self, src: Usart0Sel) -> Self
Picks the USART0 clock source.
Sourcepub const fn adc_sel(self, sel: AdcSel) -> Self
pub const fn adc_sel(self, sel: AdcSel) -> Self
Picks the ADC clock source and starts it if needed.
Left at AdcSel::Off the ADC has no clock and Clocks::ck_adc stays
zero — constructing an Adc then panics.
Trait Implementations§
Source§impl Clone for ClockConfig
impl Clone for ClockConfig
Source§fn clone(&self) -> ClockConfig
fn clone(&self) -> ClockConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClockConfig
Source§impl Default for ClockConfig
impl Default for ClockConfig
impl Eq for ClockConfig
Source§impl Format for ClockConfig
impl Format for ClockConfig
Source§impl PartialEq for ClockConfig
impl PartialEq for ClockConfig
impl StructuralPartialEq for ClockConfig
Auto Trait Implementations§
impl Freeze for ClockConfig
impl RefUnwindSafe for ClockConfig
impl Send for ClockConfig
impl Sync for ClockConfig
impl Unpin for ClockConfig
impl UnsafeUnpin for ClockConfig
impl UnwindSafe for ClockConfig
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