X-Powers AXP173 PMIC embedded-hal driver
What is this?
This is a embedded-hal driver for X-Powers' Power Management IC AXP173.
It's device-agnostic and uses embedded-hal's Write
/WriteRead
for I2C communication.
Usage
-
Add dependency to
Cargo.toml
: -
Instantiate and init the device:
// ... declare and configure your I2c peripheral ... // Init BNO055 IMU let axp173 = new; axp173.init?; Ok
-
TODO
Details and examples
TODO
Status
What is done and tested and what is not yet:
- AXP173 LDO2, LDO3, LDO4 enable/disable
- LDO voltage setup
- VBUS presence
- Battery presence
- Battery charging status
- AXP173 on-chip buffer check