Add AMI CAN DBC and verified SDC/BMS firmware handoff
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef AMI_PROTOCOL_H
|
||||
#define AMI_PROTOCOL_H
|
||||
|
||||
/* Both CAN ports use the same 500 kbit/s protocol and the same IDs. */
|
||||
#define AMI_CAN_ID_SDC_HEARTBEAT 0x6A0U
|
||||
#define AMI_CAN_ID_SDC_ADC 0x6A1U
|
||||
#define AMI_CAN_ID_SDC_FREQUENCY 0x6A2U
|
||||
#define AMI_CAN_ID_SDC_DAC_ACK 0x6A4U
|
||||
#define AMI_CAN_ID_SDC_GPIO 0x6A6U
|
||||
#define AMI_CAN_ID_BMS_STATUS 0x140U
|
||||
#define AMI_CAN_ID_BMS_TEMPERATURE 0x156U
|
||||
#define AMI_CAN_ID_BMS_STATUS_EXT 0x186040F3UL
|
||||
#define AMI_CAN_ID_BMS_EXTREMES_EXT 0x186140F3UL
|
||||
/* AMI task requests are not ASSI commands; no SDC mapping is defined. */
|
||||
#define AMI_CAN_ID_TASK_REQUEST 0x300U
|
||||
|
||||
#define AMI_CAN_DATA_TIMEOUT_MS 500U
|
||||
#define AMI_ADC_TIMEOUT_MS 1500U
|
||||
#define AMI_BMS_TIMEOUT_MS 2000U
|
||||
#define AMI_SCREEN_BOOT_DELAY_MS 800U
|
||||
#define AMI_SCREEN_RESYNC_MS 5000U
|
||||
|
||||
#endif /* AMI_PROTOCOL_H */
|
||||
Reference in New Issue
Block a user