/* Enable or disable port output TMR4 counter direction signal.  */
void TMR4_PortOutputCmd(CM_TMR4_TypeDef *TMR4x, en_functional_state_t enNewState)
/* Enable or disable port output TMR4 counter direction signal.  */
void TMR4_PortOutputCmd(CM_TMR4_TypeDef *TMR4x, en_functional_state_t enNewState)
{
    DDL_ASSERT(IS_TMR4_UNIT(TMR4x));
    DDL_ASSERT(IS_FUNCTIONAL_STATE(enNewState));
    if (ENABLE == enNewState) {
        SET_REG16_BIT(TMR4x->SCER, TMR4_SCER_PCTS);
    } else {
        CLR_REG16_BIT(TMR4x->SCER, TMR4_SCER_PCTS);
    }
}