C# Class CorsairLinkPlusPlus.Driver.CorsairLink.USB.BaseUSBDevice

Inheritance: CorsairLinkPlusPlus.Common.BaseDevice
Afficher le fichier Open project: Doridian/CorsairLinkPlusPlus

Protected Properties

Свойство Type Description
commandNo int
hidDevice HidSharp.HidDevice

Méthodes publiques

Méthode Description
GetLocalDeviceID ( ) : string
GetUsedChannels ( ) : byte>.Dictionary
Refresh ( bool volatileOnly ) : void
SendCommand ( byte opcode, byte channel, byte command ) : byte[]

Méthodes protégées

Méthode Description
GetSubDevicesInternal ( ) : List
MakeCommand ( byte opcode, byte channel, byte response ) : byte[]
ParseResponse ( byte response ) : byte[]

Private Methods

Méthode Description
BaseUSBDevice ( CorsairRootDevice root, HidDevice hidDevice ) : CorsairLinkPlusPlus.Common
FixUpDeviceID ( string id ) : string
GetDeviceOnChannel ( byte channel ) : BaseLinkDevice
GetDeviceOnChannel ( byte channel, byte deviceType ) : BaseLinkDevice
ReadRegister ( byte register, byte channel, byte bytes ) : byte[]
ReadSingleByteRegister ( byte register, byte channel ) : byte
SleepAfterFailure ( ) : bool
WriteRegister ( byte register, byte channel, byte bytes, bool verify = false ) : void
WriteSingleByteRegister ( byte register, byte channel, byte value, bool verify = false ) : void

Method Details

GetLocalDeviceID() public méthode

public GetLocalDeviceID ( ) : string
Résultat string

GetSubDevicesInternal() protected méthode

protected GetSubDevicesInternal ( ) : List
Résultat List

GetUsedChannels() public méthode

public GetUsedChannels ( ) : byte>.Dictionary
Résultat byte>.Dictionary

MakeCommand() protected abstract méthode

protected abstract MakeCommand ( byte opcode, byte channel, byte response ) : byte[]
opcode byte
channel byte
response byte
Résultat byte[]

ParseResponse() protected méthode

protected ParseResponse ( byte response ) : byte[]
response byte
Résultat byte[]

Refresh() public méthode

public Refresh ( bool volatileOnly ) : void
volatileOnly bool
Résultat void

SendCommand() public méthode

public SendCommand ( byte opcode, byte channel, byte command ) : byte[]
opcode byte
channel byte
command byte
Résultat byte[]

Property Details

commandNo protected_oe property

protected int commandNo
Résultat int

hidDevice protected_oe property

protected HidDevice,HidSharp hidDevice
Résultat HidSharp.HidDevice