Expand description
MP2722 rust driver Provides typed access to all configuration and status registers. Requires an embedded_hal i2c device.
Modules§
- field_
sets - Module containing the generated fieldsets of the registers and commands
Structs§
- Mp2722
Interface - Bundles all required interfaces to interact with the MP2722 chip.
- Mp2722
Registers - Root block of the Mp2722Registers driver
Enums§
- Battery
LowThreshold - Boost
Fault - Cc1Snk
Stat - Cc1Src
Stat - Cc2Snk
Stat - Cc2Src
Stat - CcCfg
- Charge
Fault - Charge
Safety Timer - Charging
State - Cool
Action - Dpdm
Detection Result - Returns the input source D+/D- detection result.
- ForceCc
- IinMode
- Force limit input current
- Input
Current Limit - input current limit, updated by input source detection, can be overwritten
- Input
Impedance Test Current - Configures the input impedance test current source.
- Input
Impedance Threshold - Configures the input impedance test comparator threshold.
- JeitaI
Set - Jeita
Vset - Mp2722
Error - MP2722 error
- Ntc1
Fault - Ntc2
Fault - PreCharge
ToFast Charge Threshold - pre charge to fast charge threshold
- RpCfg
- SwFreq
- Set buck / boost frequency
- SysMin
- Minimum system voltage
- Therman
Regulation Threshold - Thermal threshold for charge regulation and boost mode protection
- TopOff
Timer - Timer to stop charging after charge termination
- VinOvp
- Input over voltage protection threshold
- Warm
Action - Watchdog
- Watchdog timer configuration