pub struct Config {
pub sample_freq: Hertz,
pub frame_measurements: usize,
pub frames_count: usize,
}
Expand description
ADC continuous mode driver configurations. The default configuration is:
sample_freq
: 2000 Hzframe_measurements
: 100frames_count
: 10
Fields§
§sample_freq: Hertz
§frame_measurements: usize
§frames_count: usize
Implementations§
Source§impl Config
impl Config
pub const fn new() -> Self
pub fn sample_freq(self, sample_freq: Hertz) -> Self
pub fn frame_measurements(self, frame_measurements: usize) -> Self
pub fn frames_count(self, frames_count: usize) -> Self
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 UnwindSafe for Config
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)