Lines Matching refs:chnlNumber
293 chnlId = (uint8_t)chnlParams.chnlNumber; in TPM_SetupSinglePwmChannel()
579 tpm_chnl_t chnlNumber, in TPM_UpdatePwmDutycycle() argument
585 uint8_t chnlId = (uint8_t)chnlNumber; in TPM_UpdatePwmDutycycle()
708 void TPM_UpdateChnlEdgeLevelSelect(TPM_Type *base, tpm_chnl_t chnlNumber, uint8_t level) in TPM_UpdateChnlEdgeLevelSelect() argument
710 assert(((uint8_t)chnlNumber < (uint8_t)FSL_FEATURE_TPM_CHANNEL_COUNTn(base)) && in TPM_UpdateChnlEdgeLevelSelect()
713 uint8_t control = TPM_GetChannelContorlBits(base, chnlNumber); in TPM_UpdateChnlEdgeLevelSelect()
716 TPM_DisableChannel(base, chnlNumber); in TPM_UpdateChnlEdgeLevelSelect()
723 TPM_EnableChannel(base, chnlNumber, control); in TPM_UpdateChnlEdgeLevelSelect()
736 void TPM_SetupInputCapture(TPM_Type *base, tpm_chnl_t chnlNumber, tpm_input_capture_edge_t captureM… in TPM_SetupInputCapture() argument
738 assert(((uint8_t)chnlNumber < (uint8_t)FSL_FEATURE_TPM_CHANNEL_COUNTn(base)) && in TPM_SetupInputCapture()
746 if (((uint32_t)chnlNumber == 0u) || ((uint32_t)chnlNumber == 1u)) in TPM_SetupInputCapture()
758 base->COMBINE &= ~((uint32_t)1U << (((uint32_t)chnlNumber / 2U) * TPM_COMBINE_SHIFT)); in TPM_SetupInputCapture()
764 TPM_DisableChannel(base, chnlNumber); in TPM_SetupInputCapture()
766 TPM_EnableChannel(base, chnlNumber, (uint8_t)captureMode); in TPM_SetupInputCapture()
781 tpm_chnl_t chnlNumber, in TPM_SetupOutputCompare() argument
785 assert(((uint8_t)chnlNumber < (uint8_t)FSL_FEATURE_TPM_CHANNEL_COUNTn(base)) && in TPM_SetupOutputCompare()
793 if (((uint32_t)chnlNumber == 0U) || ((uint32_t)chnlNumber == 1U)) in TPM_SetupOutputCompare()
803 TPM_DisableChannel(base, chnlNumber); in TPM_SetupOutputCompare()
805 TPM_EnableChannel(base, chnlNumber, (uint8_t)compareMode); in TPM_SetupOutputCompare()
810 base->CONTROLS[chnlNumber].CnV = compareValue; in TPM_SetupOutputCompare()
815 } while (compareValue != base->CONTROLS[chnlNumber].CnV); in TPM_SetupOutputCompare()
997 uint8_t chnlNumber = 0; in TPM_EnableInterrupts() local
1010 base->CONTROLS[chnlNumber].CnSC |= TPM_CnSC_CHIE_MASK; in TPM_EnableInterrupts()
1012 chnlNumber++; in TPM_EnableInterrupts()
1027 uint8_t chnlNumber = 0; in TPM_DisableInterrupts() local
1040 base->CONTROLS[chnlNumber].CnSC &= ~TPM_CnSC_CHIE_MASK; in TPM_DisableInterrupts()
1042 chnlNumber++; in TPM_DisableInterrupts()