#[non_exhaustive]pub struct Config {
pub resolution: Option<Resolution>,
pub averaging: Option<OversamplingRatio>,
pub oversampling: Option<Oversampling>,
pub clock: Clock,
pub dual_mode: Option<Dual>,
pub dual_delay: Option<u8>,
}Expand description
ADC configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resolution: Option<Resolution>Conversion resolution. None keeps the hardware default, which is the highest resolution
of the ADC.
averaging: Option<OversamplingRatio>Hardware averaging: accumulate this many samples per conversion and scale the sum back to the configured resolution.
oversampling: Option<Oversampling>Raw oversampler control; takes precedence over averaging.
clock: ClockADC clock selection.
dual_mode: Option<Dual>Dual ADC mode, in the common registers shared with the other ADC of the pair.
dual_delay: Option<u8>Delay between the two sampling phases in dual ADC mode, in the common registers shared with the other ADC of the pair.
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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