/Zephyr-latest/drivers/sensor/bosch/bma4xx/ |
D | bma4xx_i2c.c | 24 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()
|
D | bma4xx_spi.c | 62 if (!device_is_ready(cfg->bus_cfg.spi.bus)) { in bma4xx_spi_init()
|
D | bma4xx.h | 185 const union bma4xx_bus_cfg bus_cfg; member
|
D | bma4xx.c | 702 .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/ |
D | lis2dh_i2c.c | 28 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()
|
D | lis2dh_spi.c | 63 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()
|
D | lis2dh.c | 565 .bus_cfg = { .spi = SPI_DT_SPEC_INST_GET(inst, \ 593 .bus_cfg = { .i2c = I2C_DT_SPEC_INST_GET(inst), }, \
|
D | lis2dh.h | 218 const union lis2dh_bus_cfg bus_cfg; member
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl_i2c.c | 26 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()
|
D | lsm6dsl_spi.c | 56 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/ |
D | ms5607_i2c.c | 22 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()
|
D | ms5607_spi.c | 33 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()
|
D | ms5607.h | 99 } bus_cfg; member
|
D | ms5607.c | 326 .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/ |
D | fxas21002.c | 32 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, \
|
D | fxas21002.h | 95 const union fxas21002_bus_cfg bus_cfg; member
|
/Zephyr-latest/drivers/sensor/nxp/p3t1755/ |
D | p3t1755.c | 39 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}, \
|
D | p3t1755.h | 51 const union p3t1755_bus_cfg bus_cfg; member
|
/Zephyr-latest/drivers/sensor/nxp/fxls8974/ |
D | fxls8974.c | 30 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, \
|
D | fxls8974.h | 127 const union fxls8974_bus_cfg bus_cfg; member
|
/Zephyr-latest/drivers/sensor/wsen/wsen_hids_2525020210002/ |
D | wsen_hids_2525020210002.h | 38 } bus_cfg; member
|
D | wsen_hids_2525020210002.c | 202 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/ |
D | fxos8700.c | 33 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, \
|
D | fxos8700.h | 164 const union fxos8700_bus_cfg bus_cfg; member
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_npcx_controller.c | 383 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()
|