tbf/TBF/Rig/GenericDevices/ITempMeter.cs
2021-10-26 19:38:09 +02:00

35 lines
1022 B
C#

///
/// Copyright (c) 2013-2016 Sensus Metering Systems
///
using TBF.Rig.Generic;
using TBF.Boxes;
namespace TBF.Rig.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>
double 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 DoubleBox 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 DoubleBox temp, Event tempDone);
}
}