Lines Matching refs:i2c_addr
56 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
169 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_hts221_init()
172 return lsm6dso_hts221_read_conv_data(dev, i2c_addr); in lsm6dso_hts221_init()
178 uint8_t i2c_addr, uint16_t freq) in lsm6dso_hts221_odr_set() argument
194 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_hts221_odr_set()
201 static int lsm6dso_hts221_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dso_hts221_conf() argument
208 return lsm6dso_hts221_odr_set(dev, i2c_addr, val->val1); in lsm6dso_hts221_conf()
231 static int lsm6dso_lps22hb_init(const struct device *dev, uint8_t i2c_addr) in lsm6dso_lps22hb_init() argument
237 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lps22hb_init()
244 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lps22hb_init()
265 static int lsm6dso_lps22hh_init(const struct device *dev, uint8_t i2c_addr) in lsm6dso_lps22hh_init() argument
271 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lps22hh_init()
278 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lps22hh_init()
282 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lps22hh_init()
291 uint8_t i2c_addr, uint16_t freq) in lsm6dso_lps22hh_odr_set() argument
307 lsm6dso_shub_write_target_reg(dev, i2c_addr, in lsm6dso_lps22hh_odr_set()
314 static int lsm6dso_lps22hh_conf(const struct device *dev, uint8_t i2c_addr, in lsm6dso_lps22hh_conf() argument
321 return lsm6dso_lps22hh_odr_set(dev, i2c_addr, val->val1); in lsm6dso_lps22hh_conf()
334 uint8_t i2c_addr[2]; member
341 int (*dev_init)(const struct device *dev, uint8_t i2c_addr);
342 int (*dev_conf)(const struct device *dev, uint8_t i2c_addr,
350 .i2c_addr = { 0x1E },
364 .i2c_addr = { 0x5F },
378 .i2c_addr = { 0x5C, 0x5D },
391 .i2c_addr = { 0x5C, 0x5D },
703 for (i = 0U; i < ARRAY_SIZE(sp->i2c_addr); i++) { in lsm6dso_shub_init()
705 sp->i2c_addr[i], in lsm6dso_shub_init()
716 if (i >= ARRAY_SIZE(sp->i2c_addr)) { in lsm6dso_shub_init()
721 sp->ext_i2c_addr = sp->i2c_addr[i]; in lsm6dso_shub_init()