RobotCode/codegentemp/Counter.c
void Counter_SetCounterMode(uint32 counterMode)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Counter_CONTROL_REG &= (uint32)~Counter_UPDOWN_MASK;
    Counter_CONTROL_REG |= counterMode;

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Counter_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:
*     - Counter_COUNT_UP       - Counts up
*     - Counter_COUNT_DOWN     - Counts down
*     - Counter_COUNT_UPDOWN0  - Counts up and down. Terminal count
*                                         generated when counter reaches 0
*     - Counter_COUNT_UPDOWN1  - Counts up and down. Terminal count
*                                         generated both when counter reaches 0
*                                         and period
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Counter_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:
Counter_COUNT_UP       - Counts up
Counter_COUNT_DOWN     - Counts down
Counter_COUNT_UPDOWN0  - Counts up and down. Terminal count
generated when counter reaches 0
Counter_COUNT_UPDOWN1  - Counts up and down. Terminal count
generated both when counter reaches 0
and period

None
Function Name : Counter_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 : Counter_COUNT_UP - Counts up Counter_COUNT_DOWN - Counts down Counter_COUNT_UPDOWN0 - Counts up and down . Terminal count generated when counter reaches 0 Counter_COUNT_UPDOWN1 - Counts up and down . Terminal count generated both when counter reaches 0 and period None
void Counter_SetCounterMode(uint32 counterMode)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Counter_CONTROL_REG &= (uint32)~Counter_UPDOWN_MASK;
    Counter_CONTROL_REG |= counterMode;
    CyExitCriticalSection(enableInterrupts);
}
void Counter_SetCounterMode ( uint32 counterMode ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Counter_CONTROL_REG &= ( uint32 ) ~ Counter_UPDOWN_MASK ; Counter_CONTROL_REG |= counterMode ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Counter_SetCounterMode
Summary:
Sets the counter mode.
Function Name : Counter_SetCounterMode Summary : Sets the counter mode .