Home
last modified time | relevance | path

Searched refs:cal (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-2.7.6/drivers/sensor/bmp388/
Dbmp388.c405 struct bmp388_cal_data *cal = &data->cal; in bmp388_compensate_temp() local
407 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() local
458 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 …]
Dbmp388.h164 struct bmp388_cal_data cal; member
/Zephyr-Core-2.7.6/drivers/sensor/ina219/
Dina219.c95 uint16_t cal; in ina219_set_calib() local
97 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()
/Zephyr-Core-2.7.6/drivers/sensor/ina23x/
Dina23x.c281 uint16_t cal; in ina23x_init() local
295 cal = INA23X_CALIB(config->current_lsb, config->rshunt); in ina23x_init()
297 ret = ina23x_reg_write(dev, INA23X_REG_CALIB, cal); in ina23x_init()
/Zephyr-Core-2.7.6/drivers/lora/
Dsx126x.c316 CalibrationParams_t cal = { in SX126xIoTcxoInit() local
325 SX126xCalibrate(cal); in SX126xIoTcxoInit()