Crate axp173

Crate axp173 

Source
Expand description

X-Powers AXP173 Power Management IC Datasheet: [/doc/AXP173 Datasheet v1.12_cn.zh-CN.en.pdf]

Structs§

AdcSampleRate
Possible values of ADC sample rate in Hertz.
AdcSettings
ADC settings structure
Axp173
AXP173 PMIC instance.
BootTime
Delay before power-on from shutdown settings.
ChargingCurrent
Possible values of charging current of AXP173 in milliAmperes
ChargingVoltage
Possible values of charger’s regulation voltage in volts.
Ldo
LDO of AXP173.
LongPressTime
Button press time to be considered as “long” press.
ShutdownLongPressTime
Button press time in seconds to initiate shutdown or power-on.
TsPinMode
Possible thermistor pin function modes.

Enums§

Error
All possible errors in this crate
Irq
An AXP173 interrupt.
LdoKind
Voltage regulators in AXP173 that can be enabled or disabled.

Functions§

mah_to_coulombs_adc
Converts mAh to coulombs for specified ADC sampling rate.