System Management code
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
IOobjects/CAN_TxIDs.h@33:6bc82b6b62e5, 2015-01-06 (annotated)
- Committer:
- pspatel321
- Date:
- Tue Jan 06 20:45:26 2015 +0000
- Revision:
- 33:6bc82b6b62e5
- Parent:
- 31:7eaa5e881b56
- Child:
- 36:0afc0fc8f86b
Updated IDs to match AMS, added a constants.h file.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pspatel321 | 30:91af74a299e1 | 1 | #ifndef CAN_TXIDS_H |
pspatel321 | 30:91af74a299e1 | 2 | #define CAN_TXIDS_H |
pspatel321 | 30:91af74a299e1 | 3 | |
pspatel321 | 33:6bc82b6b62e5 | 4 | #define BASE_ID 0x500 // Start at 0x500 for this device |
pspatel321 | 33:6bc82b6b62e5 | 5 | |
pspatel321 | 31:7eaa5e881b56 | 6 | // Transmit IDs - System Mgmt Specific |
pspatel321 | 31:7eaa5e881b56 | 7 | // Operating diagnostics |
pspatel321 | 33:6bc82b6b62e5 | 8 | #define SYS_ERROR_ID BASE_ID + 00 // Error frame - critical errors that require shutdown |
pspatel321 | 33:6bc82b6b62e5 | 9 | #define SYS_XBEE1_ID BASE_ID + 01 // Message in/out counter for xbee1 |
pspatel321 | 33:6bc82b6b62e5 | 10 | #define SYS_XBEE2_ID BASE_ID + 02 // Message in/out counter for xbee2 |
pspatel321 | 33:6bc82b6b62e5 | 11 | #define SYS_TEMP_ID BASE_ID + 03 // Internal temperature of the glv battery chargerFET |
pspatel321 | 30:91af74a299e1 | 12 | |
pspatel321 | 31:7eaa5e881b56 | 13 | // GLV Battery |
pspatel321 | 33:6bc82b6b62e5 | 14 | #define SYS_GLV_CURRENT_ID BASE_ID + 10 // GLV battery current |
pspatel321 | 33:6bc82b6b62e5 | 15 | #define SYS_GLV_CAPACITY_ID BASE_ID + 11 // GLV battery capacity setting |
pspatel321 | 33:6bc82b6b62e5 | 16 | #define SYS_GLV_AH_ID BASE_ID + 12 // GLV battery amphours |
pspatel321 | 33:6bc82b6b62e5 | 17 | #define SYS_GLV_SOC_ID BASE_ID + 13 // GLV battery SOC |
pspatel321 | 31:7eaa5e881b56 | 18 | |
pspatel321 | 31:7eaa5e881b56 | 19 | // DC-DC Converter |
pspatel321 | 33:6bc82b6b62e5 | 20 | #define SYS_DCDC_CURRENT_ID BASE_ID + 20 // DC-DC current |
pspatel321 | 33:6bc82b6b62e5 | 21 | #define SYS_DCDC_STATUS_ID BASE_ID + 21 // DC-DC status byte |
pspatel321 | 31:7eaa5e881b56 | 22 | |
pspatel321 | 31:7eaa5e881b56 | 23 | // PWM Channels |
pspatel321 | 33:6bc82b6b62e5 | 24 | #define SYS_PWM_FAN_ID BASE_ID + 30 // FAN1 actual pwm |
pspatel321 | 33:6bc82b6b62e5 | 25 | #define SYS_PWM_PUMP_ID BASE_ID + 31 // PUMP1 actual pwm |
pspatel321 | 31:7eaa5e881b56 | 26 | |
pspatel321 | 31:7eaa5e881b56 | 27 | // IMD |
pspatel321 | 33:6bc82b6b62e5 | 28 | #define SYS_IMD_STATUS_ID BASE_ID + 40 // IMD status byte |
pspatel321 | 33:6bc82b6b62e5 | 29 | #define SYS_IMD_RESIST_ID BASE_ID + 41 // IMD resistance measurement |
pspatel321 | 31:7eaa5e881b56 | 30 | |
pspatel321 | 31:7eaa5e881b56 | 31 | // Latch Supervisor states |
pspatel321 | 33:6bc82b6b62e5 | 32 | #define SYS_IMD_LATCH_ID BASE_ID + 50 // IMD Latch circuit error byte |
pspatel321 | 33:6bc82b6b62e5 | 33 | #define SYS_AMS_LATCH_ID BASE_ID + 51 // AMS Latch circuit error byte |
pspatel321 | 31:7eaa5e881b56 | 34 | |
pspatel321 | 31:7eaa5e881b56 | 35 | // Shutdown Switches |
pspatel321 | 33:6bc82b6b62e5 | 36 | #define SYS_SWITCHES_ID BASE_ID + 60 // Shutdown Switch State |
pspatel321 | 30:91af74a299e1 | 37 | |
pspatel321 | 30:91af74a299e1 | 38 | #endif |