Home
last modified time | relevance | path

Searched refs:i2c_spec (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/drivers/w1/
Dw1_ds2484.c23 const struct i2c_dt_spec i2c_spec; member
37 return ds2482_84_reset_bus(&config->i2c_spec); in ds2484_reset_bus()
44 return ds2482_84_read_bit(&config->i2c_spec); in ds2484_read_bit()
51 return ds2482_84_write_bit(&config->i2c_spec, bit); in ds2484_write_bit()
58 return ds2482_84_read_byte(&config->i2c_spec); in ds2484_read_byte()
65 return ds2482_84_write_byte(&config->i2c_spec, byte); in ds2484_write_byte()
84 return ds2482_84_write_config(&config->i2c_spec, data->reg_device_config); in ds2484_configure()
131 if (!device_is_ready(config->i2c_spec.bus)) { in ds2484_init()
135 ret = ds2482_84_reset_device(&config->i2c_spec); in ds2484_init()
143 ret = ds2482_84_write_config(&config->i2c_spec, data->reg_device_config); in ds2484_init()
[all …]
Dw1_ds2482-800_channel.c22 const struct i2c_dt_spec i2c_spec; member
36 return ds2482_84_reset_bus(&config->i2c_spec); in ds2482_reset_bus()
43 return ds2482_84_read_bit(&config->i2c_spec); in ds2482_read_bit()
50 return ds2482_84_write_bit(&config->i2c_spec, bit); in ds2482_write_bit()
57 return ds2482_84_read_byte(&config->i2c_spec); in ds2482_read_byte()
64 return ds2482_84_write_byte(&config->i2c_spec, byte); in ds2482_write_byte()
84 return ds2482_84_write_config(&config->i2c_spec, reg_config); in ds2482_configure()
125 ret = ds2482_set_channel(&config->i2c_spec, config->reg_channel, config->reg_channel_rb); in ds2482_change_bus_lock()
133 ret = ds2482_84_write_config(&config->i2c_spec, config->reg_config); in ds2482_change_bus_lock()
166 .i2c_spec = I2C_DT_SPEC_GET(DT_INST_PARENT(inst)), \
Dw1_ds2482-800.c19 const struct i2c_dt_spec i2c_spec; member
42 if (!i2c_is_ready_dt(&config->i2c_spec)) { in ds2482_init()
46 ret = ds2482_84_reset_device(&config->i2c_spec); in ds2482_init()
57 .i2c_spec = I2C_DT_SPEC_INST_GET(inst), \
Dw1_ds2485.c53 ret = i2c_write_dt(&cfg->i2c_spec, tx_bytes, i2c_len); in ds2485_w1_script_cmd()
60 ret = i2c_transfer_dt(&cfg->i2c_spec, rx_msg, 2); in ds2485_w1_script_cmd()
79 if (!device_is_ready(cfg->i2c_spec.bus)) { in w1_ds2485_init()
80 LOG_ERR("%s is not ready", cfg->i2c_spec.bus->name); in w1_ds2485_init()
Dw1_ds2477_85_common.c29 ret = i2c_write_dt(&cfg->i2c_spec, buf, (CMD_WR_W1_PORT_CFG_LEN + CMD_OVERHEAD_LEN)); in ds2477_85_write_port_config()
36 ret = i2c_read_dt(&cfg->i2c_spec, buf, 2); in ds2477_85_write_port_config()
55 ret = i2c_write_dt(&cfg->i2c_spec, buf, (CMD_RD_W1_PORT_CFG_LEN + CMD_OVERHEAD_LEN)); in ds2477_85_read_port_config()
62 ret = i2c_read_dt(&cfg->i2c_spec, buf, 4); in ds2477_85_read_port_config()
81 ret = i2c_write_dt(&cfg->i2c_spec, buf, 1); in ds2477_85_reset_master()
89 ret = i2c_read_dt(&cfg->i2c_spec, buf, 2); in ds2477_85_reset_master()
207 ret = i2c_transfer_dt(&cfg->i2c_spec, tx_msg, 2); in ds2477_85_write_block()
215 ret = i2c_read_dt(&cfg->i2c_spec, buf, 2); in ds2477_85_write_block()
244 ret = i2c_write_dt(&cfg->i2c_spec, buf, (CMD_RD_BLOCK_LEN + CMD_OVERHEAD_LEN)); in ds2477_85_read_block()
252 ret = i2c_transfer_dt(&cfg->i2c_spec, rx_msg, 2); in ds2477_85_read_block()
Dw1_ds2477_85_common.h201 const struct i2c_dt_spec i2c_spec; member
227 .i2c_spec = I2C_DT_SPEC_GET(node_id), \
/Zephyr-latest/drivers/sensor/ams/tsl2540/
Dtsl2540.c40 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()
[all …]
Dtsl2540_trigger.c50 int ret = i2c_reg_read_byte_dt(&config->i2c_spec, TSL2540_REG_STATUS, &status); in tsl2540_process_int()
125 const struct i2c_dt_spec *i2c_spec = &config->i2c_spec; in tsl2540_trigger_set() local
127 ret = i2c_reg_update_byte_dt(i2c_spec, TSL2540_INTENAB_ADDR, in tsl2540_trigger_set()
134 ret = i2c_reg_update_byte_dt(i2c_spec, TSL2540_CFG3_ADDR, in tsl2540_trigger_set()
Dtsl2540.h76 const struct i2c_dt_spec i2c_spec; member
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c30 ret = i2c_write_dt(&config->i2c_spec, adc_conf, 2); in tcn75a_sample_fetch()
37 ret = i2c_write_read_dt(&config->i2c_spec, &temp_reg, sizeof(temp_reg), in tcn75a_sample_fetch()
81 if (!i2c_is_ready_dt(&config->i2c_spec)) { in tcn75a_init()
115 return i2c_write_dt(&config->i2c_spec, adc_conf, 2); in tcn75a_init()
127 .i2c_spec = I2C_DT_SPEC_INST_GET(n), \
Dtcn75a_trigger.c33 ret = i2c_reg_update_byte_dt(&config->i2c_spec, TCN75A_CONFIG_REG, TCN75A_CONFIG_INT_EN, in tcn75a_trigger_set()
75 return i2c_write_dt(&config->i2c_spec, tx_buf, 3); in tcn75a_attr_set()
102 ret = i2c_write_read_dt(&config->i2c_spec, &config_reg, 1, rx_buf, 2); in tcn75a_attr_get()
Dtcn75a.h33 struct i2c_dt_spec i2c_spec; member
/Zephyr-latest/drivers/dac/
Ddac_dacx0501.c54 struct i2c_dt_spec i2c_spec; member
70 status = i2c_write_read_dt(&config->i2c_spec, &addr, sizeof(addr), raw_data, in dacx0501_reg_read()
89 return i2c_write_dt(&config->i2c_spec, write_cmd, sizeof(write_cmd)); in dacx0501_reg_write()
143 if (!i2c_is_ready_dt(&config->i2c_spec)) { in dacx0501_init()
144 LOG_ERR("I2C bus %s not ready", config->i2c_spec.bus->name); in dacx0501_init()
187 .i2c_spec = I2C_DT_SPEC_INST_GET(n), \
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108.c27 result = i2c_burst_read_dt(&cfg->i2c_spec, reg, (uint8_t *) val, 2); in tmp108_reg_read()
47 result = i2c_write_dt(&cfg->i2c_spec, tx_buf, sizeof(tx_buf)); in tmp108_reg_write()
368 if (!device_is_ready(cfg->i2c_spec.bus)) { in tmp108_init()
369 LOG_ERR("I2C dev %s not ready", cfg->i2c_spec.bus->name); in tmp108_init()
395 .i2c_spec = I2C_DT_SPEC_INST_GET(inst), \
Dtmp108.h106 const struct i2c_dt_spec i2c_spec; member
/Zephyr-latest/drivers/gpio/
Dgpio_tca6424a.c39 struct i2c_dt_spec i2c_spec; member
76 ret = i2c_burst_read_dt(&config->i2c_spec, reg, (uint8_t *)&port_data, 3); in read_port_regs()
118 ret = i2c_write_dt(&config->i2c_spec, buf, sizeof(buf)); in write_port_regs()
468 if (!device_is_ready(drv_cfg->i2c_spec.bus)) { in tca6424a_init()
564 .i2c_spec = I2C_DT_SPEC_INST_GET(idx), \
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.c449 const struct i2c_dt_spec i2c_spec = cfg->bus_cfg.i2c; in fxls8974_init() local
452 if (!i2c_is_ready_dt(&i2c_spec)) { in fxls8974_init()