Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CAN_TxIDs.h Source File

CAN_TxIDs.h

00001 #ifndef CAN_TXIDS_H
00002 #define CAN_TXIDS_H
00003 
00004 #define TX_ID_BASE              0x500                // Start at 0x500 for this device
00005 
00006 // Transmit IDs - System Mgmt Specific
00007 // Operating diagnostics
00008 #define FAULTCODE_TX_ID         TX_ID_BASE + 0x00       // Error frame - critical errors that require shutdown
00009 #define MODE_TX_ID              TX_ID_BASE + 0x01       // Operating mode
00010 #define SIGNALS_TX_ID           TX_ID_BASE + 0x02       // Signals
00011 #define PROFILE_TX_ID           TX_ID_BASE + 0x03       // Profile being used
00012 #define TIME_TX_ID              TX_ID_BASE + 0x04       // SysTime and startup time
00013 
00014 // GLV Battery
00015 #define TEMP_TX_ID              TX_ID_BASE + 0x10       // Internal temperature of the glv battery chargerFET
00016 #define GLV_CURRENT_TX_ID       TX_ID_BASE + 0x11       // GLV battery current
00017 #define GLV_CAPACITY_TX_ID      TX_ID_BASE + 0x12       // GLV battery capacity setting
00018 #define GLV_AH_TX_ID            TX_ID_BASE + 0x13       // GLV battery amphours
00019 #define GLV_SOC_TX_ID           TX_ID_BASE + 0x14       // GLV battery SOC
00020 #define GLV_ERROR_TX_ID         TX_ID_BASE + 0x15       // GLV battery error byte
00021 
00022 // DC-DC Converter
00023 #define DCDC_CURRENT_TX_ID      TX_ID_BASE + 0x20       // DC-DC current 
00024 #define DCDC_STATUS_TX_ID       TX_ID_BASE + 0x21       // DC-DC status byte
00025 #define PWM_FAN_TX_ID           TX_ID_BASE + 0x22       // FAN1 actual pwm
00026 #define PWM_PUMP_TX_ID          TX_ID_BASE + 0x23       // PUMP1 actual pwm
00027 
00028 // IMD
00029 #define IMD_STATUS_TX_ID        TX_ID_BASE + 0x30       // IMD status byte
00030 #define IMD_RESIST_TX_ID        TX_ID_BASE + 0x31       // IMD resistance measurement
00031 
00032 // Latch Supervisor states
00033 #define IMD_LATCH_TX_ID         TX_ID_BASE + 0x40       // IMD Latch circuit error byte
00034 #define AMS_LATCH_TX_ID         TX_ID_BASE + 0x41       // AMS Latch circuit error byte
00035 
00036 // Shutdown Switches
00037 #define SWITCHES_TX_ID          TX_ID_BASE + 0x50       // Shutdown Switch State
00038 
00039 #endif