RobotCode/codegentemp/Counter.c
void Counter_SetCaptureMode(uint32 triggerMode)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Counter_TRIG_CONTROL1_REG &= (uint32)~Counter_CAPTURE_MASK;
    Counter_TRIG_CONTROL1_REG |= triggerMode;

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Counter_SetCaptureMode
********************************************************************************
*
* Summary:
*  Sets the capture trigger mode. For PWM mode this is the switch input.
*  This input is not applicable to the Timer/Counter without Capture and
*  Quadrature Decoder modes.
*
* Parameters:
*  triggerMode: Enumerated trigger mode value
*   Values:
*     - Counter_TRIG_LEVEL     - Level
*     - Counter_TRIG_RISING    - Rising edge
*     - Counter_TRIG_FALLING   - Falling edge
*     - Counter_TRIG_BOTH      - Both rising and falling edge
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Counter_SetCaptureMode
Summary:
Sets the capture trigger mode. For PWM mode this is the switch input.
This input is not applicable to the Timer/Counter without Capture and
Quadrature Decoder modes.

Enumerated trigger mode value
Values:
Counter_TRIG_LEVEL     - Level
Counter_TRIG_RISING    - Rising edge
Counter_TRIG_FALLING   - Falling edge
Counter_TRIG_BOTH      - Both rising and falling edge

None
Function Name : Counter_SetCaptureMode Summary : Sets the capture trigger mode . For PWM mode this is the switch input . This input is not applicable to the Timer / Counter without Capture and Quadrature Decoder modes . Enumerated trigger mode value Values : Counter_TRIG_LEVEL - Level Counter_TRIG_RISING - Rising edge Counter_TRIG_FALLING - Falling edge Counter_TRIG_BOTH - Both rising and falling edge None
void Counter_SetCaptureMode(uint32 triggerMode)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Counter_TRIG_CONTROL1_REG &= (uint32)~Counter_CAPTURE_MASK;
    Counter_TRIG_CONTROL1_REG |= triggerMode;
    CyExitCriticalSection(enableInterrupts);
}
void Counter_SetCaptureMode ( uint32 triggerMode ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Counter_TRIG_CONTROL1_REG &= ( uint32 ) ~ Counter_CAPTURE_MASK ; Counter_TRIG_CONTROL1_REG |= triggerMode ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Counter_SetCaptureMode
Summary:
Sets the capture trigger mode.
Function Name : Counter_SetCaptureMode Summary : Sets the capture trigger mode .