code/WPILib/DigitalOutput.cpp
/**
 * Request interrupts synchronously on this digital output.
 * 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 output.
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 output . 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 DigitalOutput::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 DigitalOutput :: 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 output.
Request interrupts synchronously on this digital output .
//TODO: check for errors