RobotCode/codegentemp/Counter.c
void Counter_SetQDMode(uint32 qdMode)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Counter_CONTROL_REG &= (uint32)~Counter_QUAD_MODE_MASK;
    Counter_CONTROL_REG |= qdMode;

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Counter_SetQDMode
********************************************************************************
*
* Summary:
*  Sets the the Quadrature Decoder to one of the 3 supported modes.
*  Its functionality is only applicable to Quadrature Decoder operation.
*
* Parameters:
*  qdMode: Quadrature Decoder mode
*   Values:
*         - Counter_MODE_X1 - Counts on phi 1 rising
*         - Counter_MODE_X2 - Counts on both edges of phi1 (2x faster)
*         - Counter_MODE_X4 - Counts on both edges of phi1 and phi2
*                                        (4x faster)
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Counter_SetQDMode
Summary:
Sets the the Quadrature Decoder to one of the 3 supported modes.
Its functionality is only applicable to Quadrature Decoder operation.

Quadrature Decoder mode
Values:
Counter_MODE_X1 - Counts on phi 1 rising
Counter_MODE_X2 - Counts on both edges of phi1 (2x faster)
Counter_MODE_X4 - Counts on both edges of phi1 and phi2
(4x faster)

None
Function Name : Counter_SetQDMode Summary : Sets the the Quadrature Decoder to one of the 3 supported modes . Its functionality is only applicable to Quadrature Decoder operation . Quadrature Decoder mode Values : Counter_MODE_X1 - Counts on phi 1 rising Counter_MODE_X2 - Counts on both edges of phi1 ( 2x faster ) Counter_MODE_X4 - Counts on both edges of phi1 and phi2 ( 4x faster ) None
void Counter_SetQDMode(uint32 qdMode)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Counter_CONTROL_REG &= (uint32)~Counter_QUAD_MODE_MASK;
    Counter_CONTROL_REG |= qdMode;
    CyExitCriticalSection(enableInterrupts);
}
void Counter_SetQDMode ( uint32 qdMode ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Counter_CONTROL_REG &= ( uint32 ) ~ Counter_QUAD_MODE_MASK ; Counter_CONTROL_REG |= qdMode ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Counter_SetQDMode
Summary:
Sets the the Quadrature Decoder to one of the 3 supported modes.
Function Name : Counter_SetQDMode Summary : Sets the the Quadrature Decoder to one of the 3 supported modes .