tbf/TestBenchFramework/BenchControl/GenericDevices/ITempMeter.cs

35 lines
1.0 KiB
C#

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using TBF.BenchControl.Generic;
using TBF.Boxes;
namespace TBF.BenchControl.GenericDevices
{
/// <summary>
/// Basic temperature meter functions
/// </summary>
public interface ITempMeter : IComponent
{
/// <summary>
/// Returns current temperature in deg. Celsius
/// </summary>
/// <returns>Temperature in deg. Celsius</returns>
float ReadTemperature();
/// <summary>
/// Events: TempDone, Error
/// </summary>
/// <param name="temp">Reference to a variable for the temperature in Celsius</param>
/// <returns>ReadTempInOp instance reference casted to IOperaton</returns>
IOperation ReadTempOp(ref FloatBox temp);
/// <summary>
/// Events: tempDone, Error
/// </summary>
/// <param name="temp">Reference to a variable for the temperature in Celsius</param>
/// <returns>ReadTempInOp instance reference casted to IOperaton</returns>
IOperation ReadTempOp(ref FloatBox temp, Event tempDone);
}
}