58 #ifndef FOXBMS__CAN_CFG_H_
59 #define FOXBMS__CAN_CFG_H_
71 #define CAN_NODE_1 (canREG1)
72 #define CAN_NODE_2 (canREG2)
75 #define CAN_NODE_IMD (CAN_NODE_1)
76 #define CAN_NODE_CURRENT_SENSOR (CAN_NODE_1)
82 #define CAN1_ENABLE_PIN (PEX_PIN00)
83 #define CAN1_STANDBY_PIN (PEX_PIN01)
84 #define CAN2_ENABLE_PIN (PEX_PIN02)
85 #define CAN2_STANDBY_PIN (PEX_PIN03)
89 #define CAN_MAX_11BIT_ID (2048u)
91 #define CAN_MAX_DLC (8u)
93 #define CAN_DEFAULT_DLC (8u)
96 #define CAN_FOXBMS_MESSAGES_DEFAULT_DLC (8u)
205 const uint8_t *
const kpkCanData,
const CAN_RX_MESSAGE_TYPE_s can_rxMessages[]
uint32_t(* CAN_TxCallbackFunction_f)(CAN_MESSAGE_PROPERTIES_s message, uint8_t *canData, uint8_t *pMuxId, const CAN_SHIM_s *const kpkCanShim)
const uint8_t can_txLength
const CAN_TX_MESSAGE_TYPE_s can_txMessages[]
const CAN_SHIM_s can_kShim
const uint8_t can_rxLength
uint32_t(* CAN_RxCallbackFunction_f)(CAN_MESSAGE_PROPERTIES_s message, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
General macros and definitions for the whole platform.
CAN_ENDIANNESS_e endianness
CAN_RX_MESSAGE_TIMING_s timing
CAN_RxCallbackFunction_f callbackFunction
CAN_MESSAGE_PROPERTIES_s message
DATA_BLOCK_STATEREQUEST_s * pTableStateRequest
DATA_BLOCK_CELL_VOLTAGE_s * pTableCellVoltage
DATA_BLOCK_PACK_VALUES_s * pTablePackValues
DATA_BLOCK_RSL_FLAG_s * pTableRsl
DATA_BLOCK_SOX_s * pTableSox
DATA_BLOCK_CURRENT_SENSOR_s * pTableCurrentSensor
DATA_BLOCK_ERRORSTATE_s * pTableErrorState
DATA_BLOCK_CELL_TEMPERATURE_s * pTableCellTemperature
DATA_BLOCK_MSL_FLAG_s * pTableMsl
DATA_BLOCK_MOL_FLAG_s * pTableMol
DATA_BLOCK_MIN_MAX_s * pTableMinMax
DATA_BLOCK_OPEN_WIRE_s * pTableOpenWire
DATA_BLOCK_INSULATION_MONITORING_s * pTableInsulation
DATA_BLOCK_SOF_s * pTableSof
CAN_TxCallbackFunction_f callbackFunction
CAN_MESSAGE_PROPERTIES_s message
CAN_TX_MESSAGE_TIMING_s timing