/* Reset QDec state machine and all other functions .  */
void QDEC_RstALL(QDEC_TypeDef *QDec)
/* Reset QDec state machine and all other functions .  */
void QDEC_RstALL(QDEC_TypeDef *QDec)
{
	u32 reg_ctrl;
	assert_param(IS_QDEC_ALL_PERIPH(QDec));
	reg_ctrl = QDec->QDEC_CTRL;
	QDec->QDEC_CTRL &= ~QD_AXIS_EN;
	QDec->QDEC_CTRL |= QD_ALL_RST;
	QDec->QDEC_CTRL &= ~QD_ALL_RST;
	QDec->QDEC_CTRL = reg_ctrl;
}