Lines Matching refs:val1
58 int32_t val1 = val->val1; in mcux_lpcmp_attr_set() local
73 LOG_DBG("positive mux = %d", val1); in mcux_lpcmp_attr_set()
74 if (val1 >= 0 && val1 < 8) { in mcux_lpcmp_attr_set()
76 LPCMP_CCR2_PSEL(val1)); in mcux_lpcmp_attr_set()
82 LOG_DBG("negative mux = %d", val1); in mcux_lpcmp_attr_set()
83 if (val1 >= 0 && val1 < 8) { in mcux_lpcmp_attr_set()
85 LPCMP_CCR2_MSEL(val1)); in mcux_lpcmp_attr_set()
93 LOG_DBG("dac enable = %d", val1); in mcux_lpcmp_attr_set()
94 if (val1 == 1) { in mcux_lpcmp_attr_set()
96 } else if (val1 == 0) { in mcux_lpcmp_attr_set()
103 LOG_DBG("dac power mode = %d", val1); in mcux_lpcmp_attr_set()
104 if ((val1 == 1) || (val1 == 0)) { in mcux_lpcmp_attr_set()
105 data->dac_config.enableLowPowerMode = (bool)val1; in mcux_lpcmp_attr_set()
112 LOG_DBG("dac vref = %d", val1); in mcux_lpcmp_attr_set()
113 if (val1 >= kLPCMP_VrefSourceVin1 && val1 <= kLPCMP_VrefSourceVin2) { in mcux_lpcmp_attr_set()
114 data->dac_config.referenceVoltageSource = val1; in mcux_lpcmp_attr_set()
121 LOG_DBG("dac value = %d", val1); in mcux_lpcmp_attr_set()
122 if (val1 >= 0 && val1 < 256) { in mcux_lpcmp_attr_set()
123 data->dac_config.DACValue = val1; in mcux_lpcmp_attr_set()
132 LOG_DBG("Filter sample enable = %d", val1); in mcux_lpcmp_attr_set()
133 if ((val1 == 1) || (val1 == 0)) { in mcux_lpcmp_attr_set()
134 data->filter_config.enableSample = (bool)val1; in mcux_lpcmp_attr_set()
141 LOG_DBG("sample count = %d", val1); in mcux_lpcmp_attr_set()
142 data->filter_config.filterSampleCount = val1; in mcux_lpcmp_attr_set()
146 LOG_DBG("sample period = %d", val1); in mcux_lpcmp_attr_set()
147 data->filter_config.filterSamplePeriod = val1; in mcux_lpcmp_attr_set()
153 LOG_DBG("Window enable = %d", val1); in mcux_lpcmp_attr_set()
154 if ((val1 == 1) || (val1 == 0)) { in mcux_lpcmp_attr_set()
155 LPCMP_EnableWindowMode(config->base, (bool)val1); in mcux_lpcmp_attr_set()
162 LOG_DBG("Invert window signal = %d", val1); in mcux_lpcmp_attr_set()
163 if ((val1 == 1) || (val1 == 0)) { in mcux_lpcmp_attr_set()
164 data->window_config.enableInvertWindowSignal = (bool)val1; in mcux_lpcmp_attr_set()
171 LOG_DBG("COUTA signal = %d", val1); in mcux_lpcmp_attr_set()
172 if ((val1 >= (int32_t)kLPCMP_COUTASignalNoSet) && in mcux_lpcmp_attr_set()
173 (val1 < (int32_t)kLPCMP_COUTASignalHigh)) { in mcux_lpcmp_attr_set()
174 data->window_config.COUTASignal = val1; in mcux_lpcmp_attr_set()
181 LOG_DBG("COUT event = %d", val1); in mcux_lpcmp_attr_set()
182 if ((val1 >= (int32_t)kLPCMP_CLoseWindowEventNoSet) && in mcux_lpcmp_attr_set()
183 (val1 < (int32_t)kLPCMP_CLoseWindowEventBothEdge)) { in mcux_lpcmp_attr_set()
184 data->window_config.closeWindowEvent = val1; in mcux_lpcmp_attr_set()
213 val->val1 = (int32_t)((config->base->CCR2) & in mcux_lpcmp_attr_get()
217 val->val1 = (int32_t)((config->base->CCR2) & in mcux_lpcmp_attr_get()
223 val->val1 = (int32_t)((config->base->DCR) & in mcux_lpcmp_attr_get()
227 val->val1 = (int32_t)(data->dac_config.enableLowPowerMode); in mcux_lpcmp_attr_get()
230 val->val1 = (int32_t)(data->dac_config.referenceVoltageSource); in mcux_lpcmp_attr_get()
233 val->val1 = (int32_t)(data->dac_config.DACValue); in mcux_lpcmp_attr_get()
238 val->val1 = (int32_t)(data->filter_config.enableSample); in mcux_lpcmp_attr_get()
241 val->val1 = (int32_t)(data->filter_config.filterSampleCount); in mcux_lpcmp_attr_get()
244 val->val1 = (int32_t)(data->filter_config.filterSamplePeriod); in mcux_lpcmp_attr_get()
249 val->val1 = (int32_t)((config->base->CCR1) & in mcux_lpcmp_attr_get()
253 val->val1 = (int32_t)(data->window_config.enableInvertWindowSignal); in mcux_lpcmp_attr_get()
256 val->val1 = (int32_t)(data->window_config.COUTASignal); in mcux_lpcmp_attr_get()
259 val->val1 = (int32_t)(data->window_config.closeWindowEvent); in mcux_lpcmp_attr_get()
297 val->val1 = data->cout ? 1 : 0; in mcux_lpcmp_channel_get()