C# Class HidSharp.ReportDescriptors.Parser.ReportDescriptorParser

Parses HID report descriptors.
Afficher le fichier Open project: arvydas/BlinkStickDotNet

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Clear() public méthode

Resets the parser to its initial state.
public Clear ( ) : void
Résultat void

GetGlobalItem() public méthode

public GetGlobalItem ( GlobalItemTag tag ) : EncodedItem
tag GlobalItemTag
Résultat EncodedItem

GetGlobalItemValue() public méthode

public GetGlobalItemValue ( GlobalItemTag tag ) : uint
tag GlobalItemTag
Résultat uint

GetReport() public méthode

public GetReport ( ReportType type, byte id ) : Report
type ReportType
id byte
Résultat Report

IsGlobalItemSet() public méthode

public IsGlobalItemSet ( GlobalItemTag tag ) : bool
tag GlobalItemTag
Résultat bool

Parse() public méthode

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.
Résultat void

Parse() public méthode

Parses all of the EncodedItem elements in a report descriptor.
public Parse ( IEnumerable items ) : void
items IEnumerable The items to parse.
Résultat void

Parse() public méthode

Parses a raw HID report descriptor.
public Parse ( byte buffer ) : void
buffer byte The buffer containing the report descriptor.
Résultat void

Parse() public méthode

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.
Résultat void

ParseDataMain() public méthode

public ParseDataMain ( MainItemTag tag, uint value, LocalIndexes &indexes ) : void
tag MainItemTag
value uint
indexes LocalIndexes
Résultat void

ParseMain() public méthode

public ParseMain ( MainItemTag tag, uint value ) : void
tag MainItemTag
value uint
Résultat void

ParseMainIndexes() public méthode

public ParseMainIndexes ( LocalIndexes indexes ) : void
indexes LocalIndexes
Résultat void

ReportDescriptorParser() public méthode

Initializes a new instance of the ReportDescriptorParser class.
public ReportDescriptorParser ( ) : System
Résultat System

TryGetReport() public méthode

public TryGetReport ( ReportType type, byte id, Report &report ) : bool
type ReportType
id byte
report Report
Résultat bool