code/WPILib/DigitalInput.cpp
/**
 * Request interrupts synchronously on this digital input.
 * Request interrupts in synchronus mode where the user program will have to explicitly
 * wait for the interrupt to occur.
 * The default is interrupt on rising edges only.
 */
Request interrupts synchronously on this digital input.
Request interrupts in synchronus mode where the user program will have to explicitly
wait for the interrupt to occur.
The default is interrupt on rising edges only.
Request interrupts synchronously on this digital input . Request interrupts in synchronus mode where the user program will have to explicitly wait for the interrupt to occur . The default is interrupt on rising edges only .
void DigitalInput::RequestInterrupts()
{
	m_interruptIndex = interruptsResource->Allocate();
	AllocateInterrupts(true);
	m_interrupt->writeConfig_Source_AnalogTrigger(GetAnalogTriggerForRouting(), &status);
	m_interrupt->writeConfig_Source_Channel(GetChannelForRouting(), &status);
	m_interrupt->writeConfig_Source_Module(GetModuleForRouting(), &status);
	SetUpSourceEdge(true, false);
	wpi_assertCleanStatus(status);
}
void DigitalInput :: RequestInterrupts ( ) { m_interruptIndex = interruptsResource -> Allocate ( ) ; AllocateInterrupts ( true ) ; m_interrupt -> writeConfig_Source_AnalogTrigger ( GetAnalogTriggerForRouting ( ) , & status ) ; m_interrupt -> writeConfig_Source_Channel ( GetChannelForRouting ( ) , & status ) ; m_interrupt -> writeConfig_Source_Module ( GetModuleForRouting ( ) , & status ) ; SetUpSourceEdge ( true , false ) ; wpi_assertCleanStatus ( status ) ; }
Request interrupts synchronously on this digital input.
Request interrupts synchronously on this digital input .
//TODO: check for errors