[−][src]Struct axp173::AdcSettings
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]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,