#[repr(C)]pub struct esp_adc_cal_characteristics_t {
pub adc_num: adc_unit_t,
pub atten: adc_atten_t,
pub bit_width: adc_bits_width_t,
pub coeff_a: u32,
pub coeff_b: u32,
pub vref: u32,
pub low_curve: *const u32,
pub high_curve: *const u32,
pub version: u8,
}
Expand description
@brief Structure storing characteristics of an ADC
@note Call esp_adc_cal_characterize() to initialize the structure
Fields§
§adc_num: adc_unit_t
< ADC unit
atten: adc_atten_t
< ADC attenuation
bit_width: adc_bits_width_t
< ADC bit width
coeff_a: u32
< Gradient of ADC-Voltage curve
coeff_b: u32
< Offset of ADC-Voltage curve
vref: u32
< Vref used by lookup table
low_curve: *const u32
< Pointer to low Vref curve of lookup table (NULL if unused)
high_curve: *const u32
< Pointer to high Vref curve of lookup table (NULL if unused)
version: u8
< ADC Calibration
Trait Implementations§
source§impl Clone for esp_adc_cal_characteristics_t
impl Clone for esp_adc_cal_characteristics_t
source§fn clone(&self) -> esp_adc_cal_characteristics_t
fn clone(&self) -> esp_adc_cal_characteristics_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for esp_adc_cal_characteristics_t
impl Debug for esp_adc_cal_characteristics_t
source§impl Default for esp_adc_cal_characteristics_t
impl Default for esp_adc_cal_characteristics_t
impl Copy for esp_adc_cal_characteristics_t
Auto Trait Implementations§
impl Freeze for esp_adc_cal_characteristics_t
impl RefUnwindSafe for esp_adc_cal_characteristics_t
impl !Send for esp_adc_cal_characteristics_t
impl !Sync for esp_adc_cal_characteristics_t
impl Unpin for esp_adc_cal_characteristics_t
impl UnwindSafe for esp_adc_cal_characteristics_t
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)