CAN Headers.
Diff: CANProtocol.h
- Revision:
- 5:6a8382503752
- Parent:
- 4:915f5ae2e9bb
- Child:
- 6:4badc1ed015b
--- a/CANProtocol.h Sat Apr 28 19:17:34 2012 +0000 +++ b/CANProtocol.h Sat Apr 28 22:19:26 2012 +0000 @@ -21,4 +21,26 @@ const int CAN_RRWS = 0x303; /* Normal Response: Rear Right Wheel Speed */ const int CAN_STATUS = 0x400; /* Relaxed Response: Status */ +/* BMS CAN */ +const int ID0 = 0x620; +const int ID1 = 0x621; +const int ID2 = 0x622; +const int ID3 = 0x623; + +struct { + unsigned short pack; + unsigned char minVolt; + unsigned char minVoltNum; + unsigned char maxVolt; + unsigned char maxVoltNum; +} voltages; + +const int ID4 = 0x624; +const int ID5 = 0x625; +const int ID6 = 0x626; +const int ID7 = 0x627; +const int ID8 = 0x628; + + + #endif