/* Enables or disables the TIM Capture Compare Channel xN.  */
void TIM_EnableCapCmpChN(TIM_Module *TIMx, uint16_t Channel, uint32_t TIM_CCxN)
/* Enables or disables the TIM Capture Compare Channel xN.  */
void TIM_EnableCapCmpChN(TIM_Module *TIMx, uint16_t Channel, uint32_t TIM_CCxN)
{
    uint16_t tmp = 0;
    assert_param(IsTimList2Module(TIMx));
    assert_param(IsTimComplementaryCh(Channel));
    assert_param(IsTimCapCmpNState(TIM_CCxN));
    tmp = CAPCMPEN_CCNE_SET << Channel;
    TIMx->CCEN &= (uint32_t)~tmp;
    TIMx->CCEN |= (uint32_t)(TIM_CCxN << Channel);
}