Lines Matching refs:raw_coef
250 static void dps310_calib_coeff_creation(const uint8_t raw_coef[18], in dps310_calib_coeff_creation()
254 comp->c0 = (((uint16_t)raw_coef[0]) << 4) + (raw_coef[1] >> 4); in dps310_calib_coeff_creation()
260 comp->c1 = (((uint16_t)(raw_coef[1] & 0x0F)) << 8) + raw_coef[2]; 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()
268 (raw_coef[5] >> 4); in dps310_calib_coeff_creation()
274 comp->c10 = (((uint32_t)(raw_coef[5] & 0x0F)) << 16) + in dps310_calib_coeff_creation()
275 (((uint16_t)raw_coef[6]) << 8) + raw_coef[7]; 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()
605 uint8_t raw_coef[18] = { 0 }; in dps310_init() local
607 res = i2c_write_read_dt(&config->i2c, ®_ADDR_CALIB_COEFF_0, 1, &raw_coef, 18); in dps310_init()
614 dps310_calib_coeff_creation(raw_coef, &data->comp); in dps310_init()