Lines Matching refs:index
276 #define INST_DT_INA3221(index) \ argument
277 static const struct ina3221_config ina3221_config_##index = { \
278 .bus = I2C_DT_SPEC_INST_GET(index), \
279 .avg_mode = DT_INST_PROP(index, avg_mode), \
280 .conv_time_bus = DT_INST_PROP(index, conv_time_bus), \
281 .conv_time_shunt = DT_INST_PROP(index, conv_time_shunt), \
282 .enable_channel = DT_INST_PROP(index, enable_channel), \
283 .shunt_r = DT_INST_PROP(index, shunt_resistors), \
285 static struct ina3221_data ina3221_data_##index; \
287 SENSOR_DEVICE_DT_INST_DEFINE(index, ina3221_init, NULL, &ina3221_data_##index, \
288 &ina3221_config_##index, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY, \