Lines Matching +full:0 +full:x77
7 * (7-bit I2C slave address 0x77)
18 #define T5403_DATA 0xf5 /* data, LSB first, 16 bit */
19 #define T5403_CALIB_DATA 0x8e /* 10 calibration coeff., LSB first, 16 bit */
20 #define T5403_SLAVE_ADDR 0x88 /* I2C slave address, 0x77 */
21 #define T5403_COMMAND 0xf1
25 #define T5403_PT BIT(1) /* 0 .. pressure, 1 .. temperature measurement */
26 #define T5403_SCO BIT(0) /* start conversion */
28 #define T5403_MODE_LOW 0
34 #define T5403_I2C_ADDR 0x77
55 if (ret < 0) in t5403_read()
75 if (ret < 0) in t5403_comp_pressure()
80 if (ret < 0) in t5403_comp_pressure()
85 S = T5403_C_U16(3) + (s32) T5403_C_U16(4) * t_r / 0x20000 + in t5403_comp_pressure()
86 T5403_C(5) * t_r / 0x8000 * t_r / 0x80000 + in t5403_comp_pressure()
87 T5403_C(9) * t_r / 0x8000 * t_r / 0x8000 * t_r / 0x10000; in t5403_comp_pressure()
89 O = T5403_C(6) * 0x4000 + T5403_C(7) * t_r / 8 + in t5403_comp_pressure()
90 T5403_C(8) * t_r / 0x8000 * t_r / 16 + in t5403_comp_pressure()
91 T5403_C(9) * t_r / 0x8000 * t_r / 0x10000 * t_r; in t5403_comp_pressure()
93 X = (S * p_r + O) / 0x4000; in t5403_comp_pressure()
95 X += ((X - 75000) * (X - 75000) / 0x10000 - 9537) * in t5403_comp_pressure()
96 T5403_C(10) / 0x10000; in t5403_comp_pressure()
113 if (ret < 0) in t5403_comp_temp()
118 *val = ((s32) T5403_C_U16(1) * t_r / 0x100 + in t5403_comp_temp()
119 (s32) T5403_C_U16(2) * 0x40) * 1000 / 0x10000; in t5403_comp_temp()
138 if (ret < 0) in t5403_read_raw()
143 if (ret < 0) in t5403_read_raw()
150 *val = 0; in t5403_read_raw()
167 if (val != 0) in t5403_write_raw()
169 for (i = 0; i < ARRAY_SIZE(t5403_pressure_conv_ms); i++) in t5403_write_raw()
174 return 0; in t5403_write_raw()
223 if (ret < 0) in t5403_probe()
247 if (ret < 0) in t5403_probe()
254 { "t5403", 0 },