Nol.A SDK Library  24.11.0
For IoT System Software Development
Public Types | Public Member Functions | List of all members
MAX14676Chip Class Referenceabstract

Public Types

enum  ChgStat_t {
  ChgStat_CHARGER_OFF = 0 , ChgStat_CHARGING_SUSPENDED_DUE_TO_TEMPERATURE = 1 , ChgStat_PRECHARGE = 2 , ChgStat_FAST_CHARGE_CC = 3 ,
  ChgStat_FAST_CHARGE_CV = 4 , ChgStat_MAINTAIN_CHARGE = 5 , ChgStat_MAINTAIN_CHARGER_TIMER_DONE = 6 , ChgStat_FAULT = 7
}
 
enum  ThermStat_t {
  ThermStat_LT0_OR_GT60 = 0 , ThermStat_BETWEEN_0_AND_10 = 1 , ThermStat_BETWEEN_10_AND_45 = 2 , ThermStat_BETWEEN_45_AND_60 = 3 ,
  ThermStat_NOT_DETECTED = 4 , ThermStat_DISABLED_BY_THERMEN = 5 , ThermStat_NO_CHGIN = 6
}
 
enum  ILim_t {
  ILim_0mA = 0 , ILim_90mA = 1 , ILim_450mA = 2 , ILim_600mA = 3 ,
  ILim_700mA = 4 , ILim_900mA = 5 , ILim_1000mA = 6
}
 
enum  IFChg_t {
  IFChg_37p5mA = 0 , IFChg_75mA = 1 , IFChg_100mA = 2 , IFChg_150mA = 3 ,
  IFChg_200mA = 4 , IFChg_250mA = 5 , IFChg_300mA = 6 , IFChg_350mA = 7
}
 
enum  IChgDone_t {
  IChgDone_7p5mA = 0 , IChgDone_15mA = 1 , IChgDone_20mA = 2 , IChgDone_30mA = 3 ,
  IChgDone_40mA = 4 , IChgDone_50mA = 5 , IChgDone_60mA = 6 , IChgDone_70mA = 7
}
 
enum  TMtChg_t { TMtChg_30min = 0 , TMtChg_15min = 1 , TMtChg_0min = 2 , TMtChg_60min = 3 }
 
enum  TFChg_t { TFChg_75min = 0 , TFChg_150min = 1 , TFChg_300min = 2 , TFChg_600min = 3 }
 
enum  TPChg_t { TPChg_30min = 0 , TPChg_60min = 1 , TPChg_120min = 2 , TPChg_240min = 3 }
 
enum  VBatReChg_t { VBatReChg_70mV = 0 , VBatReChg_120mV = 1 , VBatReChg_170mV = 2 , VBatReChg_220mV = 3 }
 
enum  VBatReg_t { VBatReg_4p05V = 0 , VBatReg_4p10V = 1 , VBatReg_4p15V = 2 , VBatReg_4p20V = 3 }
 
enum  IPChg_t { IPChg_5mA = 0 , IPChg_10mA = 1 , IPChg_20mA = 2 , IPChg_40mA = 3 }
 
enum  VPChg_t {
  VPChg_2p15V = 0 , VPChg_2p25V = 1 , VPChg_2p35V = 2 , VPChg_2p45V = 3 ,
  VPChg_2p70V = 4 , VPChg_2p80V = 5 , VPChg_2p90V = 6 , VPChg_3p00V = 7
}
 

Public Member Functions

virtual void begin (TwoWire &)=0
 
virtual uint8_t getChipId ()=0
 
virtual uint8_t getChipRev ()=0
 
virtual uint16_t getProductVer ()=0
 
virtual ChgStat_t getChargeStatus ()=0
 
virtual const char * getChargeStatusString ()=0
 
virtual bool isCHGINinCurrentLimit ()=0
 
virtual bool isCHGIN_OVPActive ()=0
 
virtual bool isCHGINValid ()=0
 
virtual ThermStat_t getThermistorStatus ()=0
 
virtual const char * getThermistorStatusString ()=0
 
virtual bool isChargerRunningInThermalRegulation ()=0
 
virtual bool isInThermalShutdown ()=0
 
virtual ILim_t getInputCurrentLimit ()=0
 
virtual const char * getInputCurrentLimitString ()=0
 
virtual void setInputCurrentLimit (ILim_t current)=0
 
virtual IFChg_t getFastChargeCurrent ()=0
 
virtual const char * getFastChargeCurrentString ()=0
 
virtual void setFastChargeCurrent (IFChg_t current)=0
 
virtual bool isThermistorMonitoringEnabled ()=0
 
virtual IChgDone_t getChargeDoneThreshold ()=0
 
virtual const char * getChargeDoneThresholdString ()=0
 
virtual void setChargeDoneThreshold (IChgDone_t current)=0
 
virtual TMtChg_t getMaintainChargeTimer ()=0
 
virtual const char * getMaintainChargeTimerString ()=0
 
virtual void setMaintainChargeTimer (TMtChg_t time)=0
 
virtual TFChg_t getFastChargeTimer ()=0
 
virtual const char * getFastChargeTimerString ()=0
 
virtual void setFastChargeTimer (TFChg_t time)=0
 
virtual TPChg_t getPrechargeTimer ()=0
 
virtual const char * getPrechargeTimerString ()=0
 
virtual void setPrechargeTimer (TPChg_t time)=0
 
virtual VBatReChg_t getRechargeThresholdVoltage ()=0
 
virtual const char * getRechargeThresholdVoltageString ()=0
 
virtual void setRechargeThresholdVoltage (VBatReChg_t volt)=0
 
virtual VBatReg_t getBatteryRegulationVoltage ()=0
 
virtual const char * getBatteryRegulationVoltageString ()=0
 
virtual void setBatteryRegulationVoltage (VBatReg_t volt)=0
 
virtual IPChg_t getPrechargeCurrent ()=0
 
virtual const char * getPrechargeCurrentString ()=0
 
virtual void setPrechargeCurrent (IPChg_t current)=0
 
virtual VPChg_t getPrechargeVoltage ()=0
 
virtual const char * getPrechargeVoltageString ()=0
 
virtual void setPrechargeVoltage (VPChg_t volt)=0
 
virtual bool isSFOUTEnabled ()=0
 
virtual void enableSFOUT (bool enable)=0
 
virtual bool isChargerAutoRestartEnabled ()=0
 
virtual void enableChargerAutoRestart (bool enable)=0
 
virtual bool isChargerAutoStopEnabled ()=0
 
virtual void enableChargerAutoStop (bool enable)=0
 
virtual bool isCHGIN_SYSComparatorHysteresisEnabled ()=0
 
virtual void enableCHGIN_SYSComparatorHysteresis (bool enable)=0
 
virtual void enableCharger (bool enable, bool useThermistor)=0
 
virtual uint32_t getVCELL ()=0
 
virtual uint16_t getSOC ()=0
 

The documentation for this class was generated from the following file: