Lines Matching refs:_num
612 #define ADC_EMUL_INIT(_num) \ argument
613 static DEVICE_API(adc, adc_emul_api_##_num) = { \
616 .ref_internal = DT_INST_PROP(_num, ref_internal_mv), \
622 adc_emul_ch_cfg_##_num[DT_INST_PROP(_num, nchannels)]; \
624 static const struct adc_emul_config adc_emul_config_##_num = { \
625 .num_channels = DT_INST_PROP(_num, nchannels), \
628 static struct adc_emul_data adc_emul_data_##_num = { \
629 ADC_CONTEXT_INIT_TIMER(adc_emul_data_##_num, ctx), \
630 ADC_CONTEXT_INIT_LOCK(adc_emul_data_##_num, ctx), \
631 ADC_CONTEXT_INIT_SYNC(adc_emul_data_##_num, ctx), \
632 .chan_cfg = adc_emul_ch_cfg_##_num, \
633 .ref_vdd = DT_INST_PROP(_num, ref_vdd_mv), \
634 .ref_ext0 = DT_INST_PROP(_num, ref_external0_mv), \
635 .ref_ext1 = DT_INST_PROP(_num, ref_external1_mv), \
636 .ref_int = DT_INST_PROP(_num, ref_internal_mv), \
639 DEVICE_DT_INST_DEFINE(_num, adc_emul_init, NULL, \
640 &adc_emul_data_##_num, \
641 &adc_emul_config_##_num, POST_KERNEL, \
643 &adc_emul_api_##_num);