C# Класс HidSharp.ReportDescriptors.Parser.ReportDescriptorParser

Parses HID report descriptors.
Показать файл Открыть проект

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

Метод Описание
Clear ( ) : void

Resets the parser to its initial state.

GetGlobalItem ( GlobalItemTag tag ) : EncodedItem
GetGlobalItemValue ( GlobalItemTag tag ) : uint
GetReport ( ReportType type, byte id ) : Report
IsGlobalItemSet ( GlobalItemTag tag ) : bool
Parse ( EncodedItem item ) : void

Parses a single EncodedItem. Call this repeatedly for every item to completely decode a report descriptor.

Parse ( IEnumerable items ) : void

Parses all of the EncodedItem elements in a report descriptor.

Parse ( byte buffer ) : void

Parses a raw HID report descriptor.

Parse ( byte buffer, int offset, int count ) : void

Parses a raw HID report descriptor.

ParseDataMain ( MainItemTag tag, uint value, LocalIndexes &indexes ) : void
ParseMain ( MainItemTag tag, uint value ) : void
ParseMainIndexes ( LocalIndexes indexes ) : void
ReportDescriptorParser ( ) : System

Initializes a new instance of the ReportDescriptorParser class.

TryGetReport ( ReportType type, byte id, Report &report ) : bool

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

Метод Описание
AddIndex ( uint>.List list, int action, uint value ) : void
FilterReports ( ReportType reportType ) : IEnumerable
GetMaxLengthOfReports ( IEnumerable reports ) : int
UpdateIndexList ( List values, int delimiter, IndexBase &index, uint value ) : void
UpdateIndexListCommit ( List values, int delimiter, IndexBase &index ) : void
UpdateIndexMaximum ( IndexBase &index, uint value ) : void
UpdateIndexMinimum ( IndexBase &index, uint value ) : void

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

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

Resets the parser to its initial state.
public Clear ( ) : void
Результат void

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

public GetGlobalItem ( GlobalItemTag tag ) : EncodedItem
tag GlobalItemTag
Результат EncodedItem

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

public GetGlobalItemValue ( GlobalItemTag tag ) : uint
tag GlobalItemTag
Результат uint

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

public GetReport ( ReportType type, byte id ) : Report
type ReportType
id byte
Результат Report

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

public IsGlobalItemSet ( GlobalItemTag tag ) : bool
tag GlobalItemTag
Результат bool

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

Parses a single EncodedItem. Call this repeatedly for every item to completely decode a report descriptor.
public Parse ( EncodedItem item ) : void
item EncodedItem The item to parse.
Результат void

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

Parses all of the EncodedItem elements in a report descriptor.
public Parse ( IEnumerable items ) : void
items IEnumerable The items to parse.
Результат void

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

Parses a raw HID report descriptor.
public Parse ( byte buffer ) : void
buffer byte The buffer containing the report descriptor.
Результат void

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

Parses a raw HID report descriptor.
public Parse ( byte buffer, int offset, int count ) : void
buffer byte The buffer containing the report descriptor.
offset int The offset into the buffer to begin parsing from.
count int The number of bytes to parse.
Результат void

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

public ParseDataMain ( MainItemTag tag, uint value, LocalIndexes &indexes ) : void
tag MainItemTag
value uint
indexes LocalIndexes
Результат void

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

public ParseMain ( MainItemTag tag, uint value ) : void
tag MainItemTag
value uint
Результат void

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

public ParseMainIndexes ( LocalIndexes indexes ) : void
indexes LocalIndexes
Результат void

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

Initializes a new instance of the ReportDescriptorParser class.
public ReportDescriptorParser ( ) : System
Результат System

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

public TryGetReport ( ReportType type, byte id, Report &report ) : bool
type ReportType
id byte
report Report
Результат bool