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

Committer:
ItsJustZi
Date:
Tue Aug 16 17:46:38 2016 +0000
Revision:
1:7f03b5aba5d2
Child:
2:34d6953c3623
Added comments on general function of BMU and comms protocol. Started defining IO pins and relevant addresses. Empty main function.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ItsJustZi 1:7f03b5aba5d2 1 enum bms_overall_status {
ItsJustZi 1:7f03b5aba5d2 2 BMS_ERROR = 0,
ItsJustZi 1:7f03b5aba5d2 3 BMS_IDLE = 1,
ItsJustZi 1:7f03b5aba5d2 4 BMS_ENABLE = 5, // defined this way to keep consistency with old Tritium BMS
ItsJustZi 1:7f03b5aba5d2 5 BMS_MEASURE = 2,
ItsJustZi 1:7f03b5aba5d2 6 BMS_PRECHARGE = 3,
ItsJustZi 1:7f03b5aba5d2 7 BMS_RUN = 4
ItsJustZi 1:7f03b5aba5d2 8 };