RobotCode/Generated_Source/PSoC4/Timer_Echo.c
void Timer_Echo_SetCounterMode(uint32 counterMode)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Timer_Echo_CONTROL_REG &= (uint32)~Timer_Echo_UPDOWN_MASK;
    Timer_Echo_CONTROL_REG |= counterMode;

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Timer_Echo_SetCounterMode
********************************************************************************
*
* Summary:
*  Sets the counter mode.  Applicable to all modes except Quadrature Decoder
*  and the PWM with a pseudo random output.
*
* Parameters:
*  counterMode: Enumerated counter type values
*   Values:
*     - Timer_Echo_COUNT_UP       - Counts up
*     - Timer_Echo_COUNT_DOWN     - Counts down
*     - Timer_Echo_COUNT_UPDOWN0  - Counts up and down. Terminal count
*                                         generated when counter reaches 0
*     - Timer_Echo_COUNT_UPDOWN1  - Counts up and down. Terminal count
*                                         generated both when counter reaches 0
*                                         and period
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Timer_Echo_SetCounterMode
Summary:
Sets the counter mode.  Applicable to all modes except Quadrature Decoder
and the PWM with a pseudo random output.

Enumerated counter type values
Values:
Timer_Echo_COUNT_UP       - Counts up
Timer_Echo_COUNT_DOWN     - Counts down
Timer_Echo_COUNT_UPDOWN0  - Counts up and down. Terminal count
generated when counter reaches 0
Timer_Echo_COUNT_UPDOWN1  - Counts up and down. Terminal count
generated both when counter reaches 0
and period

None
Function Name : Timer_Echo_SetCounterMode Summary : Sets the counter mode . Applicable to all modes except Quadrature Decoder and the PWM with a pseudo random output . Enumerated counter type values Values : Timer_Echo_COUNT_UP - Counts up Timer_Echo_COUNT_DOWN - Counts down Timer_Echo_COUNT_UPDOWN0 - Counts up and down . Terminal count generated when counter reaches 0 Timer_Echo_COUNT_UPDOWN1 - Counts up and down . Terminal count generated both when counter reaches 0 and period None
void Timer_Echo_SetCounterMode(uint32 counterMode)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Timer_Echo_CONTROL_REG &= (uint32)~Timer_Echo_UPDOWN_MASK;
    Timer_Echo_CONTROL_REG |= counterMode;
    CyExitCriticalSection(enableInterrupts);
}
void Timer_Echo_SetCounterMode ( uint32 counterMode ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Timer_Echo_CONTROL_REG &= ( uint32 ) ~ Timer_Echo_UPDOWN_MASK ; Timer_Echo_CONTROL_REG |= counterMode ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Timer_Echo_SetCounterMode
Summary:
Sets the counter mode.
Function Name : Timer_Echo_SetCounterMode Summary : Sets the counter mode .