Lines Matching refs:i2c_addr
56 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()
197 uint8_t i2c_addr[2]; member
202 int (*dev_init)(const struct device *dev, uint8_t i2c_addr);
207 .i2c_addr = { 0x1E },
219 .i2c_addr = {0x1C, 0x1E},
231 .i2c_addr = { 0x5C, 0x5D },
437 uint8_t slv_i2c_addr = lsm6dsl_shub_sens_list[0].i2c_addr[ext_i2c_addr]; in lsm6dsl_shub_set_data_channel()
490 for (i = 0U; i < ARRAY_SIZE(lsm6dsl_shub_sens_list[0].i2c_addr); i++) { in lsm6dsl_shub_init_external_chip()
491 slv_i2c_addr = lsm6dsl_shub_sens_list[0].i2c_addr[i]; in lsm6dsl_shub_init_external_chip()
508 if (i >= ARRAY_SIZE(lsm6dsl_shub_sens_list[0].i2c_addr)) { in lsm6dsl_shub_init_external_chip()