Has base BMU code but sends dummy temperature and voltage readings to test CAN
Dependencies: CUER_CAN DS1820 LTC2943 LTC6804 mbed
Fork of BMS_BMUCore_Max by
Temperature.h@1:51477fe4851b, 2016-12-30 (annotated)
- Committer:
- lcockerton62
- Date:
- Fri Dec 30 16:01:59 2016 +0000
- Revision:
- 1:51477fe4851b
- Child:
- 12:fa9b1a459e47
Storing SOC in EEPROM, added temperature sensors code, changed some of the data structures, added to CAN messages, added basic error status
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lcockerton62 | 1:51477fe4851b | 1 | #ifndef Temperature_H |
lcockerton62 | 1:51477fe4851b | 2 | #define Temperature_H |
lcockerton62 | 1:51477fe4851b | 3 | |
lcockerton62 | 1:51477fe4851b | 4 | #include "mbed.h" |
lcockerton62 | 1:51477fe4851b | 5 | #include "DS1820.h" |
lcockerton62 | 1:51477fe4851b | 6 | |
lcockerton62 | 1:51477fe4851b | 7 | #define MAX_PROBES 50 |
lcockerton62 | 1:51477fe4851b | 8 | #define DATA_PIN p24 |
lcockerton62 | 1:51477fe4851b | 9 | #define PARASITE_PIN p23 |
lcockerton62 | 1:51477fe4851b | 10 | |
lcockerton62 | 1:51477fe4851b | 11 | extern DS1820* probe[]; |
lcockerton62 | 1:51477fe4851b | 12 | extern int devices_found; |
lcockerton62 | 1:51477fe4851b | 13 | |
lcockerton62 | 1:51477fe4851b | 14 | void temperature_init(); |
lcockerton62 | 1:51477fe4851b | 15 | |
lcockerton62 | 1:51477fe4851b | 16 | #endif |