Added code to read configured memory speed and voltage from the SMBios. (#932)

This commit is contained in:
Arnold Vink
2022-12-19 18:40:27 +01:00
committed by GitHub
parent 1131b4098d
commit 253e787d17
@@ -1091,6 +1091,8 @@ public class MemoryDevice : InformationBase
SerialNumber = GetString(0x18).Trim();
PartNumber = GetString(0x1A).Trim();
Speed = GetWord(0x15);
ConfiguredSpeed = GetWord(0x20);
ConfiguredVoltage = GetWord(0x26);
Size = GetWord(0x0C);
Type = (MemoryType)GetByte(0x12);
@@ -1133,6 +1135,16 @@ public class MemoryDevice : InformationBase
/// </summary>
public ushort Speed { get; }
/// <summary>
/// Gets the configured speed of the device, in mega transfers per second (MT/s).
/// </summary>
public ushort ConfiguredSpeed { get; }
/// <summary>
/// Gets the configured voltage of this memory device, in millivolts (mV).
/// </summary>
public ushort ConfiguredVoltage { get; }
/// <summary>
/// Gets the type of this memory device.
/// </summary>
@@ -1483,6 +1495,10 @@ public class SMBios
r.AppendLine(MemoryDevices[i].BankLocator);
r.Append("Memory Device [" + i + "] Speed: ");
r.AppendLine(MemoryDevices[i].Speed.ToString());
r.Append("Memory Device [" + i + "] Configured Speed: ");
r.AppendLine(MemoryDevices[i].ConfiguredSpeed.ToString());
r.Append("Memory Device [" + i + "] Configured Voltage: ");
r.AppendLine(MemoryDevices[i].ConfiguredVoltage.ToString());
r.Append("Memory Device [" + i + "] Size: ");
r.Append(MemoryDevices[i].Size.ToString());
r.AppendLine(" MB");