Unit StructureHIDSharp
Describes the units of a report value.

Namespace: HidSharp.Reports.Units
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax

public struct Unit : IEquatable<Unit>

The Unit type exposes the following members.

Constructors

  NameDescription
Public methodUnit
Initializes a new instance of the Unit class.
Top
Methods

  NameDescription
Public methodStatic memberDecodeExponent
Decodes an encoded HID unit exponent.
Public methodStatic memberEncodeExponent
Encodes an exponent in HID unit form.
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(Unit)
Public methodGetExponent
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodSetExponent
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Top
Properties

  NameDescription
Public propertyCurrentExponent
Gets or sets the exponent of the report value's units of current.
Public propertyCurrentUnit
Gets the units of current corresponding to System.
Public propertyLengthExponent
Gets or sets the exponent of the report value's units of length.
Public propertyLengthUnit
Gets the units of length corresponding to System.
Public propertyLuminousIntensityExponent
Gets or sets the exponent of the report value's units of luminous intensity.
Public propertyLuminousIntensityUnit
Gets the units of luminous intensity corresponding to System.
Public propertyMassExponent
Gets or sets the exponent of the report value's units of mass.
Public propertyMassUnit
Gets the units of mass corresponding to System.
Public propertyRawValue
Gets or sets the raw HID value describing the units.
Public propertySystem
Gets or sets the unit system.
Public propertyTemperatureExponent
Gets or sets the exponent of the report value's units of temperature.
Public propertyTemperatureUnit
Gets the units of temperature corresponding to System.
Public propertyTimeExponent
Gets or sets the exponent of the report value's units of time.
Public propertyTimeUnit
Gets the units of time corresponding to System.
Top
See Also

Reference