Part Number:CC2640R2F
Tool/software: TI-RTOS
example project: i2chdc2010 , simplelink sensor and actuator plugin example
HDC2010_setTempLimit of hdc2010.c, line 308,309
hi_temp = (int16_t)((high * MAX_CELSIUS_PER_LSB) + 40U); lo_temp = (int16_t)((low * MAX_CELSIUS_PER_LSB) + 40U);
according to doc http://www.ti.com/lit/ds/symlink/hdc2080.pdf ,formula (5) and (6) on page 24, it should be
hi_temp = (int16_t)((high + 40U) * MAX_CELSIUS_PER_LSB); lo_temp = (int16_t)((low + 40U) * MAX_CELSIUS_PER_LSB);