C# 클래스 SirenOfShame.Lib.Device.SirenOfShameDevice

상속: ISirenOfShameDevice
파일 보기 프로젝트 열기: AutomatedArchitecture/SirenOfShame 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Disconnect() 공개 메소드

public Disconnect ( ) : void
리턴 void

ManualControl() 공개 메소드

public ManualControl ( SirenOfShame.Lib.Device.ManualControlData manualControlData ) : void
manualControlData SirenOfShame.Lib.Device.ManualControlData
리턴 void

PerformFirmwareUpgrade() 공개 메소드

public PerformFirmwareUpgrade ( Stream hexFileStream, Action progressFunc ) : void
hexFileStream Stream
progressFunc Action
리턴 void

PlayAudioPattern() 공개 메소드

public PlayAudioPattern ( SirenOfShame.Lib.Device.AudioPattern audioPattern, System.TimeSpan durationTimeSpan ) : void
audioPattern SirenOfShame.Lib.Device.AudioPattern
durationTimeSpan System.TimeSpan
리턴 void

PlayLightPattern() 공개 메소드

public PlayLightPattern ( SirenOfShame.Lib.Device.LedPattern lightPattern, System.TimeSpan durationTimeSpan ) : void
lightPattern SirenOfShame.Lib.Device.LedPattern
durationTimeSpan System.TimeSpan
리턴 void

ReadDeviceInfo() 공개 메소드

public ReadDeviceInfo ( ) : SirenOfShame.Lib.Device.SirenOfShameInfo
리턴 SirenOfShame.Lib.Device.SirenOfShameInfo

SirenOfShameDevice() 공개 메소드

public SirenOfShameDevice ( ) : System
리턴 System

StopAudioPattern() 공개 메소드

public StopAudioPattern ( ) : void
리턴 void

StopLightPattern() 공개 메소드

public StopLightPattern ( ) : void
리턴 void

TryConnect() 공개 메소드

public TryConnect ( ) : bool
리턴 bool

UploadCustomPatterns() 공개 메소드

public UploadCustomPatterns ( IEnumerable audioPatterns, IEnumerable ledPatterns, Action progressFunc ) : void
audioPatterns IEnumerable
ledPatterns IEnumerable
progressFunc Action
리턴 void

WndProc() 공개 메소드

public WndProc ( Message &message ) : void
message Message
리턴 void