55 #ifndef FOXBMS__CAN_CBS_RX_H_
56 #define FOXBMS__CAN_CBS_RX_H_
79 const uint8_t *
const kpkCanData,
90 const uint8_t *
const kpkCanData,
101 const uint8_t *
const kpkCanData,
112 const uint8_t *
const kpkCanData,
123 const uint8_t *
const kpkCanData,
128 #ifdef UNITY_UNIT_TEST
129 extern uint8_t TEST_CANRX_GetHundredthOfSeconds(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
130 extern uint8_t TEST_CANRX_GetSeconds(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
131 extern uint8_t TEST_CANRX_GetMinutes(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
132 extern uint8_t TEST_CANRX_GetHours(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
133 extern uint8_t TEST_CANRX_GetWeekday(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
134 extern uint8_t TEST_CANRX_GetDay(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
135 extern uint8_t TEST_CANRX_GetMonth(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
136 extern uint8_t TEST_CANRX_GetYear(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
138 extern void TEST_CANRX_TriggerBmsSoftwareVersionMessage(
void);
139 extern void TEST_CANRX_TriggerMcuUniqueDieIdMessage(
void);
140 extern void TEST_CANRX_TriggerMcuLotNumberMessage(
void);
141 extern void TEST_CANRX_TriggerMcuWaferInformationMessage(
void);
142 extern void TEST_CANRX_TriggerTimeInfoMessage(
void);
144 extern bool TEST_CANRX_CheckIfBmsSoftwareVersionIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
145 extern bool TEST_CANRX_CheckIfMcuUniqueDieIdIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
146 extern bool TEST_CANRX_CheckIfMcuLotNumberIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
147 extern bool TEST_CANRX_CheckIfMcuWaferInformationIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
148 extern bool TEST_CANRX_CheckIfSoftwareResetIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
149 extern bool TEST_CANRX_CheckIfFramInitializationIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
150 extern bool TEST_CANRX_CheckIfTimeInfoIsRequested(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
152 extern void TEST_CANRX_ProcessVersionInformationMux(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
153 extern void TEST_CANRX_ProcessRtcMux(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
154 extern void TEST_CANRX_ProcessSoftwareResetMux(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
155 extern void TEST_CANRX_ProcessFramInitializationMux(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
156 extern void TEST_CANRX_ProcessTimeInfoMux(uint64_t messageData,
CAN_ENDIANNESS_e endianness);
uint32_t CANRX_ImdResponse(CAN_MESSAGE_PROPERTIES_s message, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for IMD response messages
uint32_t CANRX_Debug(CAN_MESSAGE_PROPERTIES_s message, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for debug messages
uint32_t CANRX_CurrentSensor(CAN_MESSAGE_PROPERTIES_s message, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for current sensor measurements
uint32_t CANRX_BmsStateRequest(CAN_MESSAGE_PROPERTIES_s message, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for state requests
uint32_t CANRX_ImdInfo(CAN_MESSAGE_PROPERTIES_s message, const uint8_t *const kpkCanData, const CAN_SHIM_s *const kpkCanShim)
can rx callback function for IMD info messages
Headers for the configuration for the CAN module.