/* Starts the TIMER output compare signal generation on the complementary output. in DMA mode.  */
void ald_timer_ocn_stop_by_dma(ald_timer_handle_t *hperh, ald_timer_channel_t ch)
/* Starts the TIMER output compare signal generation on the complementary output. in DMA mode.  */
void ald_timer_ocn_stop_by_dma(ald_timer_handle_t *hperh, ald_timer_channel_t ch)
{
    assert_param(IS_TIMER_CCXN_INSTANCE(hperh->perh, ch));
    switch (ch) {
    case ALD_TIMER_CHANNEL_1:
        ald_timer_dma_req_config(hperh, ALD_TIMER_DMA_CC1, DISABLE);
        break;
    case ALD_TIMER_CHANNEL_2:
        ald_timer_dma_req_config(hperh, ALD_TIMER_DMA_CC2, DISABLE);
        break;
    case ALD_TIMER_CHANNEL_3:
        ald_timer_dma_req_config(hperh, ALD_TIMER_DMA_CC3, DISABLE);
        break;
    default:
        break;
    }
    timer_ccxn_channel_cmd(hperh->perh, ch, DISABLE);
    ALD_TIMER_MOE_DISABLE(hperh);
    ALD_TIMER_DISABLE(hperh);
    return;
}