Hardware/LPC/W83627DHG.cs
author moel.mich
Thu, 28 Jan 2010 19:31:10 +0000
changeset 6 56c9d6c8c08b
child 7 9523a3322777
permissions -rw-r--r--
Fixed 5th fan channel for IT87 chips. Added ADL status code to report.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Drawing;
     4 using System.Text;
     5 
     6 namespace OpenHardwareMonitor.Hardware.LPC {
     7   public class W83627DHG : IHardware {
     8 
     9     private byte revision;
    10 
    11     private string name;
    12     private Image icon;
    13 
    14     private bool available = false;
    15 
    16     public W83627DHG(byte revision) {      
    17       this.revision = revision;
    18 
    19       this.name = "Winbond W83627DHG";
    20       this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
    21     }
    22 
    23     public bool IsAvailable {
    24       get { return available; }
    25     }
    26 
    27     public string Name {
    28       get { return name; }
    29     }
    30 
    31     public string Identifier {
    32       get { return "/lpc/w83627dhg"; }
    33     }
    34 
    35     public Image Icon {
    36       get { return icon; }
    37     }
    38 
    39     public ISensor[] Sensors {
    40       get { return new ISensor[0]; }
    41     }
    42 
    43     public string GetReport() {
    44       StringBuilder r = new StringBuilder();
    45 
    46       r.AppendLine("LPC W83627DHG");
    47       r.AppendLine();
    48       r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));     
    49 
    50       return r.ToString();
    51     }
    52 
    53     public void Update() { }
    54 
    55     #pragma warning disable 67
    56     public event SensorEventHandler SensorAdded;
    57     public event SensorEventHandler SensorRemoved;
    58     #pragma warning restore 67
    59   }
    60 }