Home
last modified time | relevance | path

Searched refs:bus_cfg (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx_i2c.c24 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr, value, in bma4xx_i2c_read_data()
33 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr, value, in bma4xx_i2c_write_data()
42 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in bma4xx_i2c_read_reg()
50 return i2c_reg_write_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in bma4xx_i2c_write_reg()
58 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg_addr, mask, value); in bma4xx_i2c_update_reg()
74 if (!device_is_ready(cfg->bus_cfg.i2c.bus)) { in bma4xx_i2c_init()
Dbma4xx_spi.c62 if (!device_is_ready(cfg->bus_cfg.spi.bus)) { in bma4xx_spi_init()
Dbma4xx.h185 const union bma4xx_bus_cfg bus_cfg; member
Dbma4xx.c702 .bus_cfg.spi = SPI_DT_SPEC_INST_GET(inst, 0, 0), .bus_init = &bma_spi_init, \
708 .bus_cfg.i2c = I2C_DT_SPEC_INST_GET(inst), .bus_init = &bma4xx_i2c_init, \
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_i2c.c28 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr | LIS2DH_AUTOINCREMENT_ADDR, value, in lis2dh_i2c_read_data()
37 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr | LIS2DH_AUTOINCREMENT_ADDR, value, in lis2dh_i2c_write_data()
46 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in lis2dh_i2c_read_reg()
54 return i2c_reg_write_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in lis2dh_i2c_write_reg()
62 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg_addr, mask, value); in lis2dh_i2c_update_reg()
78 if (!device_is_ready(cfg->bus_cfg.i2c.bus)) { in lis2dh_i2c_init()
Dlis2dh_spi.c63 if (spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx)) { in lis2dh_raw_read()
99 if (spi_write_dt(&cfg->bus_cfg.spi, &tx)) { in lis2dh_raw_write()
158 if (!spi_is_ready_dt(&cfg->bus_cfg.spi)) { in lis2dh_spi_init()
Dlis2dh.c565 .bus_cfg = { .spi = SPI_DT_SPEC_INST_GET(inst, \
593 .bus_cfg = { .i2c = I2C_DT_SPEC_INST_GET(inst), }, \
Dlis2dh.h218 const union lis2dh_bus_cfg bus_cfg; member
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_i2c.c26 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr, value, len); in lsm6dsl_i2c_read_data()
34 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr, value, len); in lsm6dsl_i2c_write_data()
42 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in lsm6dsl_i2c_read_reg()
50 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg_addr, mask, value); in lsm6dsl_i2c_update_reg()
68 if (!device_is_ready(cfg->bus_cfg.i2c.bus)) { in lsm6dsl_i2c_init()
Dlsm6dsl_spi.c56 if (spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx)) { in lsm6dsl_raw_read()
88 if (spi_write_dt(&cfg->bus_cfg.spi, &tx)) { in lsm6dsl_raw_write()
138 if (!spi_is_ready_dt(&cfg->bus_cfg.spi)) { in lsm6dsl_spi_init()
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607_i2c.c22 return i2c_write_dt(&config->bus_cfg.i2c, &cmd, 1); in ms5607_i2c_raw_cmd()
42 err = i2c_burst_read_dt(&config->bus_cfg.i2c, cmd, valb, sizeof(valb)); in ms5607_i2c_read_prom()
63 err = i2c_burst_read_dt(&config->bus_cfg.i2c, MS5607_CMD_CONV_READ_ADC, valb, sizeof(valb)); in ms5607_i2c_read_adc()
76 if (!device_is_ready(config->bus_cfg.i2c.bus)) { in ms5607_i2c_check()
Dms5607_spi.c33 return spi_write_dt(&config->bus_cfg.spi, &buf_set); in ms5607_spi_raw_cmd()
83 err = spi_transceive_dt(&config->bus_cfg.spi, &tx_buf_set, &rx_buf_set); in ms5607_spi_read_prom()
131 err = spi_transceive_dt(&config->bus_cfg.spi, &tx_buf_set, &rx_buf_set); in ms5607_spi_read_adc()
143 if (!spi_is_ready_dt(&config->bus_cfg.spi)) { in ms5607_spi_check()
Dms5607.h99 } bus_cfg; member
Dms5607.c326 .bus_cfg.spi = SPI_DT_SPEC_INST_GET(inst, \
335 .bus_cfg.i2c = I2C_DT_SPEC_INST_GET(inst), \
/Zephyr-latest/drivers/sensor/nxp/fxas21002/
Dfxas21002.c32 return spi_transceive_dt(&cfg->bus_cfg.spi, &s, &s); in fxas21002_transceive()
51 return spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx); in fxas21002_read_spi()
110 return i2c_burst_read_dt(&config->bus_cfg.i2c, reg, data, length); in fxas21002_read_i2c()
119 return i2c_reg_read_byte_dt(&config->bus_cfg.i2c, reg, byte); in fxas21002_byte_read_i2c()
128 return i2c_reg_write_byte_dt(&config->bus_cfg.i2c, reg, byte); in fxas21002_byte_write_i2c()
138 return i2c_reg_update_byte_dt(&config->bus_cfg.i2c, reg, mask, val); in fxas21002_reg_field_update_i2c()
323 if (!device_is_ready(config->bus_cfg.i2c.bus)) { in fxas21002_init()
332 if (!device_is_ready(config->bus_cfg.spi.bus)) { in fxas21002_init()
449 .bus_cfg = { .i2c = I2C_DT_SPEC_INST_GET(inst) }, \
454 .bus_cfg = {.spi = SPI_DT_SPEC_INST_GET(inst, \
Dfxas21002.h95 const union fxas21002_bus_cfg bus_cfg; member
/Zephyr-latest/drivers/sensor/nxp/p3t1755/
Dp3t1755.c39 return i2c_burst_read_dt(&config->bus_cfg.i2c, reg, value, len); in p3t1755_i2c_read_reg()
46 return i2c_burst_write_dt(&config->bus_cfg.i2c, reg, byte, len); in p3t1755_i2c_write_reg()
134 if (!i2c_is_ready_dt(&config->bus_cfg.i2c)) { in p3t1755_init()
164 .bus_cfg = {.i2c = I2C_DT_SPEC_INST_GET(inst)}, \
175 .bus_cfg = {.i3c = &p3t1755_data_##inst.i3c_dev}, \
Dp3t1755.h51 const union p3t1755_bus_cfg bus_cfg; member
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.c30 return spi_transceive_dt(&cfg->bus_cfg.spi, &s, &s); in fxls8974_transceive()
49 return spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx); in fxls8974_read_spi()
106 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg, data, length); in fxls8974_read_i2c()
115 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg, byte); in fxls8974_byte_read_i2c()
124 return i2c_reg_write_byte_dt(&cfg->bus_cfg.i2c, reg, byte); in fxls8974_byte_write_i2c()
134 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg, mask, val); in fxls8974_reg_field_update_i2c()
449 const struct i2c_dt_spec i2c_spec = cfg->bus_cfg.i2c; in fxls8974_init()
460 const struct spi_dt_spec spi_spec = cfg->bus_cfg.spi; in fxls8974_init()
593 .bus_cfg = { .i2c = I2C_DT_SPEC_INST_GET(n) }, \
599 .bus_cfg = { .spi = SPI_DT_SPEC_INST_GET(n, \
Dfxls8974.h127 const union fxls8974_bus_cfg bus_cfg; member
/Zephyr-latest/drivers/sensor/wsen/wsen_hids_2525020210002/
Dwsen_hids_2525020210002.h38 } bus_cfg; member
Dwsen_hids_2525020210002.c202 if (!i2c_is_ready_dt(&config->bus_cfg.i2c)) { in hids_2525020210002_init()
206 data->sensor_interface.handle = (void *)&config->bus_cfg.i2c; in hids_2525020210002_init()
239 .bus_cfg = {.i2c = I2C_DT_SPEC_INST_GET(inst)}, \
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700.c33 return spi_transceive_dt(&cfg->bus_cfg.spi, &s, &s); in fxos8700_transceive()
52 return spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx); in fxos8700_read_spi()
109 return i2c_burst_read_dt(&config->bus_cfg.i2c, reg, data, length); in fxos8700_read_i2c()
118 return i2c_reg_read_byte_dt(&config->bus_cfg.i2c, reg, byte); in fxos8700_byte_read_i2c()
127 return i2c_reg_write_byte_dt(&config->bus_cfg.i2c, reg, byte); in fxos8700_byte_write_i2c()
137 return i2c_reg_update_byte_dt(&config->bus_cfg.i2c, reg, mask, val); in fxos8700_reg_field_update_i2c()
518 if (!device_is_ready(config->bus_cfg.i2c.bus)) { in fxos8700_init()
527 if (!device_is_ready(config->bus_cfg.spi.bus)) { in fxos8700_init()
739 .bus_cfg = { .i2c = I2C_DT_SPEC_INST_GET(n) }, \
746 .bus_cfg = { .spi = SPI_DT_SPEC_INST_GET(n, \
Dfxos8700.h164 const union fxos8700_bus_cfg bus_cfg; member
/Zephyr-latest/drivers/i2c/
Di2c_npcx_controller.c383 const struct npcx_i2c_timing_cfg bus_cfg = in i2c_ctrl_config_bus_freq() local
395 bus_cfg.k1/2 & 0x7f); in i2c_ctrl_config_bus_freq()
397 bus_cfg.k1/2 >> 7); in i2c_ctrl_config_bus_freq()
399 bus_cfg.HLDT); in i2c_ctrl_config_bus_freq()
404 inst->SMBSCLLT = bus_cfg.k1/2; in i2c_ctrl_config_bus_freq()
405 inst->SMBSCLHT = bus_cfg.k2/2; in i2c_ctrl_config_bus_freq()
407 bus_cfg.HLDT); in i2c_ctrl_config_bus_freq()

12