typedef enum {
FETS_ENABLED,
FETS_DISABLED
}EPI_STATE;

struct EPI_BATTERY_DATA {
  float gasGauge; //amp hours
  float cellVoltage[8]; //volts
  float stackVoltage;
  float current; //amps
  float temp[6]; //degrees celcius
  float relativeHumidity; // just %
  unsigned char balance; // bit 0 thru 7 indicate respecitive cell is in balance
  unsigned char tempAlert; //bit 0 thru 5 indicate respective temp sense is too high;
			   //B5 heat sink temp, B0 is ambient, B1-4 are stack
  unsigned char voltAlert; //bits 0 thru 7 indicate respective cell has voltage over 4.23V
  unsigned char currentAlert; //0x00 - no alert
			      //0x01 - charge current alert
			      //0x02 - discharge current alert
			      //0x04 - gas gauge alert >80% capacity used
  enum EPI_STATE state;
};

