MAX77658 Ultra-Low Power PMIC Mbed Driver

Embed: (wiki syntax)

« Back to documentation index

reg_config_t Union Reference

reg_config_t Union Reference

Config. More...

#include <MAX77658_regs.h>


Detailed Description

Config.

Address : 0x1D

Definition at line 1253 of file MAX77658_regs.h.


Field Documentation

unsigned char aen

Enable alert on fuel-gauge outputs.

Bit 2. When Aen = 1, violation of any of the alert threshold register values by temperature, voltage, or SOC triggers an alert. This bit affects the INTB pin (FG_INT) operation only. The Smx, Smn, Tmx, Tmn, Vmx, and Vmn bits are not disabled. This bit is set to 0 at power-up.

Definition at line 1263 of file MAX77658_regs.h.

unsigned char ainsh

AIN Pin Shutdown.

Bit 10. Set to 1 to enable device shutdown when the battery is removed. The IC enters shutdown if the AIN pin remains high (AIN reading > VTHRM - VDETR) for longer than the timeout of the SHDNTIMER register. This also configures the device to wake up when AIN is pulled low on cell insertion. AINSH is set to 0 at power-up.

Definition at line 1291 of file MAX77658_regs.h.

unsigned char bei

Enable alert on battery insertion.

Bit 1. When Bei = 1, a battery-insertion condition, as detected by the AIN pin voltage, triggers an alert. Set to 0 at power-up.

Definition at line 1260 of file MAX77658_regs.h.

unsigned char ber

Enable alert on battery removal.

Bit 0. When Ber = 1, a battery-removal condition, as detected by the AIN pin voltage, triggers an alert. Set to 0 at power-up.

Definition at line 1257 of file MAX77658_regs.h.

unsigned char ethrm

Enable Thermistor.

Bit 4. Set to logic 1 to enable the automatic THRM output bias and AIN measurement every 1.4s. This bit is set to 1 at power-up.

Definition at line 1271 of file MAX77658_regs.h.

unsigned char fthrm

Force Thermistor Bias Switch.

Bit 3. Set FTHRM = 1 to always enable the thermistor bias switch. With a standard 10kOhm thermistor, this adds an additional ~200μA to the current drain of the circuit. This bit is set to 0 at power-up.

Definition at line 1267 of file MAX77658_regs.h.

unsigned char i2csh

I2C Shutdown.

Bit 6. Set to logic 1 to force the device to enter shutdown mode if both SDA and SCL are held low for more than timeout of the SHDNTIMER register. This also configures the device to wake up on a rising edge of either SDA or SCL. Set to 1 at power-up.

Definition at line 1277 of file MAX77658_regs.h.

unsigned char shdn

Shutdown.

Bit 7. Write this bit to logic 1 to force a shutdown of the device after timeout of the SHDNTIMER register. SHDN is reset to 0 at power-up and upon exiting shutdown mode.

Definition at line 1281 of file MAX77658_regs.h.

unsigned char spr_11

Fuel Gauge Charger Control.

Bit 11. Set to 1 to enable MaxCharge (fuel-gauge controlled charging).

Definition at line 1296 of file MAX77658_regs.h.

unsigned char spr_15

Fuel gauge Charger Fail Enable.

Bit 15. Set to 1 to enable FGCHGFAIL interrupt to drive the INTB pin. This bit is not accessible by the fuel gauge firmware.

Definition at line 1310 of file MAX77658_regs.h.

unsigned char spr_5

I2C Charge Fail Enable.

Bit 5. Set to 1 to enable I2CChgFail interrupt to drive the INTB pin. This bit is not accessible by the fuel gauge firmware.

Definition at line 1274 of file MAX77658_regs.h.

unsigned char ss

SOC ALRT Sticky.

Bit 14. When SS = 1, SOC alerts can only be cleared through software. When SS = 0, SOC alerts are cleared automatically when the threshold is no longer exceeded. SS is set to 0 at power-up.

Definition at line 1306 of file MAX77658_regs.h.

unsigned char ten

Enable Temperature Channel.

Bit 9. Set to 1 and set ETHRM or FTHRM to 1 to enable measurements on the AIN pin. Ten is set to 1 at power-up.

Definition at line 1288 of file MAX77658_regs.h.

unsigned char tex

Temperature External.

Bit 8. When set to 1, the fuel gauge requires external temperature measurements to be written from the host. When set to 0, measurements on the AIN pin are converted to a temperature value and stored in the Temperature register instead.

Definition at line 1284 of file MAX77658_regs.h.

unsigned char ts

Temperature ALRT Sticky.

Bit 13. When TS = 1, temperature alerts can only be cleared through software. When TS = 0, temperature alerts are cleared automatically when the threshold is no longer exceeded. TS is set to 1 at power-up.

Definition at line 1302 of file MAX77658_regs.h.

unsigned char vs

Voltage ALRT Sticky.

Bit 12. When VS = 1, voltage alerts can only be cleared through software. When VS = 0, voltage alerts are cleared automatically when the threshold is no longer exceeded. VS is set to 0 at power-up.

Definition at line 1298 of file MAX77658_regs.h.