pub struct AdcConfig {
pub power: PoweredClock,
pub source: AdcClockSel,
pub div: Div4,
}Expand description
Top level configuration for the ADC peripheral
Fields§
§power: PoweredClockPower state required for this peripheral
source: AdcClockSelSelected clock-source for this peripheral
div: Div4Pre-divisor, applied to the upstream clock output
Trait Implementations§
Source§impl SPConfHelper for AdcConfig
impl SPConfHelper for AdcConfig
Source§fn post_enable_config(&self, clocks: &Clocks) -> Result<u32, ClockError>
fn post_enable_config(&self, clocks: &Clocks) -> Result<u32, ClockError>
This method is called AFTER a given MRCC peripheral has been enabled (e.g. un-gated),
but BEFORE the peripheral reset line is reset. Read more
Auto Trait Implementations§
impl Freeze for AdcConfig
impl RefUnwindSafe for AdcConfig
impl Send for AdcConfig
impl Sync for AdcConfig
impl Unpin for AdcConfig
impl UnwindSafe for AdcConfig
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