#[repr(C)]
pub struct adc_digi_monitor_t { pub adc_unit: adc_unit_t, pub channel: adc_channel_t, pub mode: adc_digi_monitor_mode_t, pub h_threshold: u32, pub l_threshold: u32, }
Expand description

@brief ADC digital controller (DMA mode) monitor configuration.

@note For ESP32-S2, The monitor object of the ADC is fixed. @note For ESP32-S2, The monitor object is always all enabled channels.

Fields

adc_unit: adc_unit_t

<Set adc unit number for monitor. For ESP32-S2, monitor IDX0/IDX1 can only be used to monitor all enabled channels of ADC1/ADC2 unit at the same time.

channel: adc_channel_t

<Set adc channel number for monitor. For ESP32-S2, it’s always ADC_CHANNEL_MAX

mode: adc_digi_monitor_mode_t

<Set adc monitor mode. See adc_digi_monitor_mode_t.

h_threshold: u32

<Set monitor threshold of adc digital controller.

l_threshold: u32

<Set monitor threshold of adc digital controller.

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.