[][src]Struct axp173::AdcSettings

pub struct AdcSettings { /* fields omitted */ }

ADC settings structure

Methods

impl AdcSettings[src]

pub fn batt_voltage_adc(&mut self, enabled: bool) -> &mut Self[src]

Battery voltage sensing ADC on/off.

pub fn batt_current_adc(&mut self, enabled: bool) -> &mut Self[src]

Battery current sensing ADC on/off.

pub fn acin_voltage_adc(&mut self, enabled: bool) -> &mut Self[src]

AC voltage ADC on/off.

pub fn acin_current_adc(&mut self, enabled: bool) -> &mut Self[src]

AC current sensing ADC on/off.

pub fn vbus_voltage_adc(&mut self, enabled: bool) -> &mut Self[src]

VBUS voltage ADC on/off.

pub fn vbus_current_adc(&mut self, enabled: bool) -> &mut Self[src]

VBUS current sensing ADC on/off.

pub fn aps_voltage_adc(&mut self, enabled: bool) -> &mut Self[src]

APS ADC on/off.

pub fn ts_adc(&mut self, enabled: bool) -> &mut Self[src]

Battery temperature sensor (thermistor on TS pin) ADC on/off.

pub fn set_adc_sample_rate(&mut self, sample_rate: AdcSampleRate) -> &mut Self[src]

Sets ADC sampling rate.

pub fn use_ts_for_batt_temperature(&mut self, enabled: bool) -> &mut Self[src]

Use TS pin for thermistor-based battery temperature measurement.

pub fn set_ts_pin_mode(&mut self, mode: TsPinMode) -> &mut Self[src]

Sets TS pin mode.

Trait Implementations

impl Debug for AdcSettings[src]

impl Default for AdcSettings[src]

fn default() -> Self[src]

Default state of settings, nothing is affected.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.