C# Class HidSharp.ReportDescriptors.Parser.Report

Reads and writes HID reports.
ファイルを表示 Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Resets the instance to its initial state.

Report ( ) : System.Collections.Generic

Initializes a new instance of the Report class.

Scan ( byte buffer, int offset, ReportScanCallback callback ) : void

Reads a HID report, calling back a provided function for each segment.

Write ( ReportScanCallback callback ) : byte[]

Writes a HID report, calling back a provided function for each segment.

Method Details

Clear() public method

Resets the instance to its initial state.
public Clear ( ) : void
return void

Report() public method

Initializes a new instance of the Report class.
public Report ( ) : System.Collections.Generic
return System.Collections.Generic

Scan() public method

Reads a HID report, calling back a provided function for each segment.
public Scan ( byte buffer, int offset, ReportScanCallback callback ) : void
buffer byte The buffer containing the report.
offset int The offset to begin reading the report at.
callback ReportScanCallback /// This callback will be called for each report segment. /// Use this to read every value you need. ///
return void

Write() public method

Writes a HID report, calling back a provided function for each segment.
public Write ( ReportScanCallback callback ) : byte[]
callback ReportScanCallback /// This callback will be called for each report segment. /// Write to each segment to write a complete HID report. ///
return byte[]