#ifndef BATTERY_H
#define BATTERY_H

#include "common.h"

//=========================== defines =========================================

//==== battery info
#define BATTERY_MANUFACTURER   "SAFT"
#define BATTERY_TYPE           "LS14500"
#define BATTERY_VOLTAGE        3600 // mV
#define BATTERY_CAPACITY       2600 // mAh

//=========================== typedef =========================================

//=========================== prototypes ======================================

// Init interrupts, I2C and couloumb conter (if needed)
bool battery_init(void);

// This function does not initialize communication with LTC3335 to save power
bool battery_isCritical(bool* isCritical);

// This function gets detailed info via I2C
bool battery_getLife(uint16_t *days);


bool battery_processAlarms(void);

#endif 
