/* Configure counter threshold value in receiving mode.You can use it to stop receiving IR data.  */
void IR_SetRxCounterThreshold(IR_TypeDef *IRx, u32 IR_RxCntThrType, u32 IR_RxCntThr)
/* Configure counter threshold value in receiving mode.You can use it to stop receiving IR data.  */
void IR_SetRxCounterThreshold(IR_TypeDef *IRx, u32 IR_RxCntThrType, u32 IR_RxCntThr)
{
	assert_param(IS_IR_ALL_PERIPH(IRx));
	assert_param(IS_IR_RX_COUNT_LEVEL_CTRL(IR_RxCntThrType));
	assert_param(IS_IR_RX_COUNTER_THRESHOLD(IR_RxCntThr));
	IRx->IR_RX_CNT_INT_SEL = (IR_RxCntThrType) | (IR_RxCntThr);
}