code/WPILib/Counter.cpp
/**
 * Disable the down counting source to the counter.
 */
Disable the down counting source to the counter.
Disable the down counting source to the counter .
void Counter::ClearDownSource()
{
	if (m_allocatedDownSource)
	{
		delete m_downSource;
		m_downSource = NULL;
		m_allocatedDownSource = false;
	}
	bool state = m_counter->readConfig_Enable(&status);
	m_counter->writeConfig_Enable(false, &status);
	m_counter->writeConfig_DownFallingEdge(false, &status);
	m_counter->writeConfig_DownRisingEdge(false, &status);
	m_counter->writeConfig_DownSource_Channel(0, &status);
	m_counter->writeConfig_DownSource_AnalogTrigger(false, &status);
	m_counter->writeConfig_Enable(state, &status);
	wpi_assertCleanStatus(status);
}
void Counter :: ClearDownSource ( ) { if ( m_allocatedDownSource ) { delete m_downSource ; m_downSource = NULL ; m_allocatedDownSource = false ; } bool state = m_counter -> readConfig_Enable ( & status ) ; m_counter -> writeConfig_Enable ( false , & status ) ; m_counter -> writeConfig_DownFallingEdge ( false , & status ) ; m_counter -> writeConfig_DownRisingEdge ( false , & status ) ; m_counter -> writeConfig_DownSource_Channel ( 0 , & status ) ; m_counter -> writeConfig_DownSource_AnalogTrigger ( false , & status ) ; m_counter -> writeConfig_Enable ( state , & status ) ; wpi_assertCleanStatus ( status ) ; }
Disable the down counting source to the counter.
Disable the down counting source to the counter .
// Index 0 of digital is always 0.