Home
last modified time | relevance | path

Searched refs:sps30_serial_command (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/chemical/
H A Dsps30_serial.c189 static int sps30_serial_command(struct sps30_state *state, unsigned char cmd, in sps30_serial_command() function
279 return sps30_serial_command(state, SPS30_SERIAL_START_MEAS, buf, sizeof(buf), NULL, 0); in sps30_serial_start_meas()
284 return sps30_serial_command(state, SPS30_SERIAL_STOP_MEAS, NULL, 0, NULL, 0); in sps30_serial_stop_meas()
291 ret = sps30_serial_command(state, SPS30_SERIAL_RESET, NULL, 0, NULL, 0); in sps30_serial_reset()
305 ret = sps30_serial_command(state, SPS30_SERIAL_READ_MEAS, NULL, 0, meas, num * sizeof(*meas)); in sps30_serial_read_meas()
319 return sps30_serial_command(state, SPS30_SERIAL_CLEAN_FAN, NULL, 0, NULL, 0); in sps30_serial_clean_fan()
327 ret = sps30_serial_command(state, SPS30_SERIAL_PERIOD, buf, sizeof(buf), in sps30_serial_read_cleaning_period()
343 return sps30_serial_command(state, SPS30_SERIAL_PERIOD, buf, sizeof(buf), NULL, 0); in sps30_serial_write_cleaning_period()
356 ret = sps30_serial_command(state, SPS30_SERIAL_DEV_INFO, buf, 1, buf, sizeof(buf) - 1); in sps30_serial_show_info()
364 ret = sps30_serial_command(state, SPS30_SERIAL_READ_VERSION, NULL, 0, buf, sizeof(buf) - 1); in sps30_serial_show_info()