Adds Balancing function (on the top of SPI_I2C_Parser.cpp) and changes main function adding a test case for balancing to show that it is working as intended.

Dependencies:   CUER_CAN mbed

Fork of BMS_BMUCore_cellvoltage_Mrinank by Mrinank Sharma

Revision:
5:fc2503217ad4
Parent:
4:1881b14c977b
Child:
6:91b54ccbdf2d
--- a/main.cpp	Wed Aug 31 09:18:34 2016 +0000
+++ b/main.cpp	Wed Aug 31 10:58:19 2016 +0000
@@ -125,10 +125,10 @@
 DigitalIn alcc(p20);
 
 int main () {
-    //i.format(8,3); //All data transfer on LTC6804 occur in byte groups. LTC6820 set up such that POL=1 and PHA=3, this corresponds to mode 3 in mbed library. spi.frequency(spiBitrate);
-    //i.frequency(spiBitrate);  
+    //spi.format(8,3); //All data transfer on LTC6804 occur in byte groups. LTC6820 set up such that POL=1 and PHA=3, this corresponds to mode 3 in mbed library. spi.frequency(spiBitrate);
+    //spi.frequency(spiBitrate);  
     uint8_t configReg [1][8];
-    wake_LTC6804();//ensures CMU's are in ready state and wakes it up from low power mode
+    //wake_LTC6804();//ensures CMU's are in ready state and wakes it up from low power mode
     LTC6804_rdcfg(1, configReg);
         
     return 0;