System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Committer:
pspatel321
Date:
Wed Feb 11 23:09:57 2015 +0000
Revision:
39:ddf38df9699e
Parent:
38:8efacce315ae
Updated CAN IDs for datalogging.  Changed profile encoding.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pspatel321 30:91af74a299e1 1 #ifndef CAN_TXIDS_H
pspatel321 30:91af74a299e1 2 #define CAN_TXIDS_H
pspatel321 30:91af74a299e1 3
pspatel321 39:ddf38df9699e 4 #define TX_ID_BASE 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 39:ddf38df9699e 8 #define FAULTCODE_TX_ID TX_ID_BASE + 0x00 // Error frame - critical errors that require shutdown
pspatel321 39:ddf38df9699e 9 #define MODE_TX_ID TX_ID_BASE + 0x01 // Operating mode
pspatel321 39:ddf38df9699e 10 #define SIGNALS_TX_ID TX_ID_BASE + 0x02 // Signals
pspatel321 39:ddf38df9699e 11 #define PROFILE_TX_ID TX_ID_BASE + 0x03 // Profile being used
pspatel321 39:ddf38df9699e 12 #define TIME_TX_ID TX_ID_BASE + 0x04 // SysTime and startup time
pspatel321 30:91af74a299e1 13
pspatel321 31:7eaa5e881b56 14 // GLV Battery
pspatel321 39:ddf38df9699e 15 #define TEMP_TX_ID TX_ID_BASE + 0x10 // Internal temperature of the glv battery chargerFET
pspatel321 39:ddf38df9699e 16 #define GLV_CURRENT_TX_ID TX_ID_BASE + 0x11 // GLV battery current
pspatel321 39:ddf38df9699e 17 #define GLV_CAPACITY_TX_ID TX_ID_BASE + 0x12 // GLV battery capacity setting
pspatel321 39:ddf38df9699e 18 #define GLV_AH_TX_ID TX_ID_BASE + 0x13 // GLV battery amphours
pspatel321 39:ddf38df9699e 19 #define GLV_SOC_TX_ID TX_ID_BASE + 0x14 // GLV battery SOC
pspatel321 39:ddf38df9699e 20 #define GLV_ERROR_TX_ID TX_ID_BASE + 0x15 // GLV battery error byte
pspatel321 31:7eaa5e881b56 21
pspatel321 31:7eaa5e881b56 22 // DC-DC Converter
pspatel321 39:ddf38df9699e 23 #define DCDC_CURRENT_TX_ID TX_ID_BASE + 0x20 // DC-DC current
pspatel321 39:ddf38df9699e 24 #define DCDC_STATUS_TX_ID TX_ID_BASE + 0x21 // DC-DC status byte
pspatel321 39:ddf38df9699e 25 #define PWM_FAN_TX_ID TX_ID_BASE + 0x22 // FAN1 actual pwm
pspatel321 39:ddf38df9699e 26 #define PWM_PUMP_TX_ID TX_ID_BASE + 0x23 // PUMP1 actual pwm
pspatel321 31:7eaa5e881b56 27
pspatel321 31:7eaa5e881b56 28 // IMD
pspatel321 39:ddf38df9699e 29 #define IMD_STATUS_TX_ID TX_ID_BASE + 0x30 // IMD status byte
pspatel321 39:ddf38df9699e 30 #define IMD_RESIST_TX_ID TX_ID_BASE + 0x31 // IMD resistance measurement
pspatel321 31:7eaa5e881b56 31
pspatel321 31:7eaa5e881b56 32 // Latch Supervisor states
pspatel321 39:ddf38df9699e 33 #define IMD_LATCH_TX_ID TX_ID_BASE + 0x40 // IMD Latch circuit error byte
pspatel321 39:ddf38df9699e 34 #define AMS_LATCH_TX_ID TX_ID_BASE + 0x41 // AMS Latch circuit error byte
pspatel321 31:7eaa5e881b56 35
pspatel321 31:7eaa5e881b56 36 // Shutdown Switches
pspatel321 39:ddf38df9699e 37 #define SWITCHES_TX_ID TX_ID_BASE + 0x50 // Shutdown Switch State
pspatel321 30:91af74a299e1 38
pspatel321 39:ddf38df9699e 39 #endif