RobotCode/codegentemp/Counter.c
void Counter_SetPWMSyncKill(uint32 syncKillEnable)
{
    uint8 enableInterrupts;

    enableInterrupts = CyEnterCriticalSection();

    Counter_CONTROL_REG &= (uint32)~Counter_PWM_SYNC_KILL_MASK;
    Counter_CONTROL_REG |= ((uint32)((syncKillEnable & Counter_1BIT_MASK)  <<
                                               Counter_PWM_SYNC_KILL_SHIFT));

    CyExitCriticalSection(enableInterrupts);
}
/*******************************************************************************
* Function Name: Counter_SetPWMSyncKill
********************************************************************************
*
* Summary:
*  Writes the register that controls whether the PWM kill signal (stop input)
*  causes asynchronous or synchronous kill operation.  By default the kill
*  operation is asynchronous.  This functionality is only applicable to the PWM
*  and PWM with dead time modes.
*
*  For Synchronous mode the kill signal disables both the line and line_n
*  signals until the next terminal count.
*
*  For Asynchronous mode the kill signal disables both the line and line_n
*  signals when the kill signal is present.  This mode should only be used
*  when the kill signal (stop input) is configured in the pass through mode
*  (Level sensitive signal).

*
* Parameters:
*  syncKillEnable
*   Values:
*     - 0 - Asynchronous
*     - 1 - Synchronous
*
* Return:
*  None
*
*******************************************************************************/
Function Name: Counter_SetPWMSyncKill
Summary:
Writes the register that controls whether the PWM kill signal (stop input)
causes asynchronous or synchronous kill operation.  By default the kill
operation is asynchronous.  This functionality is only applicable to the PWM
and PWM with dead time modes.

For Synchronous mode the kill signal disables both the line and line_n
signals until the next terminal count.

For Asynchronous mode the kill signal disables both the line and line_n
signals when the kill signal is present.  This mode should only be used
when the kill signal (stop input) is configured in the pass through mode
(Level sensitive signal).

syncKillEnable
Values:
0 - Asynchronous
1 - Synchronous

None
Function Name : Counter_SetPWMSyncKill Summary : Writes the register that controls whether the PWM kill signal ( stop input ) causes asynchronous or synchronous kill operation . By default the kill operation is asynchronous . This functionality is only applicable to the PWM and PWM with dead time modes . For Synchronous mode the kill signal disables both the line and line_n signals until the next terminal count . For Asynchronous mode the kill signal disables both the line and line_n signals when the kill signal is present . This mode should only be used when the kill signal ( stop input ) is configured in the pass through mode ( Level sensitive signal ) . syncKillEnable Values : 0 - Asynchronous 1 - Synchronous None
void Counter_SetPWMSyncKill(uint32 syncKillEnable)
{
    uint8 enableInterrupts;
    enableInterrupts = CyEnterCriticalSection();
    Counter_CONTROL_REG &= (uint32)~Counter_PWM_SYNC_KILL_MASK;
    Counter_CONTROL_REG |= ((uint32)((syncKillEnable & Counter_1BIT_MASK)  <<
                                               Counter_PWM_SYNC_KILL_SHIFT));
    CyExitCriticalSection(enableInterrupts);
}
void Counter_SetPWMSyncKill ( uint32 syncKillEnable ) { uint8 enableInterrupts ; enableInterrupts = CyEnterCriticalSection ( ) ; Counter_CONTROL_REG &= ( uint32 ) ~ Counter_PWM_SYNC_KILL_MASK ; Counter_CONTROL_REG |= ( ( uint32 ) ( ( syncKillEnable & Counter_1BIT_MASK ) << Counter_PWM_SYNC_KILL_SHIFT ) ) ; CyExitCriticalSection ( enableInterrupts ) ; }
Function Name: Counter_SetPWMSyncKill
Summary:
Writes the register that controls whether the PWM kill signal (stop input)
causes asynchronous or synchronous kill operation.
Function Name : Counter_SetPWMSyncKill Summary : Writes the register that controls whether the PWM kill signal ( stop input ) causes asynchronous or synchronous kill operation .