|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__LTC_H_
55 #define FOXBMS__LTC_H_
178 #ifdef UNITY_UNIT_TEST
185 #define TEST_LTC_DECLARE_GET(VARIABLE) extern void TEST_LTC_Get_##VARIABLE(uint8_t data[4])
static uint16_t ltc_cmdADAX_fast_ALLGPIOS[4]
static uint16_t ltc_cmdADCV_filtered_DCP1[4]
void TEST_LTC_SetFirstMeasurementCycleFinished(LTC_STATE_s *ltc_state)
static uint16_t ltc_cmdRDCVI_Fuelcell[4]
static uint16_t ltc_BC_cmdADOW_PUP_filtered_DCP0[4]
void LTC_monitoringPinInit(void)
Sets the transceiver pins to enable LTC6820 IC.
LTC_REQUEST_s LTC_GetStateRequest(LTC_STATE_s *ltc_state)
gets the current state request.
static uint16_t ltc_BC_cmdADOW_PUP_100ms_fuelcell[4]
static uint16_t ltc_cmdADAX_fast_GPIO2[4]
static uint16_t ltc_cmdRDAUXB[4]
static uint16_t ltc_cmdWRCFG[4]
static uint16_t ltc_cmdADAX_filtered_GPIO3[4]
static uint16_t ltc_cmdRDCVA[4]
static uint16_t ltc_cmdRDCVA_Fuelcell[4]
static uint16_t ltc_cmdADCV_filtered_DCP0[4]
static uint16_t ltc_cmdADAX_filtered_ALLGPIOS[4]
static uint16_t ltc_cmdRDCVD[4]
#define TEST_LTC_DECLARE_GET(VARIABLE)
static uint16_t ltc_cmdADAX_filtered_GPIO1[4]
static uint16_t ltc_cmdADAX_normal_GPIO1[4]
static uint16_t ltc_cmdRDCVF[4]
static uint16_t ltc_cmdADAX_fast_GPIO3[4]
static uint16_t ltc_cmdADAX_normal_ALLGPIOS[4]
static uint16_t ltc_cmdRDAUXC[4]
Headers for the driver for the LTC monitoring chip.
static uint16_t ltc_cmdRDCVH_Fuelcell[4]
static uint16_t ltc_cmdRDCVB_Fuelcell[4]
static uint16_t ltc_cmdWRCFG2[4]
static uint16_t ltc_cmdRDAUXA[4]
static uint16_t ltc_cmdRDCVD_Fuelcell[4]
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.
static uint16_t ltc_BC_cmdADOW_PDOWN_filtered_DCP0[4]
static uint16_t ltc_cmdRDAUXD[4]
static uint16_t ltc_BC_cmdADOW_PDOWN_normal_DCP0[4]
static uint16_t ltc_cmdADCV_fast_DCP0_twocells[4]
static uint16_t ltc_cmdRDCFG[4]
static uint16_t ltc_cmdRDCVE[4]
LTC_STATEMACH_e LTC_GetState(LTC_STATE_s *ltc_state)
gets the current state.
static uint16_t ltc_BC_cmdADOW_PUP_normal_DCP0[4]
bool LTC_IsFirstMeasurementCycleFinished(LTC_STATE_s *ltc_state)
gets the measurement initialization status.
static uint16_t ltc_cmdRDCVC[4]
LTC_STATE_s ltc_stateBase
static uint16_t ltc_cmdWRCOMM[4]
static uint16_t ltc_cmdRDCVF_Fuelcell[4]
static uint16_t ltc_cmdRDCVE_Fuelcell[4]
void LTC_SaveVoltages(LTC_STATE_s *ltc_state, uint8_t stringNumber)
stores the measured voltages in the database.
static uint16_t ltc_cmdADAX_fast_GPIO1[4]
static uint16_t ltc_cmdSTCOMM[4]
static uint16_t ltc_cmdADCV_fast_DCP1[4]
static uint16_t ltc_cmdRDCVG_Fuelcell[4]
static uint16_t ltc_cmdRDCVC_Fuelcell[4]
static uint16_t ltc_cmdADCV_fast_DCP0[4]
static uint16_t ltc_cmdADAX_normal_GPIO2[4]
static uint16_t ltc_cmdADAX_filtered_GPIO2[4]
void LTC_SaveTemperatures(LTC_STATE_s *ltc_state, uint8_t stringNumber)
stores the measured temperatures and the measured multiplexer feedbacks in the database.
static uint16_t ltc_cmdRDCVB[4]
static uint16_t ltc_BC_cmdADOW_PDOWN_100ms_fuelcell[4]
static uint16_t ltc_cmdRDCOMM[4]
void LTC_SaveAllGPIOMeasurement(LTC_STATE_s *ltc_state)
stores the measured GPIOs in the database.
static uint16_t ltc_cmdADCV_normal_Fuelcell[4]
static uint16_t ltc_cmdADCV_normal_DCP0[4]
static uint16_t ltc_cmdADCV_normal_DCP1[4]
uint8_t TEST_LTC_CheckReEntrance()
void LTC_Trigger(LTC_STATE_s *ltc_state)
trigger function for the LTC driver state machine.
static uint16_t ltc_cmdADAX_normal_GPIO3[4]