The Code Repository for the REV0 Steering Wheel.

Dependencies:   CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses

Fork of REVO_Updated_Steering by Penn Electric

CAN_Address.h

Committer:
tmccurbin
Date:
2015-02-08
Revision:
39:e6aa6dcf3f75
Parent:
38:d04a430d7fe3
Child:
42:701df58e923a

File content as of revision 39:e6aa6dcf3f75:

#define TX_BASE                 0x300       // TX IDs start at 0x300
#define TX_DUMP_OFFSET          0x100       // Bulk data dumps start at ID 0x300+0x100 = 0x400 for dumping current RAM and freezeFrames

// Home Screen Addresses
#define SOC_TX_ID               TX_BASE + 0x0B
#define SYS_GLV_SOC_ID          0x513
#define PCM_FRPM_ID             0x222
#define TEMP_MMA_TX_ID_BASE     TX_BASE + 0x18
#define TEMP_MMA_TX_ID_BASE2    TX_BASE + 0x19 
#define MOC_MOTEMP_ID           0x212

// Battery Screen Addresses
#define VOLTAGE_TX_ID           TX_BASE + 0x08
#define POWER_TX_ID             TX_BASE + 0x09
#define CURRENT_TX_ID           TX_BASE + 0x06
#define CELLV_MMA_TX_ID_BASE    TX_BASE + 0x16
#define CELLV_MMA_TX_ID_BASE2   TX_BASE + 0x17
#define BOARDTEMP_TX_ID         TX_BASE + 0x0E

// Motor Screen Addresses
#define MOC_AIRTEMP_ID          0x213
#define MOC_IGBTTEMP_ID         0x214
#define MOC_RPM_ID              0x211
#define PCM_TORQUERQ_ID         0x231     

// System Management Addresses
#define SYS_GLV_CURRENT_ID      0x510
#define SYS_SWITCHES_ID         0x560
#define SYS_PWM_FAN_ID          0x530
#define SYS_PWM_PUMP_ID         0x531
#define SYS_DCDC_STATUS_ID      0x521
#define SYS_IMD_RESIST_ID       0x541

// Charger Addresses
#define CHARGECURR_TX_ID        TX_BASE + 0x07

// Faults, Flags, & Errors (CURRENTLY BEING FILTERED)
#define PCM_FLAGS_ID            0x202
#define MOC_FAULTS_ID           0x210
#define PCM_FAULTS_ID           0x221
#define FAULTCODE_TX_ID         TX_BASE + 0x00
#define CELLFLAGS_TX_ID_BASE    TX_BASE + 0x47
#define TEMPFLAGS_TX_ID_BASE    TX_BASE + 0x5B
#define DIETEMPFLAGS_TX_ID_BASE TX_BASE + 0x74


// Filtered Addresses
#define SIGNALS_TX_ID           TX_BASE + 0x03
#define PROFILE_TX_ID           TX_BASE + 0x04
#define PACKERRS_TX_ID          TX_BASE + 0x05
#define AH_TX_ID                TX_BASE + 0x0C
#define SUPPLY_TX_ID            TX_BASE + 0x0D
#define VMISMATCH_TX_ID         TX_BASE + 0x0F
#define FANSPEED_TX_ID          TX_BASE + 0x10
#define STACK_OPDATA_TX_ID      TX_BASE + 0x15
#define INTREF_MMA_TX_ID_BASE   TX_BASE + 0x1A
#define DIETEMP_MMA_TX_ID_BASE  TX_BASE + 0x1C
#define VA_MMA_TX_ID_BASE       TX_BASE + 0x1C
#define VDD_MMA_TX_ID_BASE      TX_BASE + 0x20
#define SOC_MMA_TX_ID_BASE      TX_BASE + 0x22
#define CELLV_TX_ID_BASE        TX_BASE + 0x23
#define TEMP_TX_ID_BASE         TX_BASE + 0x4B
#define IC_REF_SOC_TX_ID_BASE   TX_BASE + 0x5C
#define IC_VA_VDD_TX_ID_BASE    TX_BASE + 0x64
#define IC_DIETEMP_TX_ID_BASE   TX_BASE + 0x6C
#define IC_OPDATA_TX_ID_BASE    TX_BASE + 0x7C
#define PCM_ERROR_ID            0x200
#define PCM_MODE_ID             0x201
#define LEFT_MOC_TXID           0x205
#define RIGHT_MOC_TXID          0x206
#define MOC_CURRENT_ID          0x215
#define MOC_VBUS_ID             0x216
#define PCM_DIGIOUT_ID          0x230
#define SYSMGMT_PUMPCMD_ID      0x580
#define SYSMGMT_FANCMD_ID       0x581
#define SYS_ERROR_ID            0x500
#define SYS_XBEE1_ID            0x501
#define SYS_XBEE2_ID            0x502
#define SYS_TEMP_ID             0x503
#define SYS_GLV_CAPACITY_ID     0x511
#define SYS_GLV_AH_ID           0x512
#define SYS_DCDC_CURRENT_ID     0x520
#define SYS_IMD_STATUS_ID       0x521
#define SYS_IMD_LATCH_ID        0x550
#define SYS_AMS_LATCH_ID        0x551


// Other Addresses
#define MODE_TX_ID              TX_BASE + 0x01
#define PCM_PEDALS_ID           0x220           //MOSTLY USED FOR TESTING PROGRAM SPEED