code/WPILib/DigitalModule.cpp
/**
 * Read the direction of a the Digital I/O lines
 * A 1 bit means output and a 0 bit means input.
 */
Read the direction of a the Digital I/O lines
A 1 bit means output and a 0 bit means input.
Read the direction of a the Digital I / O lines A 1 bit means output and a 0 bit means input .
bool DigitalModule::GetDIODirection(UINT32 channel)
{
	status = 0;
	UINT32 currentOutputEnable = m_fpgaDIO->readOutputEnable(&status);
	wpi_assertCleanStatus(status);
	return ((currentOutputEnable >> RemapDigitalChannel(channel - 1)) & 1) != 0;
}
bool DigitalModule :: GetDIODirection ( UINT32 channel ) { status = 0 ; UINT32 currentOutputEnable = m_fpgaDIO -> readOutputEnable ( & status ) ; wpi_assertCleanStatus ( status ) ; return ( ( currentOutputEnable >> RemapDigitalChannel ( channel - 1 ) ) & 1 ) != 0 ; }
Read the direction of a the Digital I/O lines
 A 1 bit means output and a 0 bit means input.
Read the direction of a the Digital I / O lines A 1 bit means output and a 0 bit means input .
//Shift 00000001 over channel-1 places. //AND it against the currentOutputEnable //if it == 0, then return false //else return true