C# Class ScpControl.Usb.UsbDevice

Represents a generic Usb device.
Inheritance: ScpDevice, IDsDevice
Afficher le fichier Open project: nefarius/ScpToolkit Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
HidWorker ( object o ) : void

Worker thread polling for incoming Usb interrupts.

Method Details

Close() public méthode

public Close ( ) : bool
Résultat bool

Disconnect() public méthode

public Disconnect ( ) : bool
Résultat bool

NewHidReport() public méthode

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

OnHidReportReceived() protected méthode

protected OnHidReportReceived ( ScpControl.Shared.Core.ScpHidReport report ) : void
report ScpControl.Shared.Core.ScpHidReport
Résultat void

Pair() public méthode

public Pair ( System.Net.NetworkInformation.PhysicalAddress master ) : bool
master System.Net.NetworkInformation.PhysicalAddress
Résultat bool

ParseHidReport() protected méthode

protected ParseHidReport ( byte report ) : void
report byte
Résultat void

Process() protected méthode

protected Process ( System.DateTime now ) : void
now System.DateTime
Résultat void

Rumble() public méthode

public Rumble ( byte large, byte small ) : bool
large byte
small byte
Résultat bool

Shutdown() protected méthode

protected Shutdown ( ) : bool
Résultat bool

Start() public méthode

public Start ( ) : bool
Résultat bool

Stop() public méthode

public Stop ( ) : bool
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

UsbDevice() public méthode

public UsbDevice ( ) : System
Résultat System

UsbDevice() protected méthode

protected UsbDevice ( System.Guid guid ) : System
guid System.Guid
Résultat System

Property Details

PacketCounter protected_oe property

protected uint PacketCounter
Résultat uint

ReportDescriptor protected_oe property

protected ReportDescriptorParser,HidSharp.ReportDescriptors.Parser ReportDescriptor
Résultat HidSharp.ReportDescriptors.Parser.ReportDescriptorParser

m_Buffer protected_oe property

protected byte[] m_Buffer
Résultat byte[]

m_CableStatus protected_oe property

protected byte m_CableStatus
Résultat byte

m_Instance protected_oe property

protected string m_Instance
Résultat string

m_Last protected_oe property

protected DateTime,System m_Last
Résultat System.DateTime

m_PlugStatus protected_oe property

protected byte m_PlugStatus
Résultat byte

m_Publish protected_oe property

protected bool m_Publish
Résultat bool