Hardware/LPC/W83627DHG.cs
changeset 1 361e324a0ed4
child 7 9523a3322777
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Hardware/LPC/W83627DHG.cs	Tue Jan 26 22:37:48 2010 +0000
     1.3 @@ -0,0 +1,60 @@
     1.4 +using System;
     1.5 +using System.Collections.Generic;
     1.6 +using System.Drawing;
     1.7 +using System.Text;
     1.8 +
     1.9 +namespace OpenHardwareMonitor.Hardware.LPC {
    1.10 +  public class W83627DHG : IHardware {
    1.11 +
    1.12 +    private byte revision;
    1.13 +
    1.14 +    private string name;
    1.15 +    private Image icon;
    1.16 +
    1.17 +    private bool available = false;
    1.18 +
    1.19 +    public W83627DHG(byte revision) {      
    1.20 +      this.revision = revision;
    1.21 +
    1.22 +      this.name = "Winbond W83627DHG";
    1.23 +      this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
    1.24 +    }
    1.25 +
    1.26 +    public bool IsAvailable {
    1.27 +      get { return available; }
    1.28 +    }
    1.29 +
    1.30 +    public string Name {
    1.31 +      get { return name; }
    1.32 +    }
    1.33 +
    1.34 +    public string Identifier {
    1.35 +      get { return "/lpc/w83627dhg"; }
    1.36 +    }
    1.37 +
    1.38 +    public Image Icon {
    1.39 +      get { return icon; }
    1.40 +    }
    1.41 +
    1.42 +    public ISensor[] Sensors {
    1.43 +      get { return new ISensor[0]; }
    1.44 +    }
    1.45 +
    1.46 +    public string GetReport() {
    1.47 +      StringBuilder r = new StringBuilder();
    1.48 +
    1.49 +      r.AppendLine("LPC W83627DHG");
    1.50 +      r.AppendLine();
    1.51 +      r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));     
    1.52 +
    1.53 +      return r.ToString();
    1.54 +    }
    1.55 +
    1.56 +    public void Update() { }
    1.57 +
    1.58 +    #pragma warning disable 67
    1.59 +    public event SensorEventHandler SensorAdded;
    1.60 +    public event SensorEventHandler SensorRemoved;
    1.61 +    #pragma warning restore 67
    1.62 +  }
    1.63 +}