Home
last modified time | relevance | path

Searched refs:chnlPairNumber (Results 1 – 4 of 4) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ftm/
Dfsl_ftm.h588 ftm_chnl_t chnlPairNumber,
878 static inline void FTM_SetFaultControlEnable(FTM_Type *base, ftm_chnl_t chnlPairNumber, bool value) in FTM_SetFaultControlEnable() argument
887 … (1UL << (FTM_COMBINE_FAULTEN0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetFaultControlEnable()
892 … ~(1UL << (FTM_COMBINE_FAULTEN0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetFaultControlEnable()
903 static inline void FTM_SetDeadTimeEnable(FTM_Type *base, ftm_chnl_t chnlPairNumber, bool value) in FTM_SetDeadTimeEnable() argument
907 …NE |= (1UL << (FTM_COMBINE_DTEN0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetDeadTimeEnable()
911 …E &= ~(1UL << (FTM_COMBINE_DTEN0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetDeadTimeEnable()
922 static inline void FTM_SetComplementaryEnable(FTM_Type *base, ftm_chnl_t chnlPairNumber, bool value) in FTM_SetComplementaryEnable() argument
926 …NE |= (1UL << (FTM_COMBINE_COMP0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetComplementaryEnable()
930 …E &= ~(1UL << (FTM_COMBINE_COMP0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetComplementaryEnable()
[all …]
Dfsl_ftm.c934 ftm_chnl_t chnlPairNumber, in FTM_SetupDualEdgeCapture() argument
944 …= ~(1UL << (FTM_COMBINE_COMBINE0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetupDualEdgeCapture()
946 …|= (1UL << (FTM_COMBINE_DECAPEN0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetupDualEdgeCapture()
947 …g |= (1UL << (FTM_COMBINE_DECAP0_SHIFT + (FTM_COMBINE_COMBINE1_SHIFT * (uint32_t)chnlPairNumber))); in FTM_SetupDualEdgeCapture()
951 reg = base->CONTROLS[((uint32_t)chnlPairNumber) * 2U].CnSC; in FTM_SetupDualEdgeCapture()
954 base->CONTROLS[((uint32_t)chnlPairNumber) * 2U].CnSC = reg; in FTM_SetupDualEdgeCapture()
956 reg = base->CONTROLS[(((uint32_t)chnlPairNumber) * 2U) + 1U].CnSC; in FTM_SetupDualEdgeCapture()
959 base->CONTROLS[(((uint32_t)chnlPairNumber) * 2U) + 1U].CnSC = reg; in FTM_SetupDualEdgeCapture()
962 if (chnlPairNumber < kFTM_Chnl_4) in FTM_SetupDualEdgeCapture()
965 …g &= ~((uint32_t)FTM_FILTER_CH0FVAL_MASK << (FTM_FILTER_CH1FVAL_SHIFT * (uint32_t)chnlPairNumber)); in FTM_SetupDualEdgeCapture()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/tpm/
Dfsl_tpm.c831 tpm_chnl_t chnlPairNumber, in TPM_SetupDualEdgeCapture() argument
836 assert(((uint8_t)chnlPairNumber < (uint8_t)FSL_FEATURE_TPM_CHANNEL_COUNTn(base) / 2U) && in TPM_SetupDualEdgeCapture()
842 uint8_t chnlId = (uint8_t)chnlPairNumber * 2U; in TPM_SetupDualEdgeCapture()
867 base->COMBINE |= u32flag << (TPM_COMBINE_SHIFT * (uint32_t)chnlPairNumber); in TPM_SetupDualEdgeCapture()
879 …reg &= ~((uint32_t)TPM_COMBINE_COMSWAP0_MASK << ((uint32_t)chnlPairNumber * TPM_COMBINE_COMSWAP0_S… in TPM_SetupDualEdgeCapture()
883 reg |= u32flag << (TPM_COMBINE_SHIFT * (uint32_t)chnlPairNumber); in TPM_SetupDualEdgeCapture()
Dfsl_tpm.h603 tpm_chnl_t chnlPairNumber,