Lines Matching refs:tmp32

104     uint32_t tmp32;  in LPCMP_Init()  local
138tmp32 = (base->CCR1 & (~(LPCMP_CCR1_COUT_PEN_MASK | LPCMP_CCR1_COUT_SEL_MASK | LPCMP_CCR1_COUT_INV… in LPCMP_Init()
146 tmp32 |= LPCMP_CCR1_COUT_PEN_MASK; in LPCMP_Init()
150 tmp32 |= LPCMP_CCR1_COUT_SEL_MASK; in LPCMP_Init()
154 tmp32 |= LPCMP_CCR1_COUT_INV_MASK; in LPCMP_Init()
157 tmp32 |= LPCMP_CCR1_FUNC_CLK_SEL(config->functionalSourceClock); in LPCMP_Init()
159 base->CCR1 = tmp32; in LPCMP_Init()
161tmp32 = base->CCR2 & ~(LPCMP_CCR2_HYSTCTR_MASK | LPCMP_CCR2_CMP_NPMD_MASK | LPCMP_CCR2_CMP_HPMD_MA… in LPCMP_Init()
162 tmp32 |= LPCMP_CCR2_HYSTCTR(config->hysteresisMode); in LPCMP_Init()
163 tmp32 |= ((uint32_t)(config->powerMode) << LPCMP_CCR2_CMP_HPMD_SHIFT); in LPCMP_Init()
164 base->CCR2 = tmp32; in LPCMP_Init()
236 uint32_t tmp32; in LPCMP_SetInputChannels() local
238 tmp32 = base->CCR2 & ~(LPCMP_CCR2_PSEL_MASK | LPCMP_CCR2_MSEL_MASK); in LPCMP_SetInputChannels()
239 tmp32 |= LPCMP_CCR2_PSEL(positiveChannel) | LPCMP_CCR2_MSEL(negativeChannel); in LPCMP_SetInputChannels()
240 base->CCR2 = tmp32; in LPCMP_SetInputChannels()
253 uint32_t tmp32; in LPCMP_SetFilterConfig() local
255tmp32 = base->CCR1 & ~(LPCMP_CCR1_FILT_PER_MASK | LPCMP_CCR1_FILT_CNT_MASK | LPCMP_CCR1_SAMPLE_EN_… in LPCMP_SetFilterConfig()
258 tmp32 |= LPCMP_CCR1_SAMPLE_EN_MASK; in LPCMP_SetFilterConfig()
260tmp32 |= LPCMP_CCR1_FILT_PER(config->filterSamplePeriod) | LPCMP_CCR1_FILT_CNT(config->filterSampl… in LPCMP_SetFilterConfig()
261 base->CCR1 = tmp32; in LPCMP_SetFilterConfig()
272 uint32_t tmp32; in LPCMP_SetDACConfig() local
275 tmp32 = 0U; /* Disable internal DAC. */ in LPCMP_SetDACConfig()
279tmp32 = LPCMP_DCR_VRSEL(config->referenceVoltageSource) | LPCMP_DCR_DAC_DATA(config->DACValue); in LPCMP_SetDACConfig()
282 tmp32 |= LPCMP_DCR_DAC_HPMD_MASK; in LPCMP_SetDACConfig()
284 tmp32 |= LPCMP_DCR_DAC_EN_MASK; in LPCMP_SetDACConfig()
286 base->DCR = tmp32; in LPCMP_SetDACConfig()
302 uint32_t tmp32 = 0UL; in LPCMP_SetWindowControl() local
304tmp32 = (base->CCR1 & (~(LPCMP_CCR1_COUTA_CFG_MASK | LPCMP_CCR1_EVT_SEL_CFG_MASK | LPCMP_CCR1_WIND… in LPCMP_SetWindowControl()
308 tmp32 |= LPCMP_CCR1_WINDOW_INV_MASK; in LPCMP_SetWindowControl()
312 tmp32 |= LPCMP_CCR1_EVT_SEL_CFG(config->closeWindowEvent); in LPCMP_SetWindowControl()
315 tmp32 |= LPCMP_CCR1_COUTA_CFG(config->COUTASignal); in LPCMP_SetWindowControl()
317 base->CCR1 = tmp32; in LPCMP_SetWindowControl()
332 uint32_t tmp32 = 0UL; in LPCMP_SetRoundRobinConfig() local
335 tmp32 = (base->RRCR0 & in LPCMP_SetRoundRobinConfig()
339 tmp32 |= in LPCMP_SetRoundRobinConfig()
345 base->RRCR0 = tmp32; in LPCMP_SetRoundRobinConfig()
348 tmp32 = in LPCMP_SetRoundRobinConfig()
350 tmp32 |= (LPCMP_RRCR1_FIXP(config->fixedMuxPort) | LPCMP_RRCR1_FIXCH(config->fixedChannel) | in LPCMP_SetRoundRobinConfig()
353 base->RRCR1 = tmp32; in LPCMP_SetRoundRobinConfig()
364 uint32_t tmp32 = 0UL; in LPCMP_SetRoundRobinInternalTimer() local
366 tmp32 = (base->RRCR2 & (~LPCMP_RRCR2_RR_TIMER_RELOAD_MASK)); in LPCMP_SetRoundRobinInternalTimer()
367 tmp32 |= LPCMP_RRCR2_RR_TIMER_RELOAD(value); in LPCMP_SetRoundRobinInternalTimer()
369 base->RRCR2 = tmp32; in LPCMP_SetRoundRobinInternalTimer()