Lines Matching refs:tmp16

84     uint16_t tmp16;  in ENC_Init()  local
92tmp16 = base->CTRL & (uint16_t)(~(ENC_CTRL_W1C_FLAGS | ENC_CTRL_HIP_MASK | ENC_CTRL_HNE_MASK | ENC… in ENC_Init()
97 tmp16 |= ENC_CTRL_HIP_MASK; in ENC_Init()
100 tmp16 |= ENC_CTRL_HNE_MASK; in ENC_Init()
106 tmp16 |= ENC_CTRL_REV_MASK; in ENC_Init()
110 tmp16 |= ENC_CTRL_PH1_MASK; in ENC_Init()
115 tmp16 |= ENC_CTRL_XIP_MASK; in ENC_Init()
118 tmp16 |= ENC_CTRL_XNE_MASK; in ENC_Init()
124 tmp16 |= ENC_CTRL_WDE_MASK; in ENC_Init()
127 base->CTRL = tmp16; in ENC_Init()
137tmp16 = base->CTRL2 & (uint16_t)(~(ENC_CTRL2_W1C_FLAGS | ENC_CTRL2_OUTCTL_MASK | ENC_CTRL2_REVMOD_… in ENC_Init()
141 tmp16 |= ENC_CTRL2_OUTCTL_MASK; in ENC_Init()
145 tmp16 |= ENC_CTRL2_REVMOD_MASK; in ENC_Init()
149 tmp16 |= ENC_CTRL2_MOD_MASK; in ENC_Init()
156 tmp16 |= ENC_CTRL2_UPDPOS_MASK; in ENC_Init()
160 tmp16 |= ENC_CTRL2_UPDHLD_MASK; in ENC_Init()
162 base->CTRL2 = tmp16; in ENC_Init()
166 tmp16 = base->CTRL3 & (uint16_t)(~(ENC_CTRL3_PMEN_MASK | ENC_CTRL3_PRSC_MASK)); in ENC_Init()
169 tmp16 |= ENC_CTRL3_PMEN_MASK; in ENC_Init()
171 tmp16 |= ((uint16_t)config->prescalerValue << ENC_CTRL3_PRSC_SHIFT); in ENC_Init()
173 base->CTRL3 = tmp16; in ENC_Init()
271 uint16_t tmp16 = base->CTRL & (uint16_t)(~ENC_CTRL_W1C_FLAGS); in ENC_DoSoftwareLoadInitialPositionValue() local
273tmp16 |= ENC_CTRL_SWIP_MASK; /* Write 1 to trigger the command for loading initial position value.… in ENC_DoSoftwareLoadInitialPositionValue()
274 base->CTRL = tmp16; in ENC_DoSoftwareLoadInitialPositionValue()
289 uint16_t tmp16 = 0U; in ENC_SetSelfTestConfig() local
293 tmp16 = 0U; in ENC_SetSelfTestConfig()
297 tmp16 = ENC_TST_TEN_MASK | ENC_TST_TCE_MASK | ENC_TST_TEST_PERIOD(config->signalPeriod) | in ENC_SetSelfTestConfig()
301 tmp16 |= ENC_TST_QDN_MASK; in ENC_SetSelfTestConfig()
305 base->TST = tmp16; in ENC_SetSelfTestConfig()
316 uint16_t tmp16 = base->CTRL & (uint16_t)(~(ENC_CTRL_W1C_FLAGS | ENC_CTRL_WDE_MASK)); in ENC_EnableWatchdog() local
320 tmp16 |= ENC_CTRL_WDE_MASK; in ENC_EnableWatchdog()
322 base->CTRL = tmp16; in ENC_EnableWatchdog()
385 uint32_t tmp16 = 0U; in ENC_ClearStatusFlags() local
390 tmp16 |= ENC_CTRL_HIRQ_MASK; in ENC_ClearStatusFlags()
394 tmp16 |= ENC_CTRL_XIRQ_MASK; in ENC_ClearStatusFlags()
398 tmp16 |= ENC_CTRL_DIRQ_MASK; in ENC_ClearStatusFlags()
402 tmp16 |= ENC_CTRL_CMPIRQ_MASK; in ENC_ClearStatusFlags()
404 if (0U != tmp16) in ENC_ClearStatusFlags()
406 base->CTRL = (uint16_t)(((uint32_t)base->CTRL & (~ENC_CTRL_W1C_FLAGS)) | tmp16); in ENC_ClearStatusFlags()
410 tmp16 = 0U; in ENC_ClearStatusFlags()
414 tmp16 |= ENC_CTRL2_SABIRQ_MASK; in ENC_ClearStatusFlags()
419 tmp16 |= ENC_CTRL2_ROIRQ_MASK; in ENC_ClearStatusFlags()
423 tmp16 |= ENC_CTRL2_RUIRQ_MASK; in ENC_ClearStatusFlags()
425 if (0U != tmp16) in ENC_ClearStatusFlags()
427 base->CTRL2 = (uint16_t)(((uint32_t)base->CTRL2 & (~ENC_CTRL2_W1C_FLAGS)) | tmp16); in ENC_ClearStatusFlags()
439 uint32_t tmp16 = 0U; in ENC_EnableInterrupts() local
444 tmp16 |= ENC_CTRL_HIE_MASK; in ENC_EnableInterrupts()
448 tmp16 |= ENC_CTRL_XIE_MASK; in ENC_EnableInterrupts()
452 tmp16 |= ENC_CTRL_DIE_MASK; in ENC_EnableInterrupts()
456 tmp16 |= ENC_CTRL_CMPIE_MASK; in ENC_EnableInterrupts()
458 if (tmp16 != 0U) in ENC_EnableInterrupts()
460 base->CTRL = (uint16_t)(((uint32_t)base->CTRL & (~ENC_CTRL_W1C_FLAGS)) | tmp16); in ENC_EnableInterrupts()
463 tmp16 = 0U; in ENC_EnableInterrupts()
467 tmp16 |= ENC_CTRL2_SABIE_MASK; in ENC_EnableInterrupts()
472 tmp16 |= ENC_CTRL2_ROIE_MASK; in ENC_EnableInterrupts()
476 tmp16 |= ENC_CTRL2_RUIE_MASK; in ENC_EnableInterrupts()
478 if (tmp16 != 0U) in ENC_EnableInterrupts()
480 base->CTRL2 = (uint16_t)(((uint32_t)base->CTRL2 & (~ENC_CTRL2_W1C_FLAGS)) | tmp16); in ENC_EnableInterrupts()
492 uint16_t tmp16 = 0U; in ENC_DisableInterrupts() local
497 tmp16 |= ENC_CTRL_HIE_MASK; in ENC_DisableInterrupts()
501 tmp16 |= ENC_CTRL_XIE_MASK; in ENC_DisableInterrupts()
505 tmp16 |= ENC_CTRL_DIE_MASK; in ENC_DisableInterrupts()
509 tmp16 |= ENC_CTRL_CMPIE_MASK; in ENC_DisableInterrupts()
511 if (0U != tmp16) in ENC_DisableInterrupts()
513 base->CTRL = (uint16_t)(base->CTRL & (uint16_t)(~ENC_CTRL_W1C_FLAGS)) & (uint16_t)(~tmp16); in ENC_DisableInterrupts()
516 tmp16 = 0U; in ENC_DisableInterrupts()
520 tmp16 |= ENC_CTRL2_SABIE_MASK; in ENC_DisableInterrupts()
525 tmp16 |= ENC_CTRL2_ROIE_MASK; in ENC_DisableInterrupts()
529 tmp16 |= ENC_CTRL2_RUIE_MASK; in ENC_DisableInterrupts()
531 if (tmp16 != 0U) in ENC_DisableInterrupts()
533 … base->CTRL2 = (uint16_t)(base->CTRL2 & (uint16_t)(~ENC_CTRL2_W1C_FLAGS)) & (uint16_t)(~tmp16); in ENC_DisableInterrupts()