Crate axp192

Source
Expand description

AXP192 power management chip interface

Axp192::new is the starting-point interface for this crate.

Some devices which include this IC:

Warning! This chip probably controls power to the microcontroller you are running the code on, and bricking the entire device is a possibility!

This implementation does not yet completely cover the functionality of the IC. If there’s a feature you’d like to see implemented, either open an issue or create a pull request :)

Datasheet: https://github.com/m5stack/M5-Schematic/blob/master/Core/AXP192%20Datasheet_v1.1_en_draft_2211.pdf

Structs§

Axp192
The Axp192 struct is the main interface for this crate

Enums§

BootTime
Boot time setting
GpioMode0
GPIO0 function setting
GpioMode12
GPIO1 and GPIO2 function setting
GpioMode34
GPIO3 and GPIO4 function setting
LongPress
Long press time setting
PowerOkDelay
After the power is started PWROK Signal delay
ShutdownDuration
Shutdown duration setting