RobotCode/Generated_Source/PSoC4/Timer_Echo.c
void Timer_Echo_SetMode(uint32 mode)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Timer_Echo_CONTROL_REG &= (uint32)~Timer_Echo_MODE_MASK;
    Timer_Echo_CONTROL_REG |= mode;

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Timer_Echo_SetMode
********************************************************************************
*
* Summary:
*  Sets the operation mode of the Timer_Echo. This function is used when
*  configured as a generic Timer_Echo and the actual mode of operation is
*  set at runtime. The mode must be set while the component is disabled.
*
* Parameters:
*  mode: Mode for the Timer_Echo to operate in
*   Values:
*   - Timer_Echo_MODE_TIMER_COMPARE - Timer / Counter with
*                                                 compare capability
*         - Timer_Echo_MODE_TIMER_CAPTURE - Timer / Counter with
*                                                 capture capability
*         - Timer_Echo_MODE_QUAD - Quadrature decoder
*         - Timer_Echo_MODE_PWM - PWM
*         - Timer_Echo_MODE_PWM_DT - PWM with dead time
*         - Timer_Echo_MODE_PWM_PR - PWM with pseudo random capability
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Timer_Echo_SetMode
Summary:
Sets the operation mode of the Timer_Echo. This function is used when
configured as a generic Timer_Echo and the actual mode of operation is
set at runtime. The mode must be set while the component is disabled.



None
Function Name : Timer_Echo_SetMode Summary : Sets the operation mode of the Timer_Echo . This function is used when configured as a generic Timer_Echo and the actual mode of operation is set at runtime . The mode must be set while the component is disabled . None
void Timer_Echo_SetMode(uint32 mode)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Timer_Echo_CONTROL_REG &= (uint32)~Timer_Echo_MODE_MASK;
    Timer_Echo_CONTROL_REG |= mode;
    CyExitCriticalSection(enableInterrupts);
}
void Timer_Echo_SetMode ( uint32 mode ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Timer_Echo_CONTROL_REG &= ( uint32 ) ~ Timer_Echo_MODE_MASK ; Timer_Echo_CONTROL_REG |= mode ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Timer_Echo_SetMode
Summary:
Sets the operation mode of the Timer_Echo.
Function Name : Timer_Echo_SetMode Summary : Sets the operation mode of the Timer_Echo .