5 #ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ADC_CTRL_H_
6 #define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ADC_CTRL_H_
14 #include "adc_ctrl_regs.h"
15 #include "sw/device/lib/dif/autogen/dif_adc_ctrl_autogen.h"
26 #define DIF_ADC_CTRL_CHANNEL_LIST(X) \
35 #define DIF_ADC_CTRL_FILTER_LIST(X) \
49 #define DIF_ADC_CTRL_CHANNEL_ENUM_INIT_(channel_) \
50 kDifAdcCtrlChannel##channel_ = channel_,
59 #undef DIF_ADC_CTRL_CHANNEL_ENUM_INIT_
65 #define DIF_ADC_CTRL_FILTER_ENUM_INIT_(filter_) \
66 kDifAdcCtrlFilter##filter_ = filter_,
81 #undef DIF_ADC_CTRL_FILTER_ENUM_INIT_
87 #define DIF_ADC_CTRL_IRQ_CAUSE_ENUM_INIT_(filter_cause_) \
88 kDifAdcCtrlIrqCauseFilter##filter_cause_ = 1U << filter_cause_,
116 (1U << (ADC_CTRL_ADC_INTR_STATUS_ONESHOT_BIT + 1)) - 1,
119 #undef DIF_ADC_CTRL_IRQ_CAUSE_ENUM_INIT_
473 uint32_t *enabled_causes);
488 uint32_t aon_freq_hz);