RobotCode/codegentemp/Counter.c
void Counter_SetPeriodSwap(uint32 swapEnable)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Counter_CONTROL_REG &= (uint32)~Counter_RELOAD_PERIOD_MASK;
    Counter_CONTROL_REG |= ((uint32)((swapEnable & Counter_1BIT_MASK) <<
                                                            Counter_RELOAD_PERIOD_SHIFT));

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Counter_SetPeriodSwap
********************************************************************************
*
* Summary:
*  Writes the register that controls whether the period registers are
*  swapped. When enabled in Timer/Counter mode the swap occurs at a TC event.
*  In the PWM mode the swap occurs at the next TC event following a hardware
*  switch event.
*
* Parameters:
*  swapEnable
*   Values:
*     - 0 - Disable swap
*     - 1 - Enable swap
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Counter_SetPeriodSwap
Summary:
Writes the register that controls whether the period registers are
swapped. When enabled in Timer/Counter mode the swap occurs at a TC event.
In the PWM mode the swap occurs at the next TC event following a hardware
switch event.

swapEnable
Values:
0 - Disable swap
1 - Enable swap

None
Function Name : Counter_SetPeriodSwap Summary : Writes the register that controls whether the period registers are swapped . When enabled in Timer / Counter mode the swap occurs at a TC event . In the PWM mode the swap occurs at the next TC event following a hardware switch event . swapEnable Values : 0 - Disable swap 1 - Enable swap None
void Counter_SetPeriodSwap(uint32 swapEnable)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Counter_CONTROL_REG &= (uint32)~Counter_RELOAD_PERIOD_MASK;
    Counter_CONTROL_REG |= ((uint32)((swapEnable & Counter_1BIT_MASK) <<
                                                            Counter_RELOAD_PERIOD_SHIFT));
    CyExitCriticalSection(enableInterrupts);
}
void Counter_SetPeriodSwap ( uint32 swapEnable ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Counter_CONTROL_REG &= ( uint32 ) ~ Counter_RELOAD_PERIOD_MASK ; Counter_CONTROL_REG |= ( ( uint32 ) ( ( swapEnable & Counter_1BIT_MASK ) << Counter_RELOAD_PERIOD_SHIFT ) ) ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Counter_SetPeriodSwap
Summary:
Writes the register that controls whether the period registers are
swapped.
Function Name : Counter_SetPeriodSwap Summary : Writes the register that controls whether the period registers are swapped .