Lines Matching +full:0 +full:x8004

7  * I2C slave address: 0x69
21 #define SPS30_I2C_CRC8_POLYNOMIAL 0x31
27 #define SPS30_I2C_START_MEAS 0x0010
28 #define SPS30_I2C_STOP_MEAS 0x0104
29 #define SPS30_I2C_READ_MEAS 0x0300
30 #define SPS30_I2C_MEAS_READY 0x0202
31 #define SPS30_I2C_RESET 0xd304
32 #define SPS30_I2C_CLEAN_FAN 0x5607
33 #define SPS30_I2C_PERIOD 0x8004
34 #define SPS30_I2C_READ_SERIAL 0xd033
35 #define SPS30_I2C_READ_VERSION 0xd100
48 if (ret < 0) in sps30_i2c_xfer()
54 return 0; in sps30_i2c_xfer()
57 if (ret < 0) in sps30_i2c_xfer()
62 return 0; in sps30_i2c_xfer()
109 for (i = 0; i < rsp_size; i += 3) { in sps30_i2c_command()
120 return 0; in sps30_i2c_command()
126 unsigned char buf[] = { 0x03, 0x00 }; in sps30_i2c_start_meas()
128 return sps30_i2c_command(state, SPS30_I2C_START_MEAS, buf, sizeof(buf), NULL, 0); in sps30_i2c_start_meas()
133 return sps30_i2c_command(state, SPS30_I2C_STOP_MEAS, NULL, 0, NULL, 0); in sps30_i2c_stop_meas()
140 ret = sps30_i2c_command(state, SPS30_I2C_RESET, NULL, 0, NULL, 0); in sps30_i2c_reset()
158 ret = sps30_i2c_command(state, SPS30_I2C_MEAS_READY, NULL, 0, buf, sizeof(buf)); in sps30_i2c_meas_ready()
174 return sps30_i2c_command(state, SPS30_I2C_READ_MEAS, NULL, 0, meas, sizeof(num) * num); in sps30_i2c_read_meas()
179 return sps30_i2c_command(state, SPS30_I2C_CLEAN_FAN, NULL, 0, NULL, 0); in sps30_i2c_clean_fan()
184 return sps30_i2c_command(state, SPS30_I2C_PERIOD, NULL, 0, period, sizeof(*period)); in sps30_i2c_read_cleaning_period()
189 return sps30_i2c_command(state, SPS30_I2C_PERIOD, &period, sizeof(period), NULL, 0); in sps30_i2c_write_cleaning_period()
195 unsigned char buf[32 + 1] = { 0x00 }; in sps30_i2c_show_info()
198 ret = sps30_i2c_command(state, SPS30_I2C_READ_SERIAL, NULL, 0, buf, sizeof(buf) - 1); in sps30_i2c_show_info()
204 ret = sps30_i2c_command(state, SPS30_I2C_READ_VERSION, NULL, 0, buf, 2); in sps30_i2c_show_info()
208 dev_info(state->dev, "fw version: %u.%u\n", buf[0], buf[1]); in sps30_i2c_show_info()
210 return 0; in sps30_i2c_show_info()