pub struct AdcConfig {
pub averaging: Averaging,
pub sample_count: u8,
pub start_count: u8,
pub cast_count: u8,
}Expand description
Scan-mode sample timing (LSADC_CTRL_0). Defaults match the SDK’s
hal_adc_auto_scan_mode_set (8× averaging, sample_cnt=8, start_cnt=0x18).
Fields§
§averaging: AveragingAveraging mode (equ_model_sel, 2-bit).
sample_count: u8Sample count (sample_cnt, 5-bit).
start_count: u8Start count (start_cnt / SDK satrt_cnt, 8-bit).
cast_count: u8Cast count (cast_cnt, 7-bit).
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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