/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_i2c.c | 12 static int mmc56x3_bus_check_i2c(const union mmc56x3_bus *bus) in mmc56x3_bus_check_i2c() argument 14 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in mmc56x3_bus_check_i2c() 17 static int mmc56x3_reg_read_i2c(const union mmc56x3_bus *bus, uint8_t reg, uint8_t *buf, int size) in mmc56x3_reg_read_i2c() argument 19 return i2c_burst_read_dt(&bus->i2c, reg, buf, size); in mmc56x3_reg_read_i2c() 22 static int mmc56x3_reg_write_i2c(const union mmc56x3_bus *bus, uint8_t reg, uint8_t val) in mmc56x3_reg_write_i2c() argument 24 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in mmc56x3_reg_write_i2c() 27 static int mmc56x3_raw_read_i2c(const union mmc56x3_bus *bus, uint8_t *buf, size_t size) in mmc56x3_raw_read_i2c() argument 29 return i2c_read_dt(&bus->i2c, buf, size); in mmc56x3_raw_read_i2c() 32 static int mmc56x3_raw_write_i2c(const union mmc56x3_bus *bus, uint8_t *buf, size_t size) in mmc56x3_raw_write_i2c() argument 34 return i2c_write_dt(&bus->i2c, buf, size); in mmc56x3_raw_write_i2c()
|
/Zephyr-latest/drivers/misc/grove_lcd_rgb/ |
D | grove_lcd_rgb.c | 28 struct i2c_dt_spec bus; member 90 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_print() 110 i2c_write_dt(&config->bus, data, 2); in glcd_cursor_pos_set() 119 i2c_write_dt(&config->bus, clear, sizeof(clear)); in glcd_clear() 134 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_display_state_set() 158 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_input_state_set() 187 rgb_reg_set(config->bus.bus, REGISTER_R, r); in glcd_color_set() 188 rgb_reg_set(config->bus.bus, REGISTER_G, g); in glcd_color_set() 189 rgb_reg_set(config->bus.bus, REGISTER_B, b); in glcd_color_set() 202 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_function_set() [all …]
|
/Zephyr-latest/samples/subsys/usb/testusb/ |
D | README.rst | 47 $ sudo ./testusb -D /dev/bus/usb/009/016 48 /dev/bus/usb/009/016 test 0, 0.000007 secs 49 /dev/bus/usb/009/016 test 9, 4.994475 secs 50 /dev/bus/usb/009/016 test 10, 11.990054 secs 61 $ sudo sh -c "echo 0x2fe3 0x0009 0 0x0525 0xa4a0 > /sys/bus/usb/drivers/usbtest/new_id" 68 $ sudo ./testusb -v 512 -D /dev/bus/usb/009/016 69 /dev/bus/usb/009/017 test 0, 0.000008 secs 70 /dev/bus/usb/009/017 test 1, 2.000001 secs 71 /dev/bus/usb/009/017 test 2, 2.003058 secs 72 /dev/bus/usb/009/017 test 3, 1.054082 secs [all …]
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_npcm.c | 139 uint16_t bus; member 143 {.clock_id = NPCM_CLOCK_PWM_I, .bus = NPCM_CLOCK_BUS_LFCLK}, 144 {.clock_id = NPCM_CLOCK_PWM_J, .bus = NPCM_CLOCK_BUS_LFCLK}, 145 {.clock_id = NPCM_CLOCK_I3CI, .bus = NPCM_CLOCK_BUS_APB3}, 146 {.clock_id = NPCM_CLOCK_UART3, .bus = NPCM_CLOCK_BUS_APB2}, 147 {.clock_id = NPCM_CLOCK_UART2, .bus = NPCM_CLOCK_BUS_APB2}, 149 {.clock_id = NPCM_CLOCK_FIU, .bus = NPCM_CLOCK_BUS_FIU}, 150 {.clock_id = NPCM_CLOCK_USB20, .bus = NPCM_CLOCK_BUS_USB20_CLK}, 151 {.clock_id = NPCM_CLOCK_UART, .bus = NPCM_CLOCK_BUS_APB2}, 153 {.clock_id = NPCM_CLOCK_PWM_A, .bus = NPCM_CLOCK_BUS_LFCLK}, [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi270/ |
D | bmi270_i2c.c | 13 static int bmi270_bus_check_i2c(const union bmi270_bus *bus) in bmi270_bus_check_i2c() argument 15 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in bmi270_bus_check_i2c() 18 static int bmi270_reg_read_i2c(const union bmi270_bus *bus, in bmi270_reg_read_i2c() argument 21 return i2c_burst_read_dt(&bus->i2c, start, data, len); in bmi270_reg_read_i2c() 24 static int bmi270_reg_write_i2c(const union bmi270_bus *bus, uint8_t start, in bmi270_reg_write_i2c() argument 27 return i2c_burst_write_dt(&bus->i2c, start, data, len); in bmi270_reg_write_i2c() 30 static int bmi270_bus_init_i2c(const union bmi270_bus *bus) in bmi270_bus_init_i2c() argument
|
D | bmi270_spi.c | 17 static int bmi270_bus_check_spi(const union bmi270_bus *bus) in bmi270_bus_check_spi() argument 19 return spi_is_ready_dt(&bus->spi) ? 0 : -ENODEV; in bmi270_bus_check_spi() 22 static int bmi270_reg_read_spi(const union bmi270_bus *bus, in bmi270_reg_read_spi() argument 50 ret = spi_transceive_dt(&bus->spi, &tx, &rx); in bmi270_reg_read_spi() 60 static int bmi270_reg_write_spi(const union bmi270_bus *bus, uint8_t start, in bmi270_reg_write_spi() argument 76 ret = spi_write_dt(&bus->spi, &tx); in bmi270_reg_write_spi() 86 static int bmi270_bus_init_spi(const union bmi270_bus *bus) in bmi270_bus_init_spi() argument 92 return bmi270_reg_read_spi(bus, BMI270_REG_CHIP_ID, &tmp, 1); in bmi270_bus_init_spi()
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_i2c.c | 16 static int bme280_bus_check_i2c(const union bme280_bus *bus) in bme280_bus_check_i2c() argument 18 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in bme280_bus_check_i2c() 21 static int bme280_reg_read_i2c(const union bme280_bus *bus, in bme280_reg_read_i2c() argument 24 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in bme280_reg_read_i2c() 27 static int bme280_reg_write_i2c(const union bme280_bus *bus, in bme280_reg_write_i2c() argument 30 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in bme280_reg_write_i2c()
|
/Zephyr-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670_i2c.c | 15 static int icm42670_bus_check_i2c(const union icm42670_bus *bus) in icm42670_bus_check_i2c() argument 17 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in icm42670_bus_check_i2c() 20 static int icm42670_reg_read_i2c(const union icm42670_bus *bus, uint8_t reg, uint8_t *buf, in icm42670_reg_read_i2c() argument 23 return i2c_burst_read_dt(&bus->i2c, reg, buf, size); in icm42670_reg_read_i2c() 26 static int icm42670_reg_write_i2c(const union icm42670_bus *bus, uint8_t reg, uint8_t *buf, in icm42670_reg_write_i2c() argument 29 return i2c_burst_write_dt(&bus->i2c, reg, buf, size); in icm42670_reg_write_i2c()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_spi.c | 11 static inline int spi_write_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t data) in spi_write_register() argument 29 return spi_write_dt(bus, &tx); in spi_write_register() 32 static inline int spi_read_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data, in spi_read_register() argument 63 return spi_transceive_dt(bus, &tx, &rx); in spi_read_register() 66 int icm42688_spi_read(const struct spi_dt_spec *bus, uint16_t reg, uint8_t *data, size_t len) in icm42688_spi_read() argument 71 res = spi_read_register(bus, address, data, len); in icm42688_spi_read() 76 int icm42688_spi_update_register(const struct spi_dt_spec *bus, uint16_t reg, uint8_t mask, in icm42688_spi_update_register() argument 80 int res = icm42688_spi_read(bus, reg, &temp, 1); in icm42688_spi_update_register() 89 return icm42688_spi_single_write(bus, reg, temp); in icm42688_spi_update_register() 92 int icm42688_spi_single_write(const struct spi_dt_spec *bus, uint16_t reg, uint8_t data) in icm42688_spi_single_write() argument [all …]
|
/Zephyr-latest/drivers/sensor/ist8310/ |
D | ist8310_i2c.c | 14 static int ist8310_bus_check_i2c(const union ist8310_bus *bus) in ist8310_bus_check_i2c() argument 16 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in ist8310_bus_check_i2c() 19 static int ist8310_reg_read_i2c(const union ist8310_bus *bus, uint8_t start, uint8_t *buf, int size) in ist8310_reg_read_i2c() argument 21 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in ist8310_reg_read_i2c() 24 static int ist8310_reg_write_i2c(const union ist8310_bus *bus, uint8_t reg, uint8_t val) in ist8310_reg_write_i2c() argument 26 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in ist8310_reg_write_i2c()
|
/Zephyr-latest/drivers/sensor/bosch/bmm150/ |
D | bmm150_i2c.c | 17 static int bmm150_bus_check_i2c(const union bmm150_bus *bus) in bmm150_bus_check_i2c() argument 19 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmm150_bus_check_i2c() 22 static int bmm150_reg_read_i2c(const union bmm150_bus *bus, in bmm150_reg_read_i2c() argument 25 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in bmm150_reg_read_i2c() 28 static int bmm150_reg_write_i2c(const union bmm150_bus *bus, in bmm150_reg_write_i2c() argument 31 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in bmm150_reg_write_i2c()
|
/Zephyr-latest/drivers/sensor/bosch/bmp388/ |
D | bmp388_i2c.c | 16 static int bmp388_bus_check_i2c(const union bmp388_bus *bus) in bmp388_bus_check_i2c() argument 18 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmp388_bus_check_i2c() 21 static int bmp388_reg_read_i2c(const union bmp388_bus *bus, in bmp388_reg_read_i2c() argument 24 return i2c_burst_read_dt(&bus->i2c, start, buf, size); in bmp388_reg_read_i2c() 27 static int bmp388_reg_write_i2c(const union bmp388_bus *bus, in bmp388_reg_write_i2c() argument 30 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in bmp388_reg_write_i2c()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_npm6001.c | 39 struct i2c_dt_spec bus; member 55 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_disable() 84 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 91 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 99 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 106 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 113 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 120 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 128 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() 135 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout() [all …]
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ps8xxx.c | 60 const struct i2c_dt_spec bus; member 76 ret = tcpci_write_reg16(&cfg->bus, TCPC_REG_ALERT_MASK, mask); in tcpci_init_alert_mask() 121 ret = tcpci_tcpm_get_cc(&cfg->bus, cc1, cc2); in ps8xxx_tcpc_get_cc() 139 return tcpci_update_reg8(&cfg->bus, TCPC_REG_ROLE_CTRL, TCPC_REG_ROLE_CTRL_RP_MASK, in ps8xxx_tcpc_select_rp_value() 149 ret = tcpci_read_reg8(&cfg->bus, TCPC_REG_ROLE_CTRL, ®_value); in ps8xxx_tcpc_get_rp_value() 166 return tcpci_update_reg8(&cfg->bus, TCPC_REG_ROLE_CTRL, in ps8xxx_tcpc_set_cc() 189 return tcpci_update_reg8(&cfg->bus, TCPC_REG_POWER_CTRL, in ps8xxx_tcpc_vconn_discharge() 205 ret = tcpci_update_reg8(&cfg->bus, TCPC_REG_POWER_CTRL, TCPC_REG_POWER_CTRL_VCONN_EN, in ps8xxx_tcpc_set_vconn() 224 return tcpci_update_reg8(&cfg->bus, TCPC_REG_MSG_HDR_INFO, TCPC_REG_MSG_HDR_INFO_ROLES_MASK, in ps8xxx_tcpc_set_roles() 256 ret = i2c_transfer(cfg->bus.bus, buf, 2, cfg->bus.addr); in ps8xxx_tcpc_get_rx_pending_msg() [all …]
|
/Zephyr-latest/subsys/emul/ |
D | emul.c | 50 emul->bus.i2c->target = emul; in emul_init_for_bus() 53 emul->bus.espi->target = emul; in emul_init_for_bus() 56 emul->bus.spi->target = emul; in emul_init_for_bus() 59 emul->bus.mspi->target = emul; in emul_init_for_bus() 62 emul->bus.uart->target = emul; in emul_init_for_bus() 77 rc = i2c_emul_register(dev, emul->bus.i2c); in emul_init_for_bus() 82 rc = espi_emul_register(dev, emul->bus.espi); in emul_init_for_bus() 87 rc = spi_emul_register(dev, emul->bus.spi); in emul_init_for_bus() 92 rc = mspi_emul_register(dev, emul->bus.mspi); in emul_init_for_bus() 97 rc = uart_emul_register(dev, emul->bus.uart); in emul_init_for_bus()
|
/Zephyr-latest/drivers/sensor/ti/ina23x/ |
D | ina23x_common.c | 11 int ina23x_reg_read_24(const struct i2c_dt_spec *bus, uint8_t reg, uint32_t *val) in ina23x_reg_read_24() argument 16 ret = i2c_burst_read_dt(bus, reg, data, sizeof(data)); in ina23x_reg_read_24() 26 int ina23x_reg_read_16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t *val) in ina23x_reg_read_16() argument 31 ret = i2c_burst_read_dt(bus, reg, data, sizeof(data)); in ina23x_reg_read_16() 41 int ina23x_reg_write(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t val) in ina23x_reg_write() argument 48 return i2c_write_dt(bus, tx_buf, sizeof(tx_buf)); in ina23x_reg_write()
|
D | ina230.c | 81 ret = ina23x_reg_read_16(&config->bus, INA230_REG_BUS_VOLT, &data->bus_voltage); in ina230_sample_fetch() 89 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CURRENT, &data->current); in ina230_sample_fetch() 97 ret = ina23x_reg_read_16(&config->bus, INA230_REG_POWER, &data->power); in ina230_sample_fetch() 115 return ina23x_reg_write(&config->bus, INA230_REG_CONFIG, data); in ina230_attr_set() 117 return ina23x_reg_write(&config->bus, INA230_REG_CALIB, data); in ina230_attr_set() 119 return ina23x_reg_write(&config->bus, INA230_REG_MASK, data); in ina230_attr_set() 121 return ina23x_reg_write(&config->bus, INA230_REG_ALERT, data); in ina230_attr_set() 137 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CONFIG, &data); in ina230_attr_get() 143 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CALIB, &data); in ina230_attr_get() 149 ret = ina23x_reg_read_16(&config->bus, INA230_REG_MASK, &data); in ina230_attr_get() [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | tcpci_priv.h | 52 int tcpci_read_reg8(const struct i2c_dt_spec *bus, uint8_t reg, uint8_t *value); 62 int tcpci_write_reg8(const struct i2c_dt_spec *bus, uint8_t reg, uint8_t value); 74 int tcpci_update_reg8(const struct i2c_dt_spec *bus, uint8_t reg, uint8_t mask, uint8_t value); 84 int tcpci_read_reg16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t *value); 94 int tcpci_write_reg16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t value); 116 int tcpci_tcpm_get_cc(const struct i2c_dt_spec *bus, enum tc_cc_voltage_state *cc1,
|
/Zephyr-latest/drivers/sensor/ti/ina226/ |
D | ina226.c | 50 const struct i2c_dt_spec bus; member 71 int ina226_reg_read_16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t *val) in ina226_reg_read_16() argument 76 ret = i2c_burst_read_dt(bus, reg, data, sizeof(data)); in ina226_reg_read_16() 86 int ina226_reg_write(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t val) in ina226_reg_write() argument 93 return i2c_write_dt(bus, tx_buf, sizeof(tx_buf)); in ina226_reg_write() 140 ret = ina226_reg_read_16(&config->bus, INA226_REG_BUS_VOLT, &data->bus_voltage); in ina226_read_data() 148 ret = ina226_reg_read_16(&config->bus, INA226_REG_CURRENT, &data->current); in ina226_read_data() 156 ret = ina226_reg_read_16(&config->bus, INA226_REG_POWER, &data->power); in ina226_read_data() 165 ret = ina226_reg_read_16(&config->bus, INA226_REG_SHUNT_VOLT, &data->shunt_voltage); in ina226_read_data() 202 return ina226_reg_write(&config->bus, INA226_REG_CONFIG, data); in ina226_attr_set() [all …]
|
/Zephyr-latest/drivers/auxdisplay/ |
D | auxdisplay_jhd1313.c | 75 struct i2c_dt_spec bus; member 102 rc = i2c_write_dt(&config->bus, buf, sizeof(buf)); in auxdisplay_jhd1313_print() 128 return i2c_write_dt(&config->bus, data, 2); in auxdisplay_jhd1313_cursor_position_set() 137 rc = i2c_write_dt(&config->bus, clear, sizeof(clear)); in auxdisplay_jhd1313_clear() 164 rc = i2c_write_dt(&config->bus, buf, sizeof(buf)); in auxdisplay_jhd1313_update_display_state() 199 i2c_write_dt(&config->bus, buf, sizeof(buf)); in auxdisplay_jhd1313_input_state_set() 215 auxdisplay_jhd1313_reg_set(config->bus.bus, JHD1313_LED_REG_R, colour_define[colour][0]); in auxdisplay_jhd1313_backlight_set() 216 auxdisplay_jhd1313_reg_set(config->bus.bus, JHD1313_LED_REG_G, colour_define[colour][1]); in auxdisplay_jhd1313_backlight_set() 217 auxdisplay_jhd1313_reg_set(config->bus.bus, JHD1313_LED_REG_B, colour_define[colour][2]); in auxdisplay_jhd1313_backlight_set() 240 i2c_write_dt(&config->bus, buf, sizeof(buf)); in auxdisplay_jhd1313_function_set() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme680/ |
D | bme680_i2c.c | 17 static int bme680_bus_check_i2c(const union bme680_bus *bus) in bme680_bus_check_i2c() argument 19 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in bme680_bus_check_i2c() 27 return i2c_burst_read_dt(&config->bus.i2c, start, buf, size); in bme680_reg_read_i2c() 35 return i2c_reg_write_byte_dt(&config->bus.i2c, reg, val); in bme680_reg_write_i2c()
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_ice40_spi.c | 33 struct spi_dt_spec bus; in fpga_ice40_load() local 35 memcpy(&bus, &config->bus, sizeof(bus)); in fpga_ice40_load() 41 bus.config.cs.gpio.port = NULL; in fpga_ice40_load() 59 gpio_pin_configure_dt(&config->bus.config.cs.gpio, GPIO_OUTPUT_HIGH); in fpga_ice40_load() 70 ret = gpio_pin_configure_dt(&config->bus.config.cs.gpio, GPIO_OUTPUT_LOW); in fpga_ice40_load() 97 ret = gpio_pin_configure_dt(&config->bus.config.cs.gpio, GPIO_OUTPUT_HIGH); in fpga_ice40_load() 106 ret = spi_write_dt(&bus, &tx_bufs); in fpga_ice40_load() 113 ret = gpio_pin_configure_dt(&config->bus.config.cs.gpio, GPIO_OUTPUT_LOW); in fpga_ice40_load() 122 ret = spi_write_dt(&bus, &tx_bufs); in fpga_ice40_load() 129 ret = gpio_pin_configure_dt(&config->bus.config.cs.gpio, GPIO_OUTPUT_HIGH); in fpga_ice40_load() [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_pinnacle.c | 155 bool (*is_ready)(const struct pinnacle_bus *bus); 156 int (*write)(const struct pinnacle_bus *bus, uint8_t address, uint8_t value); 157 int (*seq_write)(const struct pinnacle_bus *bus, uint8_t *address, uint8_t *value, 159 int (*read)(const struct pinnacle_bus *bus, uint8_t address, uint8_t *value); 160 int (*seq_read)(const struct pinnacle_bus *bus, uint8_t address, uint8_t *data, 172 const struct pinnacle_bus bus; member 219 return config->bus.is_ready(&config->bus); in pinnacle_bus_is_ready() 226 return config->bus.write(&config->bus, address, value); in pinnacle_write() 233 return config->bus.seq_write(&config->bus, address, value, count); in pinnacle_seq_write() 239 return config->bus.read(&config->bus, address, value); in pinnacle_read() [all …]
|
D | input_stmpe811.c | 116 struct i2c_dt_spec bus; member 143 int ret = i2c_reg_write_byte_dt(&config->bus, STMPE811_SYS_CTRL1_REG, in stmpe811_reset() 152 ret = i2c_reg_write_byte_dt(&config->bus, STMPE811_SYS_CTRL1_REG, in stmpe811_reset() 167 return i2c_reg_update_byte_dt(&config->bus, STMPE811_IO_AF_REG, io_pin, 0); in stmpe811_io_enable_af() 223 err = i2c_reg_update_byte_dt(&config->bus, STMPE811_SYS_CTRL2_REG, in stmpe811_ts_init() 231 err = i2c_reg_write_byte_dt(&config->bus, STMPE811_ADC_CTRL1_REG, STMPE811_ADC_CTRL1_CONF); in stmpe811_ts_init() 237 err = i2c_reg_write_byte_dt(&config->bus, STMPE811_ADC_CTRL2_REG, STMPE811_ADC_CLOCK_SPEED); in stmpe811_ts_init() 243 err = i2c_reg_write_byte_dt(&config->bus, STMPE811_TSC_CFG_REG, in stmpe811_ts_init() 250 err = i2c_reg_write_byte_dt(&config->bus, STMPE811_FIFO_TH_REG, in stmpe811_ts_init() 257 err = i2c_reg_write_byte_dt(&config->bus, STMPE811_FIFO_STA_REG, STMPE811_FIFO_STA_CLEAR); in stmpe811_ts_init() [all …]
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_mpm54304.c | 27 struct i2c_dt_spec bus; member 39 return i2c_reg_update_byte_dt(&config->bus, MPM54304_REG_EN, config->enable_mask, in regulator_mpm54304_enable() 47 return i2c_reg_update_byte_dt(&config->bus, MPM54304_REG_EN, config->enable_mask, 0x00); in regulator_mpm54304_disable() 55 if (!i2c_is_ready_dt(&config->bus)) { in regulator_mpm54304_init() 56 LOG_ERR("I2C bus %s not ready", config->bus.bus->name); in regulator_mpm54304_init() 61 (void)i2c_reg_read_byte_dt(&config->bus, MPM54304_REG_VENDOR_ID, &value); in regulator_mpm54304_init() 75 .bus = I2C_DT_SPEC_GET(DT_PARENT(node_id)), \
|