code/WPILib/DigitalInput.cpp
/**
 * Create an instance of a DigitalInput.
 * Creates a digital input given a slot and channel. Common creation routine
 * for all constructors.
 */
Create an instance of a DigitalInput.
Creates a digital input given a slot and channel. Common creation routine
for all constructors.
Create an instance of a DigitalInput . Creates a digital input given a slot and channel . Common creation routine for all constructors .
void DigitalInput::InitDigitalInput(UINT32 slot, UINT32 channel)
{
	Resource::CreateResourceObject(&interruptsResource, 8);
	CheckDigitalChannel(channel);
	CheckDigitalModule(slot);
	m_channel = channel;
	m_module = DigitalModule::GetInstance(slot);
	m_module->AllocateDIO(channel, true);
}
void DigitalInput :: InitDigitalInput ( UINT32 slot , UINT32 channel ) { Resource :: CreateResourceObject ( & interruptsResource , 8 ) ; CheckDigitalChannel ( channel ) ; CheckDigitalModule ( slot ) ; m_channel = channel ; m_module = DigitalModule :: GetInstance ( slot ) ; m_module -> AllocateDIO ( channel , true ) ; }
Create an instance of a DigitalInput.
Create an instance of a DigitalInput .