Searched refs:cal (Results 1 – 5 of 5) sorted by relevance
405 struct bmp388_cal_data *cal = &data->cal; in bmp388_compensate_temp() local407 partial_data1 = ((int64_t)data->sample.raw_temp - (256 * cal->t1)); in bmp388_compensate_temp()408 partial_data2 = cal->t2 * partial_data1; in bmp388_compensate_temp()410 partial_data4 = (int64_t)partial_data3 * cal->t3; in bmp388_compensate_temp()450 struct bmp388_cal_data *cal = &data->cal; in bmp388_compensate_press() local458 partial_data4 = (cal->p8 * partial_data3) / 32; in bmp388_compensate_press()459 partial_data5 = (cal->p7 * partial_data1) * 16; in bmp388_compensate_press()460 partial_data6 = (cal->p6 * t_lin) * 4194304; in bmp388_compensate_press()461 offset = (cal->p5 * 140737488355328) + partial_data4 + partial_data5 + in bmp388_compensate_press()463 partial_data2 = (cal->p4 * partial_data3) / 32; in bmp388_compensate_press()[all …]
164 struct bmp388_cal_data cal; member
95 uint16_t cal; in ina219_set_calib() local97 cal = INA219_SCALING_FACTOR / ((cfg->r_shunt) * (cfg->current_lsb)); in ina219_set_calib()99 return ina219_reg_write(dev, INA219_REG_CALIB, cal); in ina219_set_calib()
281 uint16_t cal; in ina23x_init() local295 cal = INA23X_CALIB(config->current_lsb, config->rshunt); in ina23x_init()297 ret = ina23x_reg_write(dev, INA23X_REG_CALIB, cal); in ina23x_init()
316 CalibrationParams_t cal = { in SX126xIoTcxoInit() local325 SX126xCalibrate(cal); in SX126xIoTcxoInit()