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

Reads and writes HID reports.
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

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

메소드 상세

Clear() 공개 메소드

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

Report() 공개 메소드

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

Scan() 공개 메소드

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. ///
리턴 void

Write() 공개 메소드

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. ///
리턴 byte[]