C# Класс HidSharp.ReportDescriptors.Units.Unit

Describes the units of a report value.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Element ( int index ) : uint
Element ( int index, uint value ) : void
Exponent ( int index ) : int
Exponent ( int index, int value ) : void

Описание методов

DecodeExponent() публичный статический Метод

Decodes an encoded HID unit exponent.
public static DecodeExponent ( uint value ) : int
value uint The encoded exponent.
Результат int

EncodeExponent() публичный статический Метод

Encodes an exponent in HID unit form.
public static EncodeExponent ( int value ) : uint
value int The exponent.
Результат uint

Unit() публичный Метод

Initializes a new instance of the Unit class.
public Unit ( uint value ) : System
value uint The raw HID value describing the units.
Результат System