Searched refs:sps30_i2c_command (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/iio/chemical/ |
D | sps30_i2c.c | 65 static int sps30_i2c_command(struct sps30_state *state, u16 cmd, void *arg, size_t arg_size, in sps30_i2c_command() function 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() 198 ret = sps30_i2c_command(state, SPS30_I2C_READ_SERIAL, NULL, 0, buf, sizeof(buf) - 1); in sps30_i2c_show_info() [all …]
|