Hardware/IControl.cs
author moel.mich
Sun, 26 Jun 2011 17:00:32 +0000
changeset 306 e9127c00ada1
child 344 3145aadca3d2
permissions -rw-r--r--
Added support for package level temperature sensors on new Intel Sandy Bridge CPUs.
moel@247
     1
/*
moel@247
     2
  
moel@247
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@247
     4
moel@247
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@247
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@247
     7
  the License. You may obtain a copy of the License at
moel@247
     8
 
moel@247
     9
  http://www.mozilla.org/MPL/
moel@247
    10
moel@247
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@247
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@247
    13
  for the specific language governing rights and limitations under the License.
moel@247
    14
moel@247
    15
  The Original Code is the Open Hardware Monitor code.
moel@247
    16
moel@247
    17
  The Initial Developer of the Original Code is 
moel@247
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@247
    19
  Portions created by the Initial Developer are Copyright (C) 2010
moel@247
    20
  the Initial Developer. All Rights Reserved.
moel@247
    21
moel@247
    22
  Contributor(s):
moel@247
    23
moel@247
    24
  Alternatively, the contents of this file may be used under the terms of
moel@247
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@247
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@247
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@247
    28
  of those above. If you wish to allow use of your version of this file only
moel@247
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@247
    30
  use your version of this file under the terms of the MPL, indicate your
moel@247
    31
  decision by deleting the provisions above and replace them with the notice
moel@247
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@247
    33
  the provisions above, a recipient may use your version of this file under
moel@247
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@247
    35
 
moel@247
    36
*/
moel@247
    37
moel@247
    38
namespace OpenHardwareMonitor.Hardware {
moel@247
    39
moel@247
    40
  public enum ControlMode {
moel@247
    41
    Default,
moel@247
    42
    Software
moel@247
    43
  }
moel@247
    44
moel@247
    45
  public interface IControl {
moel@247
    46
moel@247
    47
    Identifier Identifier { get; }
moel@247
    48
moel@247
    49
    ControlMode ControlMode { get; }
moel@247
    50
moel@247
    51
    float SoftwareValue { get; }
moel@247
    52
moel@247
    53
    void SetDefault();
moel@247
    54
moel@247
    55
    float MinSoftwareValue { get; }
moel@247
    56
    float MaxSoftwareValue { get; }
moel@247
    57
moel@247
    58
    void SetSoftware(float value);
moel@247
    59
moel@247
    60
  }
moel@247
    61
}