コード例 #1
0
ファイル: CCounter.cpp プロジェクト: anidev/frc-simulator
/**
 * Stop the Counter.
 * Stops the counting but doesn't effect the current value.
 * @param channel The channel of the digital input used with this counter
 */
void StopCounter(UINT32 channel)
{
    Counter *counter = AllocateCounter(channel);
    if (counter != NULL)
        counter->Stop();
}
コード例 #2
0
ファイル: CCounter.cpp プロジェクト: anidev/frc-simulator
/**
 * Stop the Counter.
 * Stops the counting but doesn't effect the current value.
 * @param slot The slot the digital module is plugged into
 * @param channel The channel of the digital input used with this counter
 */
void StopCounter(UINT8 moduleNumber, UINT32 channel)
{
    Counter *counter = AllocateCounter(moduleNumber, channel);
    if (counter != NULL)
        counter->Stop();
}