The Code Repository for the REV0 Steering Wheel.
Dependencies: CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses
Fork of REVO_Updated_Steering by
Diff: CAN_Address.h
- Revision:
- 36:8544a8900884
- Child:
- 38:d04a430d7fe3
diff -r b42afc973902 -r 8544a8900884 CAN_Address.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CAN_Address.h Thu Jan 29 04:27:19 2015 +0000 @@ -0,0 +1,43 @@ +#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 TEMP_MMA_TX_ID_BASE TX_BASE + 0x18 +#define TEMP_MMA_TX_ID_BASE2 TX_BASE + 0x19 +#define BOARDTEMP_TX_ID TX_BASE + 0x0E + +//Motor Screen Addresses +#define MOC_MOTEMP_ID 0x212 +#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 + +//Other Addresses +#define FAULTCODE_TX_ID TX_BASE + 0x00 +#define MODE_TX_ID TX_BASE + 0x01 +#define PCM_PEDALS_ID 0x220 \ No newline at end of file