/* Disables PDMA transfer of selected channel for EPWM capture.  */
void EPWM_DisablePDMA(EPWM_T *epwm, uint32_t u32ChannelNum)
/* Disables PDMA transfer of selected channel for EPWM capture.  */
void EPWM_DisablePDMA(EPWM_T *epwm, uint32_t u32ChannelNum)
{
    (epwm)->PDMACTL &= ~(EPWM_PDMACTL_CHEN0_1_Msk << ((u32ChannelNum >> 1) << 3));
}