code/WPILib/CANJaguar.cpp
/**
 * Get the reference source device for speed controller mode.
 * 
 * @return A SpeedReference indicating the currently selected reference device for speed controller mode.
 */
Get the reference source device for speed controller mode.

@return A SpeedReference indicating the currently selected reference device for speed controller mode.
Get the reference source device for speed controller mode . @return A SpeedReference indicating the currently selected reference device for speed controller mode .
CANJaguar::SpeedReference CANJaguar::GetSpeedReference(void)
{
	UINT8 dataBuffer[8];
	UINT8 dataSize;
	getTransaction(LM_API_SPD_REF, dataBuffer, &dataSize);
	if (dataSize == sizeof(UINT8))
	{
		return (SpeedReference)*dataBuffer;
	}
	return kSpeedRef_None;
}
CANJaguar :: SpeedReference CANJaguar :: GetSpeedReference ( void ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize ; getTransaction ( LM_API_SPD_REF , dataBuffer , & dataSize ) ; if ( dataSize == sizeof ( UINT8 ) ) { return ( SpeedReference ) * dataBuffer ; } return kSpeedRef_None ; }
Get the reference source device for speed controller mode.
Get the reference source device for speed controller mode .