C# 클래스 DS4Windows.ScpDevice

파일 보기 프로젝트 열기: ROFISH/FC30XInput 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_BulkIn Byte
m_BulkOut Byte
m_Class Guid
m_FileHandle SafeFileHandle
m_IntIn Byte
m_IntOut Byte
m_IsActive Boolean
m_Path String
m_WinUsbHandle IntPtr

공개 메소드들

메소드 설명
Close ( ) : Boolean
Open ( Int32 Instance ) : Boolean
Open ( String DevicePath ) : Boolean
ReadBulkPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
ReadIntPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
RegisterNotify ( IntPtr Form, Guid Class, IntPtr &Handle, Boolean Window = true ) : Boolean
ScpDevice ( ) : System
ScpDevice ( IContainer container ) : System
ScpDevice ( String Class ) : System
SendTransfer ( Byte RequestType, Byte Request, UInt16 Value, Byte Buffer, Int32 &Transfered ) : Boolean
Start ( ) : Boolean
Stop ( ) : Boolean
UnregisterNotify ( IntPtr Handle ) : Boolean
WriteBulkPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
WriteIntPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

Find ( Guid Target, String &Path, Int32 Instance ) : Boolean
GetDeviceHandle ( String Path ) : Boolean
GetDeviceInstance ( String &Instance ) : Boolean
InitializeDevice ( ) : Boolean
RestartDevice ( String InstanceId ) : Boolean
UsbEndpointDirectionIn ( Int32 addr ) : Boolean
UsbEndpointDirectionOut ( Int32 addr ) : Boolean

비공개 메소드들

메소드 설명
CM_Get_Device_ID ( Int32 dnDevInst, IntPtr Buffer, Int32 BufferLen, Int32 ulFlags ) : Int32
CreateFile ( String lpFileName, UInt32 dwDesiredAccess, UInt32 dwShareMode, IntPtr lpSecurityAttributes, UInt32 dwCreationDisposition, UInt32 dwFlagsAndAttributes, UInt32 hTemplateFile ) : SafeFileHandle
DeviceIoControl ( SafeFileHandle DeviceHandle, Int32 IoControlCode, Byte InBuffer, Int32 InBufferSize, Byte OutBuffer, Int32 OutBufferSize, Int32 &BytesReturned, IntPtr Overlapped ) : Boolean
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RegisterDeviceNotification ( IntPtr hRecipient, IntPtr NotificationFilter, Int32 Flags ) : IntPtr
RegisterServiceCtrlHandlerEx ( String ServiceName, ServiceControlHandlerEx Callback, IntPtr Context ) : IntPtr
SetupDiChangeState ( IntPtr DeviceInfoSet, SP_DEVICE_INTERFACE_DATA &DeviceInterfaceData ) : Boolean
SetupDiCreateDeviceInfoList ( System &ClassGuid, Int32 hwndParent ) : Int32
SetupDiDestroyDeviceInfoList ( IntPtr DeviceInfoSet ) : Int32
SetupDiEnumDeviceInterfaces ( IntPtr DeviceInfoSet, IntPtr DeviceInfoData, System &InterfaceClassGuid, Int32 MemberIndex, SP_DEVICE_INTERFACE_DATA &DeviceInterfaceData ) : Boolean
SetupDiGetClassDevs ( System &ClassGuid, IntPtr Enumerator, IntPtr hwndParent, Int32 Flags ) : IntPtr
SetupDiGetDeviceInterfaceDetail ( IntPtr DeviceInfoSet, SP_DEVICE_INTERFACE_DATA &DeviceInterfaceData, IntPtr DeviceInterfaceDetailData, Int32 DeviceInterfaceDetailDataSize, Int32 &RequiredSize, IntPtr DeviceInfoData ) : Boolean
SetupDiGetDeviceInterfaceDetail ( IntPtr DeviceInfoSet, SP_DEVICE_INTERFACE_DATA &DeviceInterfaceData, IntPtr DeviceInterfaceDetailData, Int32 DeviceInterfaceDetailDataSize, Int32 &RequiredSize, SP_DEVICE_INTERFACE_DATA &DeviceInfoData ) : Boolean
SetupDiOpenDeviceInfo ( IntPtr DeviceInfoSet, String DeviceInstanceId, IntPtr hwndParent, Int32 Flags, SP_DEVICE_INTERFACE_DATA &DeviceInfoData ) : Boolean
SetupDiSetClassInstallParams ( IntPtr DeviceInfoSet, SP_DEVICE_INTERFACE_DATA &DeviceInterfaceData, SP_PROPCHANGE_PARAMS &ClassInstallParams, Int32 ClassInstallParamsSize ) : Boolean
UnregisterDeviceNotification ( IntPtr Handle ) : Boolean
WinUsb_AbortPipe ( IntPtr InterfaceHandle, Byte PipeID ) : Boolean
WinUsb_ControlTransfer ( IntPtr InterfaceHandle, WINUSB_SETUP_PACKET SetupPacket, Byte Buffer, Int32 BufferLength, Int32 &LengthTransferred, IntPtr Overlapped ) : Boolean
WinUsb_FlushPipe ( IntPtr InterfaceHandle, Byte PipeID ) : Boolean
WinUsb_Free ( IntPtr InterfaceHandle ) : Boolean
WinUsb_Initialize ( SafeFileHandle DeviceHandle, IntPtr &InterfaceHandle ) : Boolean
WinUsb_QueryInterfaceSettings ( IntPtr InterfaceHandle, Byte AlternateInterfaceNumber, USB_INTERFACE_DESCRIPTOR &UsbAltInterfaceDescriptor ) : Boolean
WinUsb_QueryPipe ( IntPtr InterfaceHandle, Byte AlternateInterfaceNumber, Byte PipeIndex, WINUSB_PIPE_INFORMATION &PipeInformation ) : Boolean
WinUsb_ReadPipe ( IntPtr InterfaceHandle, Byte PipeID, Byte Buffer, Int32 BufferLength, Int32 &LengthTransferred, IntPtr Overlapped ) : Boolean
WinUsb_WritePipe ( IntPtr InterfaceHandle, Byte PipeID, Byte Buffer, Int32 BufferLength, Int32 &LengthTransferred, IntPtr Overlapped ) : Boolean

메소드 상세

Close() 공개 메소드

public Close ( ) : Boolean
리턴 Boolean

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

Find() 보호된 메소드

protected Find ( Guid Target, String &Path, Int32 Instance ) : Boolean
Target Guid
Path String
Instance Int32
리턴 Boolean

GetDeviceHandle() 보호된 메소드

protected GetDeviceHandle ( String Path ) : Boolean
Path String
리턴 Boolean

GetDeviceInstance() 보호된 메소드

protected GetDeviceInstance ( String &Instance ) : Boolean
Instance String
리턴 Boolean

InitializeDevice() 보호된 메소드

protected InitializeDevice ( ) : Boolean
리턴 Boolean

Open() 공개 메소드

public Open ( Int32 Instance ) : Boolean
Instance Int32
리턴 Boolean

Open() 공개 메소드

public Open ( String DevicePath ) : Boolean
DevicePath String
리턴 Boolean

ReadBulkPipe() 공개 메소드

public ReadBulkPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
Buffer Byte
Length Int32
Transfered Int32
리턴 Boolean

ReadIntPipe() 공개 메소드

public ReadIntPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
Buffer Byte
Length Int32
Transfered Int32
리턴 Boolean

RegisterNotify() 공개 정적인 메소드

public static RegisterNotify ( IntPtr Form, Guid Class, IntPtr &Handle, Boolean Window = true ) : Boolean
Form IntPtr
Class Guid
Handle IntPtr
Window Boolean
리턴 Boolean

RestartDevice() 보호된 메소드

protected RestartDevice ( String InstanceId ) : Boolean
InstanceId String
리턴 Boolean

ScpDevice() 공개 메소드

public ScpDevice ( ) : System
리턴 System

ScpDevice() 공개 메소드

public ScpDevice ( IContainer container ) : System
container IContainer
리턴 System

ScpDevice() 공개 메소드

public ScpDevice ( String Class ) : System
Class String
리턴 System

SendTransfer() 공개 메소드

public SendTransfer ( Byte RequestType, Byte Request, UInt16 Value, Byte Buffer, Int32 &Transfered ) : Boolean
RequestType Byte
Request Byte
Value UInt16
Buffer Byte
Transfered Int32
리턴 Boolean

Start() 공개 메소드

public Start ( ) : Boolean
리턴 Boolean

Stop() 공개 메소드

public Stop ( ) : Boolean
리턴 Boolean

UnregisterNotify() 공개 정적인 메소드

public static UnregisterNotify ( IntPtr Handle ) : Boolean
Handle IntPtr
리턴 Boolean

UsbEndpointDirectionIn() 보호된 메소드

protected UsbEndpointDirectionIn ( Int32 addr ) : Boolean
addr Int32
리턴 Boolean

UsbEndpointDirectionOut() 보호된 메소드

protected UsbEndpointDirectionOut ( Int32 addr ) : Boolean
addr Int32
리턴 Boolean

WriteBulkPipe() 공개 메소드

public WriteBulkPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
Buffer Byte
Length Int32
Transfered Int32
리턴 Boolean

WriteIntPipe() 공개 메소드

public WriteIntPipe ( Byte Buffer, Int32 Length, Int32 &Transfered ) : Boolean
Buffer Byte
Length Int32
Transfered Int32
리턴 Boolean

프로퍼티 상세

m_BulkIn 보호되어 있는 프로퍼티

protected Byte m_BulkIn
리턴 Byte

m_BulkOut 보호되어 있는 프로퍼티

protected Byte m_BulkOut
리턴 Byte

m_Class 보호되어 있는 프로퍼티

protected Guid m_Class
리턴 Guid

m_FileHandle 보호되어 있는 프로퍼티

protected SafeFileHandle m_FileHandle
리턴 SafeFileHandle

m_IntIn 보호되어 있는 프로퍼티

protected Byte m_IntIn
리턴 Byte

m_IntOut 보호되어 있는 프로퍼티

protected Byte m_IntOut
리턴 Byte

m_IsActive 보호되어 있는 프로퍼티

protected Boolean m_IsActive
리턴 Boolean

m_Path 보호되어 있는 프로퍼티

protected String m_Path
리턴 String

m_WinUsbHandle 보호되어 있는 프로퍼티

protected IntPtr m_WinUsbHandle
리턴 IntPtr