C# Class OpenHardwareMonitor.Hardware.HDD.SmartAttribute

显示文件 Open project: pklinef/open-hardware-monitor Class Usage Examples

Public Methods

Method Description
ConvertValue ( DriveAttributeValue value ) : float
SmartAttribute ( byte identifier, string name ) : System

Initializes a new instance of the SmartAttribute class.

SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion ) : System

Initializes a new instance of the SmartAttribute class.

SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion, SensorType sensorType, int sensorChannel, bool defaultHiddenSensor = false ) : System

Initializes a new instance of the SmartAttribute class.

Method Details

ConvertValue() public method

public ConvertValue ( DriveAttributeValue value ) : float
value DriveAttributeValue
return float

SmartAttribute() public method

Initializes a new instance of the SmartAttribute class.
public SmartAttribute ( byte identifier, string name ) : System
identifier byte The SMART identifier of the attribute.
name string The name of the attribute.
return System

SmartAttribute() public method

Initializes a new instance of the SmartAttribute class.
public SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion ) : System
identifier byte The SMART identifier of the attribute.
name string The name of the attribute.
rawValueConversion RawValueConversion A delegate for converting the raw byte /// array into a value (or null to use the attribute value).
return System

SmartAttribute() public method

Initializes a new instance of the SmartAttribute class.
public SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion, SensorType sensorType, int sensorChannel, bool defaultHiddenSensor = false ) : System
identifier byte The SMART identifier of the attribute.
name string The name of the attribute.
rawValueConversion RawValueConversion A delegate for converting the raw byte /// array into a value (or null to use the attribute value).
sensorType SensorType Type of the sensor or null if no sensor is to /// be created.
sensorChannel int If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.
defaultHiddenSensor bool True to hide the sensor initially.
return System