pub struct AdcConfig {
pub resolution: Resolution,
pub clear_on_read: bool,
pub alignment: Alignment,
pub average_mode: AverageMode,
pub sample_time: u8,
}Expand description
ADC configuration.
Fields§
§resolution: Resolution§clear_on_read: boolIf true the data registers are zeroed after being read (whether by CPU or DMA).
alignment: Alignment§average_mode: AverageMode§sample_time: u8Sample time in number of ADCLK cycles.
§Notes
Sample time can never be lower than 5 states.
If the ratio of PCLKB to PCLKC is 1:2 or 1:4 the minimum is 6 states.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AdcConfig
impl Freeze for AdcConfig
impl Move for AdcConfig
impl RefUnwindSafe for AdcConfig
impl Send for AdcConfig
impl Sync for AdcConfig
impl Unpin for AdcConfig
impl UnsafeUnpin 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