58 #ifndef FOXBMS__CAN_CFG_H_
59 #define FOXBMS__CAN_CFG_H_
80 #define CAN_NODE_1 ((CAN_NODE_s *)&can_node1)
81 #define CAN_NODE_2 ((CAN_NODE_s *)&can_node2Isolated)
83 #define CAN_NODE_DEBUG_MESSAGE (CAN_NODE_1)
84 #define CAN_NODE_IMD (CAN_NODE_1)
85 #define CAN_NODE_CURRENT_SENSOR (CAN_NODE_1)
92 #define CAN1_ENABLE_PIN (PEX_PIN00)
93 #define CAN1_STANDBY_PIN (PEX_PIN01)
94 #define CAN2_ENABLE_PIN (PEX_PIN02)
95 #define CAN2_STANDBY_PIN (PEX_PIN03)
99 #define CAN_MAX_11BIT_ID (2048u)
101 #define CAN_MAX_DLC (8u)
103 #define CAN_DEFAULT_DLC (8u)
106 #define CAN_FOXBMS_MESSAGES_DEFAULT_DLC (8u)
224 const uint8_t *
const kpkCanData,
268 #ifdef UNITY_UNIT_TEST
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 CAN_NODE_s can_node1
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)
const CAN_NODE_s can_node2Isolated
@ CAN_EXTENDED_IDENTIFIER_29_BIT
@ CAN_STANDARD_IDENTIFIER_11_BIT
CAN_IDENTIFIER_TYPE_e idType
CAN_IDENTIFIER_TYPE_e idType
CAN_ENDIANNESS_e endianness
canBASE_t * canNodeRegister
CAN_RX_MESSAGE_TIMING_s timing
CAN_RxCallbackFunction_f callbackFunction
CAN_MESSAGE_PROPERTIES_s message
DATA_BLOCK_ERROR_STATE_s * pTableErrorState
DATA_BLOCK_CELL_VOLTAGE_s * pTableCellVoltage
DATA_BLOCK_STATE_REQUEST_s * pTableStateRequest
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_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