Home
last modified time | relevance | path

Searched refs:temperatureCode (Results 1 – 1 of 1) sorted by relevance

/hal_ti-2.7.6/simplelink/source/ti/drivers/temperature/
DTemperatureCC26X2.c145 int32_t temperatureCode; in degreesToCode() local
172 temperatureCode = (int32_t)((uint32_t)temperatureDegreesC << (32 - AON_BATMON_TEMP_INT_W)); in degreesToCode()
173 temperatureCode = temperatureCode >> (32 - AON_BATMON_TEMP_INT_W - AON_BATMON_TEMP_INT_S); in degreesToCode()
176 temperatureCode = temperatureCode - 0x80; in degreesToCode()
178 temperatureCode = temperatureCode + correctionOffset; in degreesToCode()
181 temperatureCode = BATMON_TEMPERATURE_CODE_MIN; in degreesToCode()
184 temperatureCode = BATMON_TEMPERATURE_CODE_MAX; in degreesToCode()
187 if (temperatureCode < 0) { in degreesToCode()
188 temperatureCode &= BATMON_TEMPERATURE_MASK_NEGATIVE; in degreesToCode()
190 else if (temperatureCode >= 0) { in degreesToCode()
[all …]