RobotCode/codegentemp/Counter.c
void Counter_SetOneShot(uint32 oneShotEnable)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Counter_CONTROL_REG &= (uint32)~Counter_ONESHOT_MASK;
    Counter_CONTROL_REG |= ((uint32)((oneShotEnable & Counter_1BIT_MASK) <<
                                                               Counter_ONESHOT_SHIFT));

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Counter_SetOneShot
********************************************************************************
*
* Summary:
*  Writes the register that controls whether the Counter runs
*  continuously or stops when terminal count is reached.  By default the
*  Counter operates in the continuous mode.
*
* Parameters:
*  oneShotEnable
*   Values:
*     - 0 - Continuous
*     - 1 - Enable One Shot
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Counter_SetOneShot
Summary:
Writes the register that controls whether the Counter runs
continuously or stops when terminal count is reached.  By default the
Counter operates in the continuous mode.

oneShotEnable
Values:
0 - Continuous
1 - Enable One Shot

None
Function Name : Counter_SetOneShot Summary : Writes the register that controls whether the Counter runs continuously or stops when terminal count is reached . By default the Counter operates in the continuous mode . oneShotEnable Values : 0 - Continuous 1 - Enable One Shot None
void Counter_SetOneShot(uint32 oneShotEnable)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Counter_CONTROL_REG &= (uint32)~Counter_ONESHOT_MASK;
    Counter_CONTROL_REG |= ((uint32)((oneShotEnable & Counter_1BIT_MASK) <<
                                                               Counter_ONESHOT_SHIFT));
    CyExitCriticalSection(enableInterrupts);
}
void Counter_SetOneShot ( uint32 oneShotEnable ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Counter_CONTROL_REG &= ( uint32 ) ~ Counter_ONESHOT_MASK ; Counter_CONTROL_REG |= ( ( uint32 ) ( ( oneShotEnable & Counter_1BIT_MASK ) << Counter_ONESHOT_SHIFT ) ) ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Counter_SetOneShot
Summary:
Writes the register that controls whether the Counter runs
continuously or stops when terminal count is reached.
Function Name : Counter_SetOneShot Summary : Writes the register that controls whether the Counter runs continuously or stops when terminal count is reached .