Searched refs:SGP40_CALC_POWER (Results 1 – 1 of 1) sorted by relevance
43 #define SGP40_CALC_POWER 14 macro156 exp = sgp40_exp(x, SGP40_CALC_POWER, 18); in sgp40_calc_voc()157 *voc = 500 * ((1 << (SGP40_CALC_POWER * 2)) / ((1<<SGP40_CALC_POWER) + exp)); in sgp40_calc_voc()255 *val = voc / (1 << SGP40_CALC_POWER); in sgp40_read_raw()261 *val2 = ((voc % (1 << SGP40_CALC_POWER)) * 244) / (1 << (SGP40_CALC_POWER - 12)); in sgp40_read_raw()