Lines Matching refs:comp

231 	struct dps310_cal_coeff comp;  member
251 struct dps310_cal_coeff *comp) in dps310_calib_coeff_creation() argument
254 comp->c0 = (((uint16_t)raw_coef[0]) << 4) + (raw_coef[1] >> 4); in dps310_calib_coeff_creation()
256 if (comp->c0 > POW_2_11_MINUS_1) { in dps310_calib_coeff_creation()
257 comp->c0 = comp->c0 - POW_2_12; in dps310_calib_coeff_creation()
260 comp->c1 = (((uint16_t)(raw_coef[1] & 0x0F)) << 8) + raw_coef[2]; in dps310_calib_coeff_creation()
262 if (comp->c1 > POW_2_11_MINUS_1) { in dps310_calib_coeff_creation()
263 comp->c1 = comp->c1 - POW_2_12; in dps310_calib_coeff_creation()
267 comp->c00 = (((uint32_t)raw_coef[3]) << 12) + (((uint16_t)raw_coef[4]) << 4) + in dps310_calib_coeff_creation()
270 if (comp->c00 > POW_2_19_MINUS_1) { in dps310_calib_coeff_creation()
271 comp->c00 = comp->c00 - POW_2_20; in dps310_calib_coeff_creation()
274 comp->c10 = (((uint32_t)(raw_coef[5] & 0x0F)) << 16) + in dps310_calib_coeff_creation()
277 if (comp->c10 > POW_2_19_MINUS_1) { in dps310_calib_coeff_creation()
278 comp->c10 = comp->c10 - POW_2_20; in dps310_calib_coeff_creation()
281 comp->c01 = (int16_t) sys_get_be16(&raw_coef[8]); in dps310_calib_coeff_creation()
282 comp->c11 = (int16_t) sys_get_be16(&raw_coef[10]); in dps310_calib_coeff_creation()
283 comp->c20 = (int16_t) sys_get_be16(&raw_coef[12]); in dps310_calib_coeff_creation()
284 comp->c21 = (int16_t) sys_get_be16(&raw_coef[14]); in dps310_calib_coeff_creation()
285 comp->c30 = (int16_t) sys_get_be16(&raw_coef[16]); in dps310_calib_coeff_creation()
413 const struct dps310_cal_coeff *comp = &data->comp; in dps310_scale_temperature() local
416 int32_t tmp_p0 = (1000000 / 2) * comp->c0; in dps310_scale_temperature()
420 (((int64_t)1000000) * comp->c1 * tmp_raw) / IFX_DPS310_SF_TMP; in dps310_scale_temperature()
437 const struct dps310_cal_coeff *comp = &data->comp; in dps310_scale_pressure() local
443 float psr_final = comp->c00; in dps310_scale_pressure()
445 psr_final += psr * (comp->c10 + psr * (comp->c20 + psr * comp->c30)); in dps310_scale_pressure()
446 psr_final += tmp * comp->c01; in dps310_scale_pressure()
447 psr_final += tmp * psr * (comp->c11 + psr * comp->c21); in dps310_scale_pressure()
614 dps310_calib_coeff_creation(raw_coef, &data->comp); in dps310_init()