System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

IOobjects/CAN_TxIDs.h

Committer:
pspatel321
Date:
2015-01-06
Revision:
33:6bc82b6b62e5
Parent:
31:7eaa5e881b56
Child:
36:0afc0fc8f86b

File content as of revision 33:6bc82b6b62e5:

#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            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      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     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          BASE_ID + 30       // FAN1 actual pwm
#define SYS_PWM_PUMP_ID         BASE_ID + 31       // PUMP1 actual pwm

// IMD
#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        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         BASE_ID + 60       // Shutdown Switch State

#endif