Skip to main content

Crate mp2722

Crate mp2722 

Source
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§

Mp2722Interface
Bundles all required interfaces to interact with the MP2722 chip.
Mp2722Registers
Root block of the Mp2722Registers driver

Enums§

BatteryLowThreshold
BoostFault
Cc1SnkStat
Cc1SrcStat
Cc2SnkStat
Cc2SrcStat
CcCfg
ChargeFault
ChargeSafetyTimer
ChargingState
CoolAction
DpdmDetectionResult
Returns the input source D+/D- detection result.
ForceCc
IinMode
Force limit input current
InputCurrentLimit
input current limit, updated by input source detection, can be overwritten
InputImpedanceTestCurrent
Configures the input impedance test current source.
InputImpedanceThreshold
Configures the input impedance test comparator threshold.
JeitaISet
JeitaVset
Mp2722Error
MP2722 error
Ntc1Fault
Ntc2Fault
PreChargeToFastChargeThreshold
pre charge to fast charge threshold
RpCfg
SwFreq
Set buck / boost frequency
SysMin
Minimum system voltage
ThermanRegulationThreshold
Thermal threshold for charge regulation and boost mode protection
TopOffTimer
Timer to stop charging after charge termination
VinOvp
Input over voltage protection threshold
WarmAction
Watchdog
Watchdog timer configuration