Lines Matching refs:i2c_addr

72 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
185 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_hts221_init()
188 return hts221_read_conv_data(dev, i2c_addr); in iis2iclx_hts221_init()
194 uint8_t i2c_addr, uint16_t freq) in iis2iclx_hts221_odr_set() argument
210 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_hts221_odr_set()
217 static int iis2iclx_hts221_conf(const struct device *dev, uint8_t i2c_addr, in iis2iclx_hts221_conf() argument
224 return iis2iclx_hts221_odr_set(dev, i2c_addr, val->val1); in iis2iclx_hts221_conf()
247 static int iis2iclx_lps22hb_init(const struct device *dev, uint8_t i2c_addr) in iis2iclx_lps22hb_init() argument
253 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lps22hb_init()
260 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lps22hb_init()
281 static int iis2iclx_lps22hh_init(const struct device *dev, uint8_t i2c_addr) in iis2iclx_lps22hh_init() argument
287 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lps22hh_init()
294 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lps22hh_init()
298 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lps22hh_init()
307 uint8_t i2c_addr, uint16_t freq) in iis2iclx_lps22hh_odr_set() argument
323 iis2iclx_shub_write_slave_reg(dev, i2c_addr, in iis2iclx_lps22hh_odr_set()
330 static int iis2iclx_lps22hh_conf(const struct device *dev, uint8_t i2c_addr, in iis2iclx_lps22hh_conf() argument
337 return iis2iclx_lps22hh_odr_set(data, i2c_addr, val->val1); in iis2iclx_lps22hh_conf()
350 uint8_t i2c_addr[2]; member
357 int (*dev_init)(const struct device *dev, uint8_t i2c_addr);
358 int (*dev_conf)(const struct device *dev, uint8_t i2c_addr,
366 .i2c_addr = { 0x1E },
380 .i2c_addr = { 0x5F },
394 .i2c_addr = { 0x5C, 0x5D },
407 .i2c_addr = { 0x5C, 0x5D },
769 for (i = 0U; i < ARRAY_SIZE(sp->i2c_addr); i++) { in iis2iclx_shub_init()
771 sp->i2c_addr[i], in iis2iclx_shub_init()
781 if (i >= ARRAY_SIZE(sp->i2c_addr)) { in iis2iclx_shub_init()
786 sp->ext_i2c_addr = sp->i2c_addr[i]; in iis2iclx_shub_init()