87 uint16_t storedTemperatureIndex = 0u;
88 for (uint8_t c = 0; c < registerGpioIndex; c++) {
90 storedTemperatureIndex++;
94 return storedTemperatureIndex;
118 #ifdef UNITY_UNIT_TEST
119 extern uint16_t TEST_ADI_GetStoredTemperatureIndex(uint16_t registerGpioIndex) {
const uint8_t adi_temperatureInputsUsed[BS_NR_OF_GPIOS_PER_MODULE]
int16_t ADI_ConvertGpioVoltageToTemperature(int16_t voltage_mV)
converts a raw GPIO voltage to a temperature value in deciCelsius.
Header for the configuration for the ADI analog front-end.
void ADI_GetTemperatures(ADI_STATE_s *adiState)
Store temperatures converted from GPIO voltages.
static uint16_t ADI_GetStoredTemperatureIndex(uint16_t registerGpioIndex)
Converts index of read GPIO voltages for temperatures.
Header file of some software.
#define BS_NR_OF_GPIOS_PER_MODULE
Defines the number of GPIOs.
#define BS_NR_OF_MODULES_PER_STRING
number of modules in a string
Assert macro implementation.
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define NULL_PTR
Null pointer.
DATA_BLOCK_CELL_TEMPERATURE_s * cellTemperature
DATA_BLOCK_ALL_GPIO_VOLTAGES_s * allGpioVoltages
int16_t gpioVoltages_mV[BS_NR_OF_STRINGS][BS_NR_OF_MODULES_PER_STRING *BS_NR_OF_GPIOS_PER_MODULE]
int16_t cellTemperature_ddegC[BS_NR_OF_STRINGS][BS_NR_OF_MODULES_PER_STRING][BS_NR_OF_TEMP_SENSORS_PER_MODULE]