C# Class ScpControl.Usb.UsbDevice

Represents a generic Usb device.
Inheritance: ScpDevice, IDsDevice
ファイルを表示 Open project: nefarius/ScpToolkit Class Usage Examples

Protected Properties

Property Type Description
PacketCounter uint
ReportDescriptor HidSharp.ReportDescriptors.Parser.ReportDescriptorParser
m_Buffer byte[]
m_CableStatus byte
m_Instance string
m_Last System.DateTime
m_PlugStatus byte
m_Publish bool

Public Methods

Method Description
Close ( ) : bool
Disconnect ( ) : bool
NewHidReport ( ) : ScpControl.Shared.Core.ScpHidReport

Crafts a new ScpHidReport with current devices meta data.

Pair ( System.Net.NetworkInformation.PhysicalAddress master ) : bool
Rumble ( byte large, byte small ) : bool
Start ( ) : bool
Stop ( ) : bool
ToString ( ) : string
UsbDevice ( ) : System

Protected Methods

Method Description
OnHidReportReceived ( ScpControl.Shared.Core.ScpHidReport report ) : void
ParseHidReport ( byte report ) : void
Process ( System.DateTime now ) : void
Shutdown ( ) : bool
UsbDevice ( System.Guid guid ) : System

Private Methods

Method Description
HidWorker ( object o ) : void

Worker thread polling for incoming Usb interrupts.

Method Details

Close() public method

public Close ( ) : bool
return bool

Disconnect() public method

public Disconnect ( ) : bool
return bool

NewHidReport() public method

Crafts a new ScpHidReport with current devices meta data.
public NewHidReport ( ) : ScpControl.Shared.Core.ScpHidReport
return ScpControl.Shared.Core.ScpHidReport

OnHidReportReceived() protected method

protected OnHidReportReceived ( ScpControl.Shared.Core.ScpHidReport report ) : void
report ScpControl.Shared.Core.ScpHidReport
return void

Pair() public method

public Pair ( System.Net.NetworkInformation.PhysicalAddress master ) : bool
master System.Net.NetworkInformation.PhysicalAddress
return bool

ParseHidReport() protected method

protected ParseHidReport ( byte report ) : void
report byte
return void

Process() protected method

protected Process ( System.DateTime now ) : void
now System.DateTime
return void

Rumble() public method

public Rumble ( byte large, byte small ) : bool
large byte
small byte
return bool

Shutdown() protected method

protected Shutdown ( ) : bool
return bool

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string

UsbDevice() public method

public UsbDevice ( ) : System
return System

UsbDevice() protected method

protected UsbDevice ( System.Guid guid ) : System
guid System.Guid
return System

Property Details

PacketCounter protected_oe property

protected uint PacketCounter
return uint

ReportDescriptor protected_oe property

protected ReportDescriptorParser,HidSharp.ReportDescriptors.Parser ReportDescriptor
return HidSharp.ReportDescriptors.Parser.ReportDescriptorParser

m_Buffer protected_oe property

protected byte[] m_Buffer
return byte[]

m_CableStatus protected_oe property

protected byte m_CableStatus
return byte

m_Instance protected_oe property

protected string m_Instance
return string

m_Last protected_oe property

protected DateTime,System m_Last
return System.DateTime

m_PlugStatus protected_oe property

protected byte m_PlugStatus
return byte

m_Publish protected_oe property

protected bool m_Publish
return bool