Lines Matching refs:i2c_spec
40 ret = i2c_burst_read_dt(&cfg->i2c_spec, TSL2540_REG_VIS_LOW, in tsl2540_sample_fetch()
54 ret = i2c_burst_read_dt(&cfg->i2c_spec, TSL2540_REG_IR_LOW, (uint8_t *)&le16_buffer, in tsl2540_sample_fetch()
137 if (i2c_reg_write_byte_dt(&cfg->i2c_spec, TSL2540_REG_CFG_1, value) < 0) { in tsl2540_attr_set_gain()
141 if (i2c_reg_write_byte_dt(&cfg->i2c_spec, TSL2540_REG_CFG_2, value) < 0) { in tsl2540_attr_set_gain()
165 ret = i2c_reg_write_byte_dt(&cfg->i2c_spec, TSL2540_ENABLE_ADDR, TSL2540_ENABLE_MASK & in tsl2540_attr_set()
187 &((const struct tsl2540_config *)dev->config)->i2c_spec, in tsl2540_attr_set()
206 &((const struct tsl2540_config *)dev->config)->i2c_spec, in tsl2540_attr_set()
229 if (i2c_reg_write_byte_dt(&cfg->i2c_spec, TSL2540_REG_PERS, temp)) { in tsl2540_attr_set()
243 if (i2c_reg_write_byte_dt(&cfg->i2c_spec, TSL2540_REG_ATIME, temp)) { in tsl2540_attr_set()
253 ret = i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_CFG3_ADDR, TSL2540_CFG3_MASK, in tsl2540_attr_set()
258 ret = i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_CFG3_ADDR, TSL2540_CFG3_MASK, in tsl2540_attr_set()
263 ret = i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_CFG3_ADDR, TSL2540_CFG3_MASK, in tsl2540_attr_set()
269 i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_ENABLE_ADDR, TSL2540_ENABLE_MASK, in tsl2540_attr_set()
303 if (!i2c_is_ready_dt(&cfg->i2c_spec)) { in tsl2540_init()
304 LOG_ERR("I2C dev %s not ready", cfg->i2c_spec.bus->name); in tsl2540_init()
308 ret = i2c_reg_write_byte_dt(&cfg->i2c_spec, TSL2540_REG_PERS, 1); in tsl2540_init()
314 ret = i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_CFG3_ADDR, TSL2540_CFG3_MASK, in tsl2540_init()
357 ret = i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_ENABLE_ADDR, in tsl2540_pm_action()
361 ret = i2c_reg_update_byte_dt(&cfg->i2c_spec, TSL2540_ENABLE_ADDR, in tsl2540_pm_action()
379 .i2c_spec = I2C_DT_SPEC_INST_GET(inst), \