moel@1: using System; moel@1: using System.Collections.Generic; moel@1: using System.Drawing; moel@1: using System.Text; moel@1: moel@1: namespace OpenHardwareMonitor.Hardware.LPC { moel@1: public class W83627DHG : IHardware { moel@1: moel@1: private byte revision; moel@1: moel@1: private string name; moel@1: private Image icon; moel@1: moel@1: private bool available = false; moel@1: moel@1: public W83627DHG(byte revision) { moel@1: this.revision = revision; moel@1: moel@1: this.name = "Winbond W83627DHG"; moel@1: this.icon = Utilities.EmbeddedResources.GetImage("chip.png"); moel@1: } moel@1: moel@1: public bool IsAvailable { moel@1: get { return available; } moel@1: } moel@1: moel@1: public string Name { moel@1: get { return name; } moel@1: } moel@1: moel@1: public string Identifier { moel@1: get { return "/lpc/w83627dhg"; } moel@1: } moel@1: moel@1: public Image Icon { moel@1: get { return icon; } moel@1: } moel@1: moel@1: public ISensor[] Sensors { moel@1: get { return new ISensor[0]; } moel@1: } moel@1: moel@1: public string GetReport() { moel@1: StringBuilder r = new StringBuilder(); moel@1: moel@1: r.AppendLine("LPC W83627DHG"); moel@1: r.AppendLine(); moel@1: r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X")); moel@1: moel@1: return r.ToString(); moel@1: } moel@1: moel@1: public void Update() { } moel@1: moel@1: #pragma warning disable 67 moel@1: public event SensorEventHandler SensorAdded; moel@1: public event SensorEventHandler SensorRemoved; moel@1: #pragma warning restore 67 moel@1: } moel@1: }