Lines Matching refs:rx_buf
75 uint8_t rx_buf[1]; in read_status() local
84 rc = i2c_read_dt(&cfg->bus, rx_buf, sizeof(rx_buf)); in read_status()
91 *status = rx_buf[0]; in read_status()
100 uint8_t rx_buf[3]; in reset_register() local
103 rc = i2c_write_read_dt(&cfg->bus, tx_buf, sizeof(tx_buf), rx_buf, sizeof(rx_buf)); in reset_register()
111 tx_buf[1] = rx_buf[1]; in reset_register()
112 tx_buf[2] = rx_buf[2]; in reset_register()
175 uint8_t rx_buf[DHT20_MEASUREMENT_BUFFER_LENGTH]; in dht20_read_sample() local
179 rc = i2c_read_dt(&cfg->bus, rx_buf, sizeof(rx_buf)); in dht20_read_sample()
185 status = rx_buf[0]; in dht20_read_sample()
187 *rh_sample = sys_get_be24(&rx_buf[1]) >> 4; in dht20_read_sample()
189 *t_sample = sys_get_be24(&rx_buf[3]) & 0x0FFFFF; in dht20_read_sample()
193 uint8_t crc = crc8(rx_buf, 6, DHT20_CRC_POLYNOM, 0xFF, false); in dht20_read_sample()
195 if (crc != rx_buf[6]) { in dht20_read_sample()