コード例 #1
0
ファイル: AD5933.cpp プロジェクト: m4loman/Impalyzer
/*
 * Wrapper Function of getMagValue. It waits until the ADC completes the conversion.
 *
 */
double AD5933_Class::getMagOnce()
{
	while (!isValueReady()) // wait until ADC conversion is complete.
	{
		//delay(delayTimeInit);
		;
	}
	return getMagValue();
}
コード例 #2
0
ファイル: AD5933.cpp プロジェクト: HugoSBIO/drive
double AD5933_Class::getMagOnce()
// Wrapper Function of getMagValue. It waits until the ADC completes the conversion.
{
	while (!isValueReady()) // wait until ADC conversion is complete.
	{
		//delay(delayTimeInit);
		;
	}
	return getMagValue();
}