Lines Matching refs:i2c_addr
57 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
170 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_hts221_init()
173 return lsm6dsv16x_hts221_read_conv_data(dev, i2c_addr); in lsm6dsv16x_hts221_init()
179 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_hts221_odr_set() argument
195 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_hts221_odr_set()
202 static int lsm6dsv16x_hts221_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dsv16x_hts221_conf() argument
209 return lsm6dsv16x_hts221_odr_set(dev, i2c_addr, val->val1); in lsm6dsv16x_hts221_conf()
232 static int lsm6dsv16x_lps22hb_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsv16x_lps22hb_init() argument
238 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22hb_init()
245 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22hb_init()
266 static int lsm6dsv16x_lps22hh_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsv16x_lps22hh_init() argument
272 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22hh_init()
279 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22hh_init()
283 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22hh_init()
292 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_lps22hh_odr_set() argument
308 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22hh_odr_set()
315 static int lsm6dsv16x_lps22hh_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dsv16x_lps22hh_conf() argument
322 return lsm6dsv16x_lps22hh_odr_set(dev, i2c_addr, val->val1); in lsm6dsv16x_lps22hh_conf()
346 static int lsm6dsv16x_lps22df_init(const struct device *dev, uint8_t i2c_addr) in lsm6dsv16x_lps22df_init() argument
352 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22df_init()
359 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22df_init()
363 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22df_init()
372 uint8_t i2c_addr, uint16_t freq) in lsm6dsv16x_lps22df_odr_set() argument
388 lsm6dsv16x_shub_write_target_reg(dev, i2c_addr, in lsm6dsv16x_lps22df_odr_set()
395 static int lsm6dsv16x_lps22df_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dsv16x_lps22df_conf() argument
402 return lsm6dsv16x_lps22df_odr_set(dev, i2c_addr, val->val1); in lsm6dsv16x_lps22df_conf()
415 uint8_t i2c_addr[2]; member
422 int (*dev_init)(const struct device *dev, uint8_t i2c_addr);
423 int (*dev_conf)(const struct device *dev, uint8_t i2c_addr,
431 .i2c_addr = { 0x1E },
445 .i2c_addr = { 0x5F },
459 .i2c_addr = { 0x5C, 0x5D },
472 .i2c_addr = { 0x5C, 0x5D },
486 .i2c_addr = { 0x5C, 0x5D },
801 for (i = 0U; i < ARRAY_SIZE(sp->i2c_addr); i++) { in lsm6dsv16x_shub_init()
803 sp->i2c_addr[i], in lsm6dsv16x_shub_init()
814 if (i >= ARRAY_SIZE(sp->i2c_addr)) { in lsm6dsv16x_shub_init()
819 sp->ext_i2c_addr = sp->i2c_addr[i]; in lsm6dsv16x_shub_init()