Home
last modified time | relevance | path

Searched refs:i2c_addr (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is_shub.c57 static int lsm6dso16is_lis2mdl_init(const struct device *dev, uint8_t i2c_addr) in lsm6dso16is_lis2mdl_init() argument
66 lsm6dso16is_shub_write_target_reg(dev, i2c_addr, in lsm6dso16is_lis2mdl_init()
74 lsm6dso16is_shub_write_target_reg(dev, i2c_addr, in lsm6dso16is_lis2mdl_init()
83 uint8_t i2c_addr, uint16_t freq) in lsm6dso16is_lis2mdl_odr_set() argument
99 lsm6dso16is_shub_write_target_reg(dev, i2c_addr, in lsm6dso16is_lis2mdl_odr_set()
106 static int lsm6dso16is_lis2mdl_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dso16is_lis2mdl_conf() argument
113 return lsm6dso16is_lis2mdl_odr_set(dev, i2c_addr, val->val1); in lsm6dso16is_lis2mdl_conf()
138 uint8_t i2c_addr) in lsm6dso16is_hts221_read_conv_data() argument
147 if (lsm6dso16is_shub_read_target_reg(dev, i2c_addr, in lsm6dso16is_hts221_read_conv_data()
164 static int lsm6dso16is_hts221_init(const struct device *dev, uint8_t i2c_addr) in lsm6dso16is_hts221_init() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_shub.c57 static int lsm6dsv16x_lis2mdl_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsv16x_lis2mdl_init() argument
66 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lis2mdl_init()
74 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lis2mdl_init()
83 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_lis2mdl_odr_set() argument
99 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lis2mdl_odr_set()
106 static int lsm6dsv16x_lis2mdl_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dsv16x_lis2mdl_conf() argument
113 return lsm6dsv16x_lis2mdl_odr_set(dev, i2c_addr, val->val1); in lsm6dsv16x_lis2mdl_conf()
138 uint8_t i2c_addr) in lsm6dsv16x_hts221_read_conv_data() argument
147 if (lsm6dsv16x_shub_read_target_reg(dev, i2c_addr, in lsm6dsv16x_hts221_read_conv_data()
164 static int lsm6dsv16x_hts221_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsv16x_hts221_init() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso_shub.c56 static int lsm6dso_lis2mdl_init(const struct device *dev, uint8_t i2c_addr) in lsm6dso_lis2mdl_init() argument
65 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lis2mdl_init()
73 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lis2mdl_init()
82 uint8_t i2c_addr, uint16_t freq) in lsm6dso_lis2mdl_odr_set() argument
98 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lis2mdl_odr_set()
105 static int lsm6dso_lis2mdl_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dso_lis2mdl_conf() argument
112 return lsm6dso_lis2mdl_odr_set(dev, i2c_addr, val->val1); in lsm6dso_lis2mdl_conf()
137 uint8_t i2c_addr) in lsm6dso_hts221_read_conv_data() argument
146 if (lsm6dso_shub_read_target_reg(dev, i2c_addr, in lsm6dso_hts221_read_conv_data()
163 static int lsm6dso_hts221_init(const struct device *dev, uint8_t i2c_addr) in lsm6dso_hts221_init() argument
[all …]
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx_shub.c72 static int iis2iclx_lis2mdl_init(const struct device *dev, uint8_t i2c_addr) in iis2iclx_lis2mdl_init() argument
81 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lis2mdl_init()
89 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lis2mdl_init()
98 uint8_t i2c_addr, uint16_t freq) in iis2iclx_lis2mdl_odr_set() argument
114 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lis2mdl_odr_set()
121 static int iis2iclx_lis2mdl_conf(const struct device *dev, uint8_t i2c_addr, in iis2iclx_lis2mdl_conf() argument
128 return iis2iclx_lis2mdl_odr_set(dev, i2c_addr, val->val1); in iis2iclx_lis2mdl_conf()
153 uint8_t i2c_addr) in hts221_read_conv_data() argument
162 if (iis2iclx_shub_read_slave_reg(dev, i2c_addr, in hts221_read_conv_data()
179 static int iis2iclx_hts221_init(const struct device *dev, uint8_t i2c_addr) in iis2iclx_hts221_init() argument
[all …]
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx_shub.c73 static int ism330dhcx_lis2mdl_init(const struct device *dev, uint8_t i2c_addr) in ism330dhcx_lis2mdl_init() argument
82 ism330dhcx_shub_write_slave_reg(dev, i2c_addr, LIS2MDL_CFG_REG_A, mag_cfg, 1); in ism330dhcx_lis2mdl_init()
89 ism330dhcx_shub_write_slave_reg(dev, i2c_addr, LIS2MDL_CFG_REG_A, mag_cfg, 2); in ism330dhcx_lis2mdl_init()
96 static int ism330dhcx_lis2mdl_odr_set(const struct device *dev, uint8_t i2c_addr, uint16_t freq) in ism330dhcx_lis2mdl_odr_set() argument
112 ism330dhcx_shub_write_slave_reg(dev, i2c_addr, LIS2MDL_CFG_REG_A, &cfg, 1); in ism330dhcx_lis2mdl_odr_set()
118 static int ism330dhcx_lis2mdl_conf(const struct device *dev, uint8_t i2c_addr, in ism330dhcx_lis2mdl_conf() argument
124 return ism330dhcx_lis2mdl_odr_set(dev, i2c_addr, val->val1); in ism330dhcx_lis2mdl_conf()
148 static int ism330dhcx_hts221_read_conv_data(const struct device *dev, uint8_t i2c_addr) in ism330dhcx_hts221_read_conv_data() argument
157 if (ism330dhcx_shub_read_slave_reg(dev, i2c_addr, (HTS221_REG_CONV_START + i) in ism330dhcx_hts221_read_conv_data()
173 static int ism330dhcx_hts221_init(const struct device *dev, uint8_t i2c_addr) in ism330dhcx_hts221_init() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_shub.c56 static int lsm6dsl_lis2mdl_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsl_lis2mdl_init() argument
65 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lis2mdl_init()
73 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lis2mdl_init()
136 static int lsm6dsl_lis3mdl_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsl_lis3mdl_init() argument
145 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lis3mdl_init()
152 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lis3mdl_init()
156 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lis3mdl_init()
175 static int lsm6dsl_lps22hb_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsl_lps22hb_init() argument
181 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lps22hb_init()
188 lsm6dsl_shub_write_slave_reg(dev, i2c_addr, in lsm6dsl_lps22hb_init()
[all …]
/Zephyr-latest/drivers/eeprom/
Deeprom_mb85rcxx.c105 uint16_t i2c_addr; in mb85rcxx_read() local
117 i2c_addr = mb85rcxx_translate_address(dev, offset, addr); in mb85rcxx_read()
120 ret = i2c_write_read(cfg->i2c.bus, i2c_addr, addr, DIV_ROUND_UP(cfg->addr_width, 8), in mb85rcxx_read()
137 static int mb85rcxx_i2c_write(const struct device *dev, uint16_t i2c_addr, uint8_t *addr, in mb85rcxx_i2c_write() argument
151 return i2c_transfer(cfg->i2c.bus, &msgs[0], 2, i2c_addr); in mb85rcxx_i2c_write()
159 uint16_t i2c_addr; in mb85rcxx_write() local
182 i2c_addr = mb85rcxx_translate_address(dev, offset, addr); in mb85rcxx_write()
185 ret = mb85rcxx_i2c_write(dev, i2c_addr, addr, buf, len); in mb85rcxx_write()
/Zephyr-latest/drivers/i2c/
Di2c_nrfx_twim_common.c74 size_t buf_len, uint16_t i2c_addr) in i2c_nrfx_twim_msg_transfer() argument
78 .address = i2c_addr, in i2c_nrfx_twim_msg_transfer()
Di2c_nrfx_twi_common.c72 uint16_t i2c_addr, bool more_msgs) in i2c_nrfx_twi_msg_transfer() argument
81 .address = i2c_addr, in i2c_nrfx_twi_msg_transfer()
Di2c_nrfx_twi_common.h58 uint16_t i2c_addr, bool more_msgs);
Di2c_nrfx_twim_common.h49 size_t buf_len, uint16_t i2c_addr);
Di2c_max32_rtio.c106 uint8_t *buf, size_t buf_len, uint16_t i2c_addr) in max32_msg_start() argument
116 req->addr = i2c_addr; in max32_msg_start()
132 target_rw = (i2c_addr << 1) | 0x1; in max32_msg_start()
138 target_rw = (i2c_addr << 1) & ~0x1; in max32_msg_start()
Di2c_nrfx_twi_rtio.c38 uint8_t *buf, size_t buf_len, uint16_t i2c_addr) in i2c_nrfx_twi_rtio_msg_start() argument
51 ret = i2c_nrfx_twi_msg_transfer(dev, flags, buf, buf_len, i2c_addr, false); in i2c_nrfx_twi_rtio_msg_start()
Di2c_mchp_xec_v2.c107 uint8_t i2c_addr; member
479 data->i2c_addr = addr8; in gen_start()
614 data->i2c_addr = addr8; in ctrl_tx()
632 data->i2c_addr = addr8; in ctrl_tx()
694 data->i2c_addr = addr8; in ctrl_rx()
713 data->i2c_addr = addr8; in ctrl_rx()
Di2c_nrfx_twim_rtio.c29 size_t buf_len, uint16_t i2c_addr) in i2c_nrfx_twim_rtio_msg_start() argument
35 ret = i2c_nrfx_twim_msg_transfer(dev, flags, buf, buf_len, i2c_addr); in i2c_nrfx_twim_rtio_msg_start()
Di2c_mcux_lpi2c_rtio.c136 uint8_t *buf, size_t buf_len, uint16_t i2c_addr) in mcux_lpi2c_msg_start() argument
158 transfer->slaveAddress = i2c_addr; in mcux_lpi2c_msg_start()