C# Class HidSharp.ReportDescriptors.Units.Unit

Describes the units of a report value.
Mostra file Open project: arvydas/BlinkStickDotNet

Public Methods

Method Description
DecodeExponent ( uint value ) : int

Decodes an encoded HID unit exponent.

EncodeExponent ( int value ) : uint

Encodes an exponent in HID unit form.

Unit ( uint value ) : System

Initializes a new instance of the Unit class.

Private Methods

Method Description
Element ( int index ) : uint
Element ( int index, uint value ) : void
Exponent ( int index ) : int
Exponent ( int index, int value ) : void

Method Details

DecodeExponent() public static method

Decodes an encoded HID unit exponent.
public static DecodeExponent ( uint value ) : int
value uint The encoded exponent.
return int

EncodeExponent() public static method

Encodes an exponent in HID unit form.
public static EncodeExponent ( int value ) : uint
value int The exponent.
return uint

Unit() public method

Initializes a new instance of the Unit class.
public Unit ( uint value ) : System
value uint The raw HID value describing the units.
return System