Hardware/LPC/W83627DHG.cs
author moel.mich
Thu, 28 Jan 2010 23:29:39 +0000
changeset 7 9523a3322777
parent 1 361e324a0ed4
child 13 d32fc5f2e822
permissions -rw-r--r--
Release version 0.1.2. First implementation for Fintek F71882FG chips. Fixed Intel Core i7 temperature reading. Changed Nvidia GPU enumeration.
     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     private ushort address;
    16 
    17     public W83627DHG(byte revision, ushort address) {      
    18       this.revision = revision;
    19       this.address = address;
    20 
    21       this.name = "Winbond W83627DHG";
    22       this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
    23     }
    24 
    25     public bool IsAvailable {
    26       get { return available; }
    27     }
    28 
    29     public string Name {
    30       get { return name; }
    31     }
    32 
    33     public string Identifier {
    34       get { return "/lpc/w83627dhg"; }
    35     }
    36 
    37     public Image Icon {
    38       get { return icon; }
    39     }
    40 
    41     public ISensor[] Sensors {
    42       get { return new ISensor[0]; }
    43     }
    44 
    45     public string GetReport() {
    46       StringBuilder r = new StringBuilder();
    47 
    48       r.AppendLine("LPC W83627DHG");
    49       r.AppendLine();
    50       r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));
    51       r.Append("Base Adress: 0x"); r.AppendLine(address.ToString("X4"));
    52       r.AppendLine();
    53 
    54       return r.ToString();
    55     }
    56 
    57     public void Update() { }
    58 
    59     #pragma warning disable 67
    60     public event SensorEventHandler SensorAdded;
    61     public event SensorEventHandler SensorRemoved;
    62     #pragma warning restore 67
    63   }
    64 }