C# 클래스 ScpControl.ScpDevice

Low-level representation of an Scp-compatible Usb device.
파일 보기 프로젝트 열기: nefarius/ScpToolkit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
BulkIn byte
BulkOut byte
FileHandle IntPtr
IntIn byte
IntOut byte
Log ILog

공개 메소드들

메소드 설명
Close ( ) : bool
GetHardwareId ( string devicePath, short &vendorId, short &productId ) : void
Open ( int instance ) : bool
Open ( string devicePath ) : bool
RegisterNotify ( IntPtr form, Guid Class, IntPtr &handle, bool window = true ) : bool
Start ( ) : bool
Stop ( ) : bool
UnregisterNotify ( IntPtr handle ) : bool

보호된 메소드들

메소드 설명
FindDevice ( Guid target, string &path, int instance ) : bool
GetDeviceHandle ( string path ) : bool
GetDeviceInstance ( string &instance ) : bool
GetHardwareId ( string devicePath ) : void
InitializeDevice ( ) : bool
IsBitSet ( byte value, int offset ) : bool
ReadBulkPipe ( byte buffer, int length, int &transfered ) : bool
ReadIntPipe ( byte buffer, int length, int &transfered ) : bool
RestartDevice ( string instanceId ) : bool
ScpDevice ( ) : System
ScpDevice ( Guid Class ) : System
SendTransfer ( UsbHidRequestType requestType, UsbHidRequest request, ushort value, byte buffer, int &transfered ) : bool
SendTransfer ( byte requestType, byte request, ushort value, byte buffer, int &transfered ) : bool
ToValue ( UsbHidClassDescriptorType type, byte index = 0x00 ) : ushort
ToValue ( UsbHidReportRequestType type ) : ushort
ToValue ( UsbHidReportRequestType type, UsbHidReportRequestId id ) : ushort
UsbEndpointDirectionIn ( int addr ) : bool
UsbEndpointDirectionOut ( int addr ) : bool
WriteBulkPipe ( byte buffer, int length, int &transfered ) : bool
WriteIntPipe ( byte buffer, int length, int &transfered ) : bool

메소드 상세

Close() 공개 메소드

public Close ( ) : bool
리턴 bool

FindDevice() 보호된 정적인 메소드

protected static FindDevice ( Guid target, string &path, int instance ) : bool
target Guid
path string
instance int
리턴 bool

GetDeviceHandle() 보호된 메소드

protected GetDeviceHandle ( string path ) : bool
path string
리턴 bool

GetDeviceInstance() 보호된 메소드

protected GetDeviceInstance ( string &instance ) : bool
instance string
리턴 bool

GetHardwareId() 보호된 메소드

protected GetHardwareId ( string devicePath ) : void
devicePath string
리턴 void

GetHardwareId() 공개 정적인 메소드

public static GetHardwareId ( string devicePath, short &vendorId, short &productId ) : void
devicePath string
vendorId short
productId short
리턴 void

InitializeDevice() 보호된 메소드

protected InitializeDevice ( ) : bool
리턴 bool

IsBitSet() 보호된 메소드

protected IsBitSet ( byte value, int offset ) : bool
value byte
offset int
리턴 bool

Open() 공개 메소드

public Open ( int instance ) : bool
instance int
리턴 bool

Open() 공개 메소드

public Open ( string devicePath ) : bool
devicePath string
리턴 bool

ReadBulkPipe() 보호된 메소드

protected ReadBulkPipe ( byte buffer, int length, int &transfered ) : bool
buffer byte
length int
transfered int
리턴 bool

ReadIntPipe() 보호된 메소드

protected ReadIntPipe ( byte buffer, int length, int &transfered ) : bool
buffer byte
length int
transfered int
리턴 bool

RegisterNotify() 공개 정적인 메소드

public static RegisterNotify ( IntPtr form, Guid Class, IntPtr &handle, bool window = true ) : bool
form IntPtr
Class Guid
handle IntPtr
window bool
리턴 bool

RestartDevice() 보호된 메소드

protected RestartDevice ( string instanceId ) : bool
instanceId string
리턴 bool

ScpDevice() 보호된 메소드

protected ScpDevice ( ) : System
리턴 System

ScpDevice() 보호된 메소드

protected ScpDevice ( Guid Class ) : System
Class Guid
리턴 System

SendTransfer() 보호된 메소드

protected SendTransfer ( UsbHidRequestType requestType, UsbHidRequest request, ushort value, byte buffer, int &transfered ) : bool
requestType UsbHidRequestType
request UsbHidRequest
value ushort
buffer byte
transfered int
리턴 bool

SendTransfer() 보호된 메소드

protected SendTransfer ( byte requestType, byte request, ushort value, byte buffer, int &transfered ) : bool
requestType byte
request byte
value ushort
buffer byte
transfered int
리턴 bool

Start() 공개 메소드

public Start ( ) : bool
리턴 bool

Stop() 공개 메소드

public Stop ( ) : bool
리턴 bool

ToValue() 보호된 정적인 메소드

protected static ToValue ( UsbHidClassDescriptorType type, byte index = 0x00 ) : ushort
type UsbHidClassDescriptorType
index byte
리턴 ushort

ToValue() 보호된 정적인 메소드

protected static ToValue ( UsbHidReportRequestType type ) : ushort
type UsbHidReportRequestType
리턴 ushort

ToValue() 보호된 정적인 메소드

protected static ToValue ( UsbHidReportRequestType type, UsbHidReportRequestId id ) : ushort
type UsbHidReportRequestType
id UsbHidReportRequestId
리턴 ushort

UnregisterNotify() 공개 정적인 메소드

public static UnregisterNotify ( IntPtr handle ) : bool
handle IntPtr
리턴 bool

UsbEndpointDirectionIn() 보호된 메소드

protected UsbEndpointDirectionIn ( int addr ) : bool
addr int
리턴 bool

UsbEndpointDirectionOut() 보호된 메소드

protected UsbEndpointDirectionOut ( int addr ) : bool
addr int
리턴 bool

WriteBulkPipe() 보호된 메소드

protected WriteBulkPipe ( byte buffer, int length, int &transfered ) : bool
buffer byte
length int
transfered int
리턴 bool

WriteIntPipe() 보호된 메소드

protected WriteIntPipe ( byte buffer, int length, int &transfered ) : bool
buffer byte
length int
transfered int
리턴 bool

프로퍼티 상세

BulkIn 보호되어 있는 프로퍼티

protected byte BulkIn
리턴 byte

BulkOut 보호되어 있는 프로퍼티

protected byte BulkOut
리턴 byte

FileHandle 보호되어 있는 프로퍼티

protected IntPtr FileHandle
리턴 IntPtr

IntIn 보호되어 있는 프로퍼티

protected byte IntIn
리턴 byte

IntOut 보호되어 있는 프로퍼티

protected byte IntOut
리턴 byte

Log 보호되어 있는 정적으로 프로퍼티

protected static ILog Log
리턴 ILog