Lines Matching refs:response
24 uint8_t response = 0; in read_sensor_register() local
26 err = i2c_reg_read_byte(i2c_device, DEVICE_ADDRESS, register_address, &response); in read_sensor_register()
28 TC_PRINT("I2C read reg, addr: 0x%x, val: 0x%x\n", register_address, response); in read_sensor_register()
29 return response; in read_sensor_register()
63 uint8_t response = 0; in set_sensor_iir_filter() local
66 response = read_sensor_register(CONF_REGISTER_ADDRESS); in set_sensor_iir_filter()
67 response &= ~IIR_FILER_ORDER_BIT_MASK; in set_sensor_iir_filter()
68 response |= IIR_FILER_COEFF_3 << IIR_FILER_ORDER_BIT_SHIFT; in set_sensor_iir_filter()
69 write_sensor_register(CONF_REGISTER_ADDRESS, response); in set_sensor_iir_filter()
122 unsigned char response = 0; in configure_measurements() local
127 response = read_sensor_register(CTRL_HUM_REGISTER_ADDRESS); in configure_measurements()
128 response &= ~HUMIDITY_OVERSAMPLING_BIT_MSK; in configure_measurements()
129 response |= HUMIDITY_OVERSAMPLING_1X << HUMIDITY_OVERSAMPLING_BIT_SHIFT; in configure_measurements()
130 write_sensor_register(CTRL_HUM_REGISTER_ADDRESS, response); in configure_measurements()
133 response = read_sensor_register(CTRL_MEAS_REGISTER_ADDRESS); in configure_measurements()
134 response &= ~TEMP_OVERSAMPLING_BIT_MSK; in configure_measurements()
135 response |= TEMPERATURE_OVERSAMPLING_2X << TEMP_OVERSAMPLING_BIT_SHIFT; in configure_measurements()
137 write_sensor_register(CTRL_MEAS_REGISTER_ADDRESS, response); in configure_measurements()
140 response = read_sensor_register(CTRL_MEAS_REGISTER_ADDRESS); in configure_measurements()
141 response &= ~PRES_OVERSAMPLING_BIT_MSK; in configure_measurements()
142 response |= PRESSURE_OVERSAMPLING_16X << PRES_OVERSAMPLING_BIT_SHIFT; in configure_measurements()
144 write_sensor_register(CTRL_MEAS_REGISTER_ADDRESS, response); in configure_measurements()
152 unsigned char response = 0; in set_sensor_mode() local
156 response = read_sensor_register(CTRL_MEAS_REGISTER_ADDRESS); in set_sensor_mode()
157 response &= ~CTRL_MEAS_MODE_BIT_MSK; in set_sensor_mode()
158 response |= sensor_mode << CTRL_MEAS_MODE_BIT_SHIFT; in set_sensor_mode()
159 write_sensor_register(CTRL_MEAS_REGISTER_ADDRESS, response); in set_sensor_mode()
250 uint8_t response = 0; in ZTEST() local
263 response = read_sensor_register(CHIP_ID_REGISTER_ADDRESS); in ZTEST()
264 TC_PRINT("Chip_Id: %d\n", response); in ZTEST()
266 response = read_sensor_register(VARIANT_ID_REGISTER_ADDRESS); in ZTEST()
267 TC_PRINT("Variant_Id: %d\n", response); in ZTEST()
278 response = read_sensor_register(MEAS_STATUS_0_REG_ADDRESS); in ZTEST()
280 response & MEASUREMENT_IN_PROGRESS_BIT_MASK, in ZTEST()
281 response & MEASUREMENT_NEW_DATA_BIT_MASK); in ZTEST()
282 if (response & MEASUREMENT_NEW_DATA_BIT_MASK) { in ZTEST()