// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace NucuCar.Sensors.Environment.Bmxx80
{
///
/// The heater profile configuration saved on the device.
///
public class Bme680HeaterProfileConfig
{
///
/// The chosen heater profile slot, ranging from 0-9.
///
public Bme680HeaterProfile HeaterProfile { get; set; }
///
/// The heater resistance.
///
public ushort HeaterResistance { get; set; }
///
/// The heater duration in the internally used format.
///
public ushort HeaterDuration { get; set; }
///
/// Creates a new instance of .
///
/// The used heater profile.
/// The heater resistance in Ohm.
/// The heating duration in ms.
/// Unknown profile setting used
public Bme680HeaterProfileConfig(Bme680HeaterProfile profile, ushort heaterResistance, ushort heaterDuration)
{
if (!Enum.IsDefined(typeof(Bme680HeaterProfile), profile))
{
throw new ArgumentOutOfRangeException();
}
HeaterProfile = profile;
HeaterResistance = heaterResistance;
HeaterDuration = heaterDuration;
}
}
}