pub struct Axp192Async<I2CImpl: RegisterInterface<AddressType = u8, Error = AxpError<I2CBusErr>>, I2CBusErr: Debug = <I2CImpl as RegisterInterface>::Error> {
pub ll: AxpLowLevel<I2CImpl>,
/* private fields */
}
Fields§
§ll: AxpLowLevel<I2CImpl>
Implementations§
Source§impl<I2CBus, E> Axp192<AxpInterface<I2CBus>, E>
impl<I2CBus, E> Axp192<AxpInterface<I2CBus>, E>
Source§impl<I2CImpl, I2CBusErr> Axp192<I2CImpl, I2CBusErr>where
I2CImpl: CurrentAxpDriverInterface<I2CBusErr>,
I2CBusErr: Debug,
impl<I2CImpl, I2CBusErr> Axp192<I2CImpl, I2CBusErr>where
I2CImpl: CurrentAxpDriverInterface<I2CBusErr>,
I2CBusErr: Debug,
pub async fn get_battery_voltage_mv( &mut self, ) -> Result<f32, AxpError<I2CBusErr>>
pub async fn get_battery_charge_current_ma( &mut self, ) -> Result<f32, AxpError<I2CBusErr>>
pub async fn get_battery_instantaneous_power_uw( &mut self, ) -> Result<f32, AxpError<I2CBusErr>>
pub async fn set_dcdc_enable( &mut self, dc: DcId, enable: bool, ) -> Result<(), AxpError<I2CBusErr>>
pub async fn set_dcdc_voltage( &mut self, dc: DcId, voltage_mv: u16, ) -> Result<(), AxpError<I2CBusErr>>
pub async fn set_ldo_voltage_mv( &mut self, ldo: LdoId, voltage_mv: u16, ) -> Result<(), AxpError<I2CBusErr>>
pub async fn set_gpio0_ldo_voltage_mv( &mut self, voltage_mv: u16, ) -> Result<(), AxpError<I2CBusErr>>
pub async fn set_battery_charge_high_temp_threshold_mv( &mut self, threshold_mv: u16, ) -> Result<(), AxpError<I2CBusErr>>
pub async fn set_battery_charge_low_temp_threshold_mv( &mut self, threshold_mv: u16, ) -> Result<(), AxpError<I2CBusErr>>
Auto Trait Implementations§
impl<I2CImpl, I2CBusErr> Freeze for Axp192<I2CImpl, I2CBusErr>where
I2CImpl: Freeze,
impl<I2CImpl, I2CBusErr> RefUnwindSafe for Axp192<I2CImpl, I2CBusErr>where
I2CImpl: RefUnwindSafe,
I2CBusErr: RefUnwindSafe,
impl<I2CImpl, I2CBusErr> Send for Axp192<I2CImpl, I2CBusErr>
impl<I2CImpl, I2CBusErr> Sync for Axp192<I2CImpl, I2CBusErr>
impl<I2CImpl, I2CBusErr> Unpin for Axp192<I2CImpl, I2CBusErr>
impl<I2CImpl, I2CBusErr> UnwindSafe for Axp192<I2CImpl, I2CBusErr>where
I2CImpl: UnwindSafe,
I2CBusErr: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more