Lines Matching refs:bus
81 ret = ina23x_reg_read_16(&config->bus, INA230_REG_BUS_VOLT, &data->bus_voltage); in ina230_sample_fetch()
89 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CURRENT, &data->current); in ina230_sample_fetch()
97 ret = ina23x_reg_read_16(&config->bus, INA230_REG_POWER, &data->power); in ina230_sample_fetch()
115 return ina23x_reg_write(&config->bus, INA230_REG_CONFIG, data); in ina230_attr_set()
117 return ina23x_reg_write(&config->bus, INA230_REG_CALIB, data); in ina230_attr_set()
119 return ina23x_reg_write(&config->bus, INA230_REG_MASK, data); in ina230_attr_set()
121 return ina23x_reg_write(&config->bus, INA230_REG_ALERT, data); in ina230_attr_set()
137 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CONFIG, &data); in ina230_attr_get()
143 ret = ina23x_reg_read_16(&config->bus, INA230_REG_CALIB, &data); in ina230_attr_get()
149 ret = ina23x_reg_read_16(&config->bus, INA230_REG_MASK, &data); in ina230_attr_get()
155 ret = ina23x_reg_read_16(&config->bus, INA230_REG_ALERT, &data); in ina230_attr_get()
177 ret = ina23x_reg_write(&config->bus, INA230_REG_CALIB, config->cal); in ina230_calibrate()
190 if (!device_is_ready(config->bus.bus)) { in ina230_init()
191 LOG_ERR("I2C bus %s is not ready", config->bus.bus->name); in ina230_init()
195 ret = ina23x_reg_write(&config->bus, INA230_REG_CONFIG, config->config); in ina230_init()
215 ret = ina23x_reg_write(&config->bus, INA230_REG_ALERT, config->alert_limit); in ina230_init()
221 ret = ina23x_reg_write(&config->bus, INA230_REG_MASK, config->mask); in ina230_init()
254 .bus = I2C_DT_SPEC_INST_GET(inst), \