code/WPILib/Counter.cpp
/**
 * Disable the up counting source to the counter.
 */
Disable the up counting source to the counter.
Disable the up counting source to the counter .
void Counter::ClearUpSource()
{
	if (m_allocatedUpSource)
	{
		delete m_upSource;
		m_upSource = NULL;
		m_allocatedUpSource = false;
	}
	bool state = m_counter->readConfig_Enable(&status);
	m_counter->writeConfig_Enable(false, &status);
	m_counter->writeConfig_UpFallingEdge(false, &status);
	m_counter->writeConfig_UpRisingEdge(false, &status);
	m_counter->writeConfig_UpSource_Channel(0, &status);
	m_counter->writeConfig_UpSource_AnalogTrigger(false, &status);
	m_counter->writeConfig_Enable(state, &status);
	wpi_assertCleanStatus(status);
}
void Counter :: ClearUpSource ( ) { if ( m_allocatedUpSource ) { delete m_upSource ; m_upSource = NULL ; m_allocatedUpSource = false ; } bool state = m_counter -> readConfig_Enable ( & status ) ; m_counter -> writeConfig_Enable ( false , & status ) ; m_counter -> writeConfig_UpFallingEdge ( false , & status ) ; m_counter -> writeConfig_UpRisingEdge ( false , & status ) ; m_counter -> writeConfig_UpSource_Channel ( 0 , & status ) ; m_counter -> writeConfig_UpSource_AnalogTrigger ( false , & status ) ; m_counter -> writeConfig_Enable ( state , & status ) ; wpi_assertCleanStatus ( status ) ; }
Disable the up counting source to the counter.
Disable the up counting source to the counter .
// Index 0 of digital is always 0.