pub enum Clock {
Auto,
Async(Prescaler),
Sync(SyncDiv),
}Expand description
ADC clock selection.
Only the modes of this chip’s ADCs exist; ADCs without a prescaler take their clock from the RCC as is.
Variants§
Auto
Use the ADC kernel clock selected in the RCC, with the smallest prescaler that keeps the ADC clock within the limit of the chip.
Async(Prescaler)
Use the ADC kernel clock selected in the RCC, divided by the given prescaler.
Sync(SyncDiv)
Use the ADC bus clock (synchronous mode), divided by the given divider.
Trait Implementations§
impl Copy for Clock
impl Eq for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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