55 #ifndef FOXBMS__LTC_H_
56 #define FOXBMS__LTC_H_
179 #ifdef UNITY_UNIT_TEST
186 #define TEST_LTC_DECLARE_GET(VARIABLE) extern void TEST_LTC_Get_##VARIABLE(uint8_t data[4])
#define TEST_LTC_DECLARE_GET(VARIABLE)
LTC_STATEMACH_e LTC_GetState(LTC_STATE_s *ltc_state)
gets the current state.
bool LTC_IsFirstMeasurementCycleFinished(LTC_STATE_s *ltc_state)
gets the measurement initialization status.
LTC_RETURN_TYPE_e LTC_SetStateRequest(LTC_STATE_s *ltc_state, LTC_REQUEST_s statereq)
sets the current state request of the state variable ltc_state.
void LTC_SaveTemperatures(LTC_STATE_s *ltc_state, uint8_t stringNumber)
stores the measured temperatures and the measured multiplexer feedbacks in the database.
void LTC_InitializeMonitoringPin(void)
Sets the transceiver pins to enable LTC6820 IC.
LTC_REQUEST_s LTC_GetStateRequest(LTC_STATE_s *ltc_state)
gets the current state request.
void LTC_SaveVoltages(LTC_STATE_s *ltc_state, uint8_t stringNumber)
stores the measured voltages in the database.
LTC_STATE_s ltc_stateBase
void LTC_SaveAllGpioMeasurement(LTC_STATE_s *ltc_state)
stores the measured GPIOs in the database.
void LTC_Trigger(LTC_STATE_s *ltc_state)
trigger function for the LTC driver state machine.
void TEST_LTC_SetFirstMeasurementCycleFinished(LTC_STATE_s *ltc_state)
uint8_t TEST_LTC_CheckReEntrance()
static uint16_t ltc_cmdRDCVI_Fuelcell[4]
static uint16_t ltc_cmdRDCVA_Fuelcell[4]
static uint16_t ltc_cmdRDCVD_Fuelcell[4]
static uint16_t ltc_cmdRDCVG_Fuelcell[4]
static uint16_t ltc_cmdRDCVH_Fuelcell[4]
static uint16_t ltc_cmdRDCVE_Fuelcell[4]
static uint16_t ltc_cmdRDCFG[4]
static uint16_t ltc_cmdRDCVF_Fuelcell[4]
static uint16_t ltc_cmdRDCVB_Fuelcell[4]
static uint16_t ltc_BC_cmdADOW_PDOWN_100ms_fuelcell[4]
static uint16_t ltc_cmdWRCFG[4]
static uint16_t ltc_BC_cmdADOW_PUP_100ms_fuelcell[4]
static uint16_t ltc_cmdRDCVC_Fuelcell[4]
static uint16_t ltc_cmdADCV_normal_Fuelcell[4]
static uint16_t ltc_cmdADAX_fast_GPIO3[4]
static uint16_t ltc_cmdRDCVC[4]
static uint16_t ltc_cmdRDAUXB[4]
static uint16_t ltc_cmdRDCVA[4]
static uint16_t ltc_cmdWRCOMM[4]
static uint16_t ltc_cmdADAX_normal_GPIO1[4]
static uint16_t ltc_cmdRDAUXA[4]
static uint16_t ltc_cmdRDCVB[4]
static uint16_t ltc_cmdADCV_fast_DCP1[4]
static uint16_t ltc_cmdWRCFG2[4]
static uint16_t ltc_cmdRDAUXC[4]
static uint16_t ltc_cmdADAX_fast_GPIO2[4]
static uint16_t ltc_cmdADAX_normal_ALLGPIOS[4]
static uint16_t ltc_cmdADAX_filtered_GPIO3[4]
static uint16_t ltc_cmdADAX_filtered_GPIO2[4]
static uint16_t ltc_cmdRDCVD[4]
static uint16_t ltc_cmdADAX_fast_ALLGPIOS[4]
static uint16_t ltc_cmdADAX_normal_GPIO2[4]
static uint16_t ltc_BC_cmdADOW_PDOWN_filtered_DCP0[4]
static uint16_t ltc_cmdADAX_filtered_ALLGPIOS[4]
static uint16_t ltc_cmdADCV_fast_DCP0[4]
static uint16_t ltc_cmdADCV_filtered_DCP0[4]
static uint16_t ltc_cmdADAX_normal_GPIO3[4]
static uint16_t ltc_cmdADCV_normal_DCP1[4]
static uint16_t ltc_cmdRDCVE[4]
static uint16_t ltc_cmdRDAUXD[4]
static uint16_t ltc_cmdADCV_normal_DCP0[4]
static uint16_t ltc_BC_cmdADOW_PDOWN_normal_DCP0[4]
static uint16_t ltc_cmdADCV_fast_DCP0_twocells[4]
static uint16_t ltc_cmdRDCVF[4]
static uint16_t ltc_BC_cmdADOW_PUP_normal_DCP0[4]
static uint16_t ltc_cmdRDCOMM[4]
static uint16_t ltc_cmdSTCOMM[4]
static uint16_t ltc_cmdADAX_filtered_GPIO1[4]
static uint16_t ltc_BC_cmdADOW_PUP_filtered_DCP0[4]
static uint16_t ltc_cmdADCV_filtered_DCP1[4]
static uint16_t ltc_cmdADAX_fast_GPIO1[4]
Headers for the driver for the LTC monitoring chip.