C# 클래스 HidSharp.ReportDescriptors.Parser.ReportDescriptorParser

Parses HID report descriptors.
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet

공개 메소드들

메소드 설명
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