/* Configure the number of phase state changed for the position accumulation counter.  */
void QDEC_SetCntSC(QDEC_TypeDef *QDec, u32 cnt_sc)
/* Configure the number of phase state changed for the position accumulation counter.  */
void QDEC_SetCntSC(QDEC_TypeDef *QDec, u32 cnt_sc)
{
	u32 reg_ctrl;
	assert_param(IS_QDEC_ALL_PERIPH(QDec));
	assert_param(IS_QD_PC_PHASE_COUTER(cnt_sc));
	reg_ctrl = QDec->QDEC_CTRL;
	reg_ctrl &= ~QD_CNT_SC;
	reg_ctrl |= cnt_sc;
	QDec->QDEC_CTRL = reg_ctrl;
}