code/WPILib/DigitalModule.cpp
/**
 * Configure which DO channel the PWM siganl is output on
 * @param pwmGenerator The generator index reserved by AllocateDO_PWM()
 * @param channel The Digital Output channel to output on
 */
Configure which DO channel the PWM siganl is output on
@param pwmGenerator The generator index reserved by AllocateDO_PWM()
@param channel The Digital Output channel to output on
Configure which DO channel the PWM siganl is output on @param pwmGenerator The generator index reserved by AllocateDO_PWM () @param channel The Digital Output channel to output on
void DigitalModule::SetDO_PWMOutputChannel(UINT32 pwmGenerator, UINT32 channel)
{
	if (pwmGenerator == ~0ul) return;
	switch(pwmGenerator)
	{
	case 0:
		m_fpgaDIO->writeDO_PWMConfig_OutputSelect_0(RemapDigitalChannel(channel - 1), &status);
		break;
	case 1:
		m_fpgaDIO->writeDO_PWMConfig_OutputSelect_1(RemapDigitalChannel(channel - 1), &status);
		break;
	case 2:
		m_fpgaDIO->writeDO_PWMConfig_OutputSelect_2(RemapDigitalChannel(channel - 1), &status);
		break;
	case 3:
		m_fpgaDIO->writeDO_PWMConfig_OutputSelect_3(RemapDigitalChannel(channel - 1), &status);
		break;
	}
	wpi_assertCleanStatus(status);
}
void DigitalModule :: SetDO_PWMOutputChannel ( UINT32 pwmGenerator , UINT32 channel ) { if ( pwmGenerator == ~ 0ul ) return ; switch ( pwmGenerator ) { case 0 : m_fpgaDIO -> writeDO_PWMConfig_OutputSelect_0 ( RemapDigitalChannel ( channel - 1 ) , & status ) ; break ; case 1 : m_fpgaDIO -> writeDO_PWMConfig_OutputSelect_1 ( RemapDigitalChannel ( channel - 1 ) , & status ) ; break ; case 2 : m_fpgaDIO -> writeDO_PWMConfig_OutputSelect_2 ( RemapDigitalChannel ( channel - 1 ) , & status ) ; break ; case 3 : m_fpgaDIO -> writeDO_PWMConfig_OutputSelect_3 ( RemapDigitalChannel ( channel - 1 ) , & status ) ; break ; } wpi_assertCleanStatus ( status ) ; }
Configure which DO channel the PWM siganl is output on
 @param pwmGenerator The generator index reserved by AllocateDO_PWM()
 @param channel The Digital Output channel to output on
Configure which DO channel the PWM siganl is output on @param pwmGenerator The generator index reserved by AllocateDO_PWM () @param channel The Digital Output channel to output on