#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.