Lines Matching refs:recv_buf
29 uint8_t recv_buf[AGS10_MAX_PAYLOAD_SIZE] = {0}; in ags10_read() local
30 int ret = i2c_write_read_dt(&conf->bus, &cmd, sizeof(cmd), &recv_buf, rx_bytes); in ags10_read()
36 memcpy(data, recv_buf, rx_bytes); in ags10_read()
49 uint8_t recv_buf[5] = {0}; in ags10_sample_fetch() local
51 ret = ags10_read(dev, AGS10_CMD_DATA_ACQUISITION, recv_buf, 5); in ags10_sample_fetch()
55 if (crc8(&recv_buf[0], 4, 0x31, 0xFF, false) == recv_buf[4] && in ags10_sample_fetch()
56 ((recv_buf[0] & AGS10_MSK_STATUS) == AGS10_REG_STATUS_NRDY_READY)) { in ags10_sample_fetch()
57 data->status = recv_buf[0] & AGS10_MSK_STATUS; in ags10_sample_fetch()
58 data->tvoc_ppb = sys_get_be24(&recv_buf[1]); in ags10_sample_fetch()
102 uint8_t recv_buf[5] = {0}; in ags10_init() local
104 ret = ags10_read(dev, AGS10_CMD_READ_VERSION, recv_buf, 5); in ags10_init()
107 if (ret == 0 && crc8(&recv_buf[0], 4, 0x31, 0xFF, false) == recv_buf[4]) { in ags10_init()
108 data->version = recv_buf[3]; in ags10_init()