/Zephyr-latest/tests/boards/frdm_k64f/i2c/src/ |
D | i2c.c | 28 static const struct device *const i2c_bus = DEVICE_DT_GET(DT_NODELABEL(i2c0)); variable 42 i2c_reg_write_byte(i2c_bus, FXOS8700_I2C_ADDR, in fxos8700_fifo_cfg() 48 res = i2c_reg_read_byte(i2c_bus, FXOS8700_I2C_ADDR, in fxos8700_fifo_cfg() 61 res = i2c_reg_write_byte(i2c_bus, in fxos8700_fifo_cfg() 72 res = i2c_reg_write_byte(i2c_bus, in fxos8700_fifo_cfg() 106 res = i2c_transfer(i2c_bus, in test_i2c_fxos8700_sync() 161 res = i2c_transfer_cb(i2c_bus, msgs, 2, FXOS8700_I2C_ADDR, in test_i2c_fxos8700_transfer_cb() 209 res = i2c_transfer_signal(i2c_bus, umsgs, 2, FXOS8700_I2C_ADDR, in test_i2c_fxos8700_transfer_signal()
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_ds1307.c | 38 struct i2c_dt_spec i2c_bus; member 68 err = i2c_burst_write_dt(&config->i2c_bus, DS1307_REG_SECONDS, regs, sizeof(regs)); in ds1307_set_time() 85 err = i2c_burst_read_dt(&config->i2c_bus, DS1307_REG_SECONDS, regs, sizeof(regs)); in ds1307_get_time() 131 if (!i2c_is_ready_dt(&config->i2c_bus)) { in ds1307_init() 137 err = i2c_reg_write_byte_dt(&config->i2c_bus, DS1307_REG_CTRL, 0x00); in ds1307_init() 145 err = i2c_reg_read_byte_dt(&config->i2c_bus, DS1307_REG_SECONDS, ®); in ds1307_init() 151 err = i2c_reg_write_byte_dt(&config->i2c_bus, DS1307_REG_SECONDS, in ds1307_init() 164 .i2c_bus = I2C_DT_SPEC_INST_GET(inst), \
|
D | rtc_rv8263.c | 73 struct i2c_dt_spec i2c_bus; member 113 err = i2c_write_dt(&config->i2c_bus, buf, 2); in rv8263c8_update_disable_timer() 119 return i2c_write_dt(&config->i2c_bus, buf, 2); in rv8263c8_update_disable_timer() 147 err = i2c_write_dt(&config->i2c_bus, buf, 2); in rv8263c8_update_enable_timer() 155 return i2c_write_dt(&config->i2c_bus, buf, 2); in rv8263c8_update_enable_timer() 166 (void)i2c_reg_read_byte_dt(&config->i2c_bus, RV8263C8_REGISTER_CONTROL_2, ®); in rv8263c8_interrupt_worker() 198 i2c_reg_write_byte_dt(&config->i2c_bus, RV8263C8_REGISTER_CONTROL_2, reg); in rv8263c8_interrupt_worker() 226 return i2c_write_dt(&config->i2c_bus, regs, sizeof(regs)); in rv8263c8_time_set() 239 err = i2c_burst_read_dt(&config->i2c_bus, RV8263C8_REGISTER_SECONDS, regs, sizeof(regs)); in rv8263c8_time_get() 288 if (!i2c_is_ready_dt(&config->i2c_bus)) { in rv8263c8_init() [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_nunchuk.c | 22 struct i2c_dt_spec i2c_bus; member 42 ret = i2c_write_dt(&cfg->i2c_bus, &value, sizeof(value)); in nunchuk_read_registers() 48 ret = i2c_read_dt(&cfg->i2c_bus, buffer, NUNCHUK_READ_SIZE); in nunchuk_read_registers() 113 if (!i2c_is_ready_dt(&cfg->i2c_bus)) { in nunchuk_init() 119 ret = i2c_write_dt(&cfg->i2c_bus, init_seq_1, sizeof(init_seq_1)); in nunchuk_init() 126 ret = i2c_write_dt(&cfg->i2c_bus, init_seq_2, sizeof(init_seq_2)); in nunchuk_init() 157 .i2c_bus = I2C_DT_SPEC_INST_GET(inst), \
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_adp5585.c | 109 ret = i2c_reg_update_byte_dt(&parent_cfg->i2c_bus, ADP5585_GPO_OUT_MODE_A + bank, in gpio_adp5585_config() 130 ret = i2c_reg_update_byte_dt(&parent_cfg->i2c_bus, regaddr, in gpio_adp5585_config() 152 ret = i2c_reg_write_byte_dt(&parent_cfg->i2c_bus, in gpio_adp5585_config() 165 ret = i2c_reg_update_byte_dt(&parent_cfg->i2c_bus, in gpio_adp5585_config() 200 ret = i2c_write_read_dt(&parent_cfg->i2c_bus, &gpi_status_reg, 1U, in gpio_adp5585_port_read() 242 ret = i2c_write_dt(&parent_cfg->i2c_bus, gpo_data_out_buf, sizeof(gpo_data_out_buf)); in gpio_adp5585_port_write() 311 ret = i2c_reg_update_byte_dt(&parent_cfg->i2c_bus, in gpio_adp5585_pin_interrupt_configure() 317 &parent_cfg->i2c_bus, ADP5585_GPI_INT_LEVEL_A + bank, in gpio_adp5585_pin_interrupt_configure() 321 &parent_cfg->i2c_bus, ADP5585_GPI_INT_LEVEL_A + bank, in gpio_adp5585_pin_interrupt_configure() 326 ret = i2c_reg_update_byte_dt(&parent_cfg->i2c_bus, in gpio_adp5585_pin_interrupt_configure() [all …]
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_adp5585.c | 27 ret = i2c_write_dt(&config->i2c_bus, pin_config_buf, sizeof(pin_config_buf)); in mfd_adp5585_software_reset() 60 ret = i2c_reg_read_byte_dt(&config->i2c_bus, ADP5585_INT_STATUS, ®_int_status); in mfd_adp5585_work_handler() 64 ret = i2c_reg_write_byte_dt(&config->i2c_bus, ADP5585_INT_STATUS, reg_int_status); in mfd_adp5585_work_handler() 82 if (!i2c_is_ready_dt(&config->i2c_bus)) { in mfd_adp5585_init() 133 .i2c_bus = I2C_DT_SPEC_INST_GET(inst), \
|
/Zephyr-latest/include/zephyr/drivers/mfd/ |
D | adp5585.h | 99 struct i2c_dt_spec i2c_bus; member
|