Lines Matching refs:chnlNumber
105 tpm_chnl_t chnlNumber; /*!< TPM channel to configure. member
465 tpm_chnl_t chnlNumber,
481 void TPM_UpdateChnlEdgeLevelSelect(TPM_Type *base, tpm_chnl_t chnlNumber, uint8_t level);
493 static inline uint8_t TPM_GetChannelContorlBits(TPM_Type *base, tpm_chnl_t chnlNumber) in TPM_GetChannelContorlBits() argument
495 return (uint8_t)(base->CONTROLS[chnlNumber].CnSC & in TPM_GetChannelContorlBits()
507 static inline void TPM_DisableChannel(TPM_Type *base, tpm_chnl_t chnlNumber) in TPM_DisableChannel() argument
512 base->CONTROLS[chnlNumber].CnSC &= in TPM_DisableChannel()
522 } while (0U != (base->CONTROLS[chnlNumber].CnSC & in TPM_DisableChannel()
536 static inline void TPM_EnableChannel(TPM_Type *base, tpm_chnl_t chnlNumber, uint8_t control) in TPM_EnableChannel() argument
545 base->CONTROLS[chnlNumber].CnSC = in TPM_EnableChannel()
546 (base->CONTROLS[chnlNumber].CnSC & in TPM_EnableChannel()
558 (uint8_t)(base->CONTROLS[chnlNumber].CnSC & in TPM_EnableChannel()
572 void TPM_SetupInputCapture(TPM_Type *base, tpm_chnl_t chnlNumber, tpm_input_capture_edge_t captureM…
586 tpm_chnl_t chnlNumber,
632 static inline void TPM_SetChannelPolarity(TPM_Type *base, tpm_chnl_t chnlNumber, bool enable) in TPM_SetChannelPolarity() argument
637 base->POL &= ~((uint32_t)TPM_POL_POL0_MASK << (uint8_t)chnlNumber); in TPM_SetChannelPolarity()
641 base->POL |= (uint32_t)TPM_POL_POL0_MASK << (uint8_t)chnlNumber; in TPM_SetChannelPolarity()
662 static inline void TPM_EnableChannelExtTrigger(TPM_Type *base, tpm_chnl_t chnlNumber, bool enable) in TPM_EnableChannelExtTrigger() argument
667 base->TRIG |= (uint32_t)TPM_TRIG_TRIG0_MASK << (uint8_t)chnlNumber; in TPM_EnableChannelExtTrigger()
671 base->TRIG &= ~((uint32_t)TPM_TRIG_TRIG0_MASK << (uint8_t)chnlNumber); in TPM_EnableChannelExtTrigger()
726 static inline uint32_t TPM_GetChannelValue(TPM_Type *base, tpm_chnl_t chnlNumber) in TPM_GetChannelValue() argument
728 return base->CONTROLS[chnlNumber].CnV; in TPM_GetChannelValue()
778 uint8_t chnlNumber = 0; in TPM_ClearStatusFlags() local
790 base->CONTROLS[chnlNumber].CnSC &= ~TPM_CnSC_CHF_MASK; in TPM_ClearStatusFlags()
792 chnlNumber++; in TPM_ClearStatusFlags()