Struct esp_idf_sys::adc_digi_filter_t
source · [−]#[repr(C)]pub struct adc_digi_filter_t {
pub adc_unit: adc_unit_t,
pub channel: adc_channel_t,
pub mode: adc_digi_filter_mode_t,
}
Expand description
@brief ADC digital controller (DMA mode) filter configuration.
@note For ESP32-S2, The filter object of the ADC is fixed. @note For ESP32-S2, The filter object is always all enabled channels.
Fields
adc_unit: adc_unit_t
<Set adc unit number for filter. For ESP32-S2, Filter IDX0/IDX1 can only be used to filter all enabled channels of ADC1/ADC2 unit at the same time.
channel: adc_channel_t
<Set adc channel number for filter.
For ESP32-S2, it’s always ADC_CHANNEL_MAX
mode: adc_digi_filter_mode_t
<Set adc filter mode for filter. See adc_digi_filter_mode_t
.
Trait Implementations
sourceimpl Clone for adc_digi_filter_t
impl Clone for adc_digi_filter_t
sourcefn clone(&self) -> adc_digi_filter_t
fn clone(&self) -> adc_digi_filter_t
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for adc_digi_filter_t
impl Debug for adc_digi_filter_t
sourceimpl Default for adc_digi_filter_t
impl Default for adc_digi_filter_t
impl Copy for adc_digi_filter_t
Auto Trait Implementations
impl RefUnwindSafe for adc_digi_filter_t
impl Send for adc_digi_filter_t
impl Sync for adc_digi_filter_t
impl Unpin for adc_digi_filter_t
impl UnwindSafe for adc_digi_filter_t
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more