/* Set Qdecoder position counter change interrupt trigger valure .  */
void QDEC_SetPChg(QDEC_TypeDef *QDec, u32 Pchange)
/* Set Qdecoder position counter change interrupt trigger valure .  */
void QDEC_SetPChg(QDEC_TypeDef *QDec, u32 Pchange)
{
	u32 reg_ctrl;
	assert_param(IS_QDEC_ALL_PERIPH(QDec));
	assert_param(IS_QD_PC_CHG_COUTER(Pchange));
	reg_ctrl = QDec->QDEC_CTRL;
	QDec->QDEC_CTRL &= ~(QD_AXIS_EN | QD_PC_CHG_INT_EN);
	reg_ctrl &= ~QD_PC_CHG_LEVEL;
	reg_ctrl |= Pchange;
	QDec->QDEC_CTRL = reg_ctrl;
}