Lines Matching refs:coeffs

74 static void read_calibration_coeffs(struct calibration_coeffs *coeffs)  in read_calibration_coeffs()  argument
82 coeffs->par_h1 = (uint16_t)(((uint16_t)register_data[HUMI_PAR_H1_MSB_BUF_POSITION] << 4) | in read_calibration_coeffs()
85 coeffs->par_h2 = (uint16_t)(((uint16_t)register_data[HUMI_PAR_H2_MSB_BUF_POSITION] << 4) | in read_calibration_coeffs()
88 coeffs->par_h3 = (uint8_t)register_data[HUMI_PAR_H3_BUF_POSITION]; in read_calibration_coeffs()
89 coeffs->par_h4 = (uint8_t)register_data[HUMI_PAR_H4_BUF_POSITION]; in read_calibration_coeffs()
90 coeffs->par_h5 = (uint8_t)register_data[HUMI_PAR_H5_BUF_POSITION]; in read_calibration_coeffs()
91 coeffs->par_h6 = (uint8_t)register_data[HUMI_PAR_H6_BUF_POSITION]; in read_calibration_coeffs()
92 coeffs->par_h7 = (uint8_t)register_data[HUMI_PAR_H7_BUF_POSITION]; in read_calibration_coeffs()
97 coeffs->par_t1 = (uint16_t)(((uint16_t)register_data[1] << 8) | (uint16_t)register_data[0]); in read_calibration_coeffs()
99 coeffs->par_t2 = (uint16_t)(((uint16_t)register_data[1] << 8) | (uint16_t)register_data[0]); in read_calibration_coeffs()
100 coeffs->par_t3 = (uint8_t)read_sensor_register(TEMP_PAR_T3_REGISTER_ADDRESS); in read_calibration_coeffs()
105 coeffs->par_p1 = (uint16_t)(((uint16_t)register_data[1] << 8) | (uint16_t)register_data[0]); in read_calibration_coeffs()
106 coeffs->par_p2 = (int16_t)(((uint16_t)register_data[3] << 8) | (uint16_t)register_data[2]); in read_calibration_coeffs()
107 coeffs->par_p3 = (int8_t)read_sensor_register(PRES_PAR_P3_REGISTER_ADDRESS); in read_calibration_coeffs()
109 coeffs->par_p4 = (int16_t)(((uint16_t)register_data[1] << 8) | (uint16_t)register_data[0]); in read_calibration_coeffs()
110 coeffs->par_p5 = (int16_t)(((uint16_t)register_data[3] << 8) | (uint16_t)register_data[2]); in read_calibration_coeffs()
111 coeffs->par_p6 = (int8_t)read_sensor_register(PRES_PAR_P6_REGISTER_ADDRESS); in read_calibration_coeffs()
112 coeffs->par_p7 = (int8_t)read_sensor_register(PRES_PAR_P7_REGISTER_ADDRESS); in read_calibration_coeffs()
114 coeffs->par_p8 = (int16_t)(((uint16_t)register_data[1] << 8) | (uint16_t)register_data[0]); in read_calibration_coeffs()
115 coeffs->par_p9 = (int16_t)(((uint16_t)register_data[3] << 8) | (uint16_t)register_data[2]); in read_calibration_coeffs()
116 coeffs->par_p10 = read_sensor_register(PRES_PAR_P10_REGISTER_ADDRESS); in read_calibration_coeffs()