Lines Matching refs:control
123 static int s11059_control_write(const struct device *dev, uint8_t control) in s11059_control_write() argument
126 const uint8_t opcode[] = {S11059_REG_ADDR_CONTROL, control}; in s11059_control_write()
143 uint8_t control; in s11059_start_measurement() local
147 rc = i2c_reg_read_byte_dt(&cfg->bus, S11059_REG_ADDR_CONTROL, &control); in s11059_start_measurement()
154 WRITE_BIT(control, S11059_CONTROL_ADC_RESET, 1); in s11059_start_measurement()
155 WRITE_BIT(control, S11059_CONTROL_STADBY, 0); in s11059_start_measurement()
156 rc = s11059_control_write(dev, control); in s11059_start_measurement()
163 WRITE_BIT(control, S11059_CONTROL_ADC_RESET, 0); in s11059_start_measurement()
164 rc = s11059_control_write(dev, control); in s11059_start_measurement()
202 uint8_t control; in s11059_sample_fetch() local
217 rc = i2c_reg_read_byte_dt(&cfg->bus, S11059_REG_ADDR_CONTROL, &control); in s11059_sample_fetch()
224 } while (!(control & S11059_BIT_MASK_CONTROL_STANDBY_MONITOR)); in s11059_sample_fetch()
258 uint8_t control = S11059_INITIAL_CONTROL; in s11059_init() local
282 control |= timing_mode & S11059_BIT_MASK_INTEGRATION_TIME; in s11059_init()
283 WRITE_BIT(control, S11059_CONTROL_GAIN, cfg->gain); in s11059_init()
284 rc = s11059_control_write(dev, control); in s11059_init()