C# Class SirenOfShame.Lib.Device.SirenOfShameDevice

Inheritance: ISirenOfShameDevice
Afficher le fichier Open project: AutomatedArchitecture/SirenOfShame Class Usage Examples

Méthodes publiques

Méthode Description
Disconnect ( ) : void
ManualControl ( SirenOfShame.Lib.Device.ManualControlData manualControlData ) : void
PerformFirmwareUpgrade ( Stream hexFileStream, Action progressFunc ) : void
PlayAudioPattern ( SirenOfShame.Lib.Device.AudioPattern audioPattern, System.TimeSpan durationTimeSpan ) : void
PlayLightPattern ( SirenOfShame.Lib.Device.LedPattern lightPattern, System.TimeSpan durationTimeSpan ) : void
ReadDeviceInfo ( ) : SirenOfShame.Lib.Device.SirenOfShameInfo
SirenOfShameDevice ( ) : System
StopAudioPattern ( ) : void
StopLightPattern ( ) : void
TryConnect ( ) : bool
UploadCustomPatterns ( IEnumerable audioPatterns, IEnumerable ledPatterns, Action progressFunc ) : void
WndProc ( Message &message ) : void

Private Methods

Méthode Description
BeginAsyncRead ( ) : void
CalculateDurationFromTimeSpan ( System.TimeSpan durationTimeSpan ) : UInt16
CheckConnection ( ) : void
EnsureConnected ( ) : void
FindDevice ( ) : UsbLib.DeviceInterface
OnConnected ( ) : void
OnDisconnected ( ) : void
OnRead ( IAsyncResult ar ) : void
ReadAudioPatterns ( ) : void
ReadLedPatterns ( ) : void
SendControlPacket ( ControlByte1Flags controlByte = ControlByte1Flags.Ignore, byte audioMode = (byte)0xff, UInt16 audioDuration = (UInt16)0xffff, byte ledMode = (byte)0xff, UInt16 ledDuration = (UInt16)0xffff, byte readAudioIndex = (byte)0xff, byte readLedIndex = (byte)0xff, byte manualLeds0 = (byte)0xff, byte manualLeds1 = (byte)0xff, byte manualLeds2 = (byte)0xff, byte manualLeds3 = (byte)0xff, byte manualLeds4 = (byte)0xff ) : void
SendData ( int address, Stream stream ) : void
_usbDeviceNotification_UsbDeviceArrived ( object sender, EventArgs e ) : void

Method Details

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

ManualControl() public méthode

public ManualControl ( SirenOfShame.Lib.Device.ManualControlData manualControlData ) : void
manualControlData SirenOfShame.Lib.Device.ManualControlData
Résultat void

PerformFirmwareUpgrade() public méthode

public PerformFirmwareUpgrade ( Stream hexFileStream, Action progressFunc ) : void
hexFileStream Stream
progressFunc Action
Résultat void

PlayAudioPattern() public méthode

public PlayAudioPattern ( SirenOfShame.Lib.Device.AudioPattern audioPattern, System.TimeSpan durationTimeSpan ) : void
audioPattern SirenOfShame.Lib.Device.AudioPattern
durationTimeSpan System.TimeSpan
Résultat void

PlayLightPattern() public méthode

public PlayLightPattern ( SirenOfShame.Lib.Device.LedPattern lightPattern, System.TimeSpan durationTimeSpan ) : void
lightPattern SirenOfShame.Lib.Device.LedPattern
durationTimeSpan System.TimeSpan
Résultat void

ReadDeviceInfo() public méthode

public ReadDeviceInfo ( ) : SirenOfShame.Lib.Device.SirenOfShameInfo
Résultat SirenOfShame.Lib.Device.SirenOfShameInfo

SirenOfShameDevice() public méthode

public SirenOfShameDevice ( ) : System
Résultat System

StopAudioPattern() public méthode

public StopAudioPattern ( ) : void
Résultat void

StopLightPattern() public méthode

public StopLightPattern ( ) : void
Résultat void

TryConnect() public méthode

public TryConnect ( ) : bool
Résultat bool

UploadCustomPatterns() public méthode

public UploadCustomPatterns ( IEnumerable audioPatterns, IEnumerable ledPatterns, Action progressFunc ) : void
audioPatterns IEnumerable
ledPatterns IEnumerable
progressFunc Action
Résultat void

WndProc() public méthode

public WndProc ( Message &message ) : void
message Message
Résultat void