Searched refs:sps30_serial_command (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/chemical/ |
H A D | sps30_serial.c | 190 static int sps30_serial_command(struct sps30_state *state, unsigned char cmd, in sps30_serial_command() function 280 return sps30_serial_command(state, SPS30_SERIAL_START_MEAS, buf, sizeof(buf), NULL, 0); in sps30_serial_start_meas() 285 return sps30_serial_command(state, SPS30_SERIAL_STOP_MEAS, NULL, 0, NULL, 0); in sps30_serial_stop_meas() 292 ret = sps30_serial_command(state, SPS30_SERIAL_RESET, NULL, 0, NULL, 0); in sps30_serial_reset() 306 ret = sps30_serial_command(state, SPS30_SERIAL_READ_MEAS, NULL, 0, meas, num * sizeof(num)); in sps30_serial_read_meas() 320 return sps30_serial_command(state, SPS30_SERIAL_CLEAN_FAN, NULL, 0, NULL, 0); in sps30_serial_clean_fan() 328 ret = sps30_serial_command(state, SPS30_SERIAL_PERIOD, buf, sizeof(buf), in sps30_serial_read_cleaning_period() 344 return sps30_serial_command(state, SPS30_SERIAL_PERIOD, buf, sizeof(buf), NULL, 0); in sps30_serial_write_cleaning_period() 357 ret = sps30_serial_command(state, SPS30_SERIAL_DEV_INFO, buf, 1, buf, sizeof(buf) - 1); in sps30_serial_show_info() 365 ret = sps30_serial_command(state, SPS30_SERIAL_READ_VERSION, NULL, 0, buf, sizeof(buf) - 1); in sps30_serial_show_info()
|