System Management code
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: IOobjects/CAN_TxIDs.h
- Revision:
- 33:6bc82b6b62e5
- Parent:
- 31:7eaa5e881b56
- Child:
- 36:0afc0fc8f86b
--- a/IOobjects/CAN_TxIDs.h Sun Nov 16 02:43:58 2014 +0000 +++ b/IOobjects/CAN_TxIDs.h Tue Jan 06 20:45:26 2015 +0000 @@ -1,36 +1,38 @@ #ifndef CAN_TXIDS_H #define CAN_TXIDS_H +#define BASE_ID 0x500 // Start at 0x500 for this device + // Transmit IDs - System Mgmt Specific // Operating diagnostics -#define SYS_ERROR_ID 0x400 // Error frame - critical errors that require shutdown -#define SYS_XBEE1_ID 0x401 // Message in/out counter for xbee1 -#define SYS_XBEE2_ID 0x402 // Message in/out counter for xbee2 -#define SYS_TEMP_ID 0x403 // Internal temperature of the glv battery chargerFET +#define SYS_ERROR_ID BASE_ID + 00 // Error frame - critical errors that require shutdown +#define SYS_XBEE1_ID BASE_ID + 01 // Message in/out counter for xbee1 +#define SYS_XBEE2_ID BASE_ID + 02 // Message in/out counter for xbee2 +#define SYS_TEMP_ID BASE_ID + 03 // Internal temperature of the glv battery chargerFET // GLV Battery -#define SYS_GLV_CURRENT_ID 0x410 // GLV battery current -#define SYS_GLV_CAPACITY_ID 0x411 // GLV battery capacity setting -#define SYS_GLV_AH_ID 0x412 // GLV battery amphours -#define SYS_GLV_SOC_ID 0x413 // GLV battery SOC +#define SYS_GLV_CURRENT_ID BASE_ID + 10 // GLV battery current +#define SYS_GLV_CAPACITY_ID BASE_ID + 11 // GLV battery capacity setting +#define SYS_GLV_AH_ID BASE_ID + 12 // GLV battery amphours +#define SYS_GLV_SOC_ID BASE_ID + 13 // GLV battery SOC // DC-DC Converter -#define SYS_DCDC_CURRENT_ID 0x420 // DC-DC current -#define SYS_DCDC_STATUS_ID 0x421 // DC-DC status byte +#define SYS_DCDC_CURRENT_ID BASE_ID + 20 // DC-DC current +#define SYS_DCDC_STATUS_ID BASE_ID + 21 // DC-DC status byte // PWM Channels -#define SYS_PWM_FAN_ID 0x430 // FAN1 actual pwm -#define SYS_PWM_PUMP_ID 0x431 // PUMP1 actual pwm +#define SYS_PWM_FAN_ID BASE_ID + 30 // FAN1 actual pwm +#define SYS_PWM_PUMP_ID BASE_ID + 31 // PUMP1 actual pwm // IMD -#define SYS_IMD_STATUS_ID 0x440 // IMD status byte -#define SYS_IMD_RESIST_ID 0x441 // IMD resistance measurement +#define SYS_IMD_STATUS_ID BASE_ID + 40 // IMD status byte +#define SYS_IMD_RESIST_ID BASE_ID + 41 // IMD resistance measurement // Latch Supervisor states -#define SYS_IMD_LATCH_ID 0x450 // IMD Latch circuit error byte -#define SYS_AMS_LATCH_ID 0x451 // AMS Latch circuit error byte +#define SYS_IMD_LATCH_ID BASE_ID + 50 // IMD Latch circuit error byte +#define SYS_AMS_LATCH_ID BASE_ID + 51 // AMS Latch circuit error byte // Shutdown Switches -#define SYS_SWITCHES_ID 0x460 // Shutdown Switch State +#define SYS_SWITCHES_ID BASE_ID + 60 // Shutdown Switch State #endif \ No newline at end of file