C# Class UsbUirt.Transmitter

Inheritance: DriverUserBase
Afficher le fichier Open project: JordanZaerr/Usb-Uirt-managed-wrapper Class Usage Examples

Méthodes publiques

Méthode Description
Transmit ( string irCode, Emitter emitter = null, CodeFormat codeFormat = null, int repeatCount = null, int inactivityWaitTime = null ) : void

Transmits an IR code synchronously.

TransmitAsync ( string irCode, object userState = null, Emitter emitter = null, CodeFormat codeFormat = null, int repeatCount = null, int inactivityWaitTime = null ) : Task

Transmits an IR code asynchronously.

Transmitter ( Driver driver, Emitter defaultEmitter = Emitter.All, CodeFormat defaultCodeFormat = CodeFormat.Pronto, int defaultRepeatCount = 1, int defaultInactivityWaitTime ) : System

Creates an instance of the Transmitter class that can be used to transmit IR codes.

Transmitter ( Emitter defaultEmitter = Emitter.All, CodeFormat defaultCodeFormat = CodeFormat.Pronto, int defaultRepeatCount = 1, int defaultInactivityWaitTime ) : System

Creates an instance of the Transmitter class that can be used to transmit IR codes.

This class should be disposed if using this constructor.

Private Methods

Méthode Description
TransmitInternal ( string irCode, CodeFormat codeFormat, int repeatCount, int inactivityWaitTime, Emitter emitter ) : void
UUIRTTransmitIR ( IntPtr hDrvHandle, string irCode, int codeFormat, int repeatCount, int inactivityWaitTime, IntPtr hEvent, IntPtr reserved0, IntPtr reserved1 ) : bool

Method Details

Transmit() public méthode

Transmits an IR code synchronously.
public Transmit ( string irCode, Emitter emitter = null, CodeFormat codeFormat = null, int repeatCount = null, int inactivityWaitTime = null ) : void
irCode string The IR code to transmit.
emitter Emitter The emitter to transmit the IR code with
codeFormat CodeFormat The format of the IR code.
repeatCount int Indicates how many iterations of the code should be /// sent (in the case of a 2-piece code, the first stream is sent once followed /// by the second stream sent repeatCount times).
inactivityWaitTime int Time in milliseconds since the last received /// IR activity to wait before sending an IR code. Normally, pass 0 for this parameter.
Résultat void

TransmitAsync() public méthode

Transmits an IR code asynchronously.
public TransmitAsync ( string irCode, object userState = null, Emitter emitter = null, CodeFormat codeFormat = null, int repeatCount = null, int inactivityWaitTime = null ) : Task
irCode string The IR code to transmit.
userState object An optional user state object that will be passed to the /// TransmitCompleted event.
emitter Emitter The emitter to transmit the IR code with
codeFormat CodeFormat The format of the IR code.
repeatCount int Indicates how many iterations of the code should be /// sent (in the case of a 2-piece code, the first stream is sent once followed /// by the second stream sent repeatCount times).
inactivityWaitTime int Time in milliseconds since the last received /// IR activity to wait before sending an IR code. Normally, pass 0 for this parameter.
Résultat Task

Transmitter() public méthode

Creates an instance of the Transmitter class that can be used to transmit IR codes.
public Transmitter ( Driver driver, Emitter defaultEmitter = Emitter.All, CodeFormat defaultCodeFormat = CodeFormat.Pronto, int defaultRepeatCount = 1, int defaultInactivityWaitTime ) : System
driver Driver An instance of a driver that can be shared among components.
defaultEmitter Emitter The emitter to transmit the IR code with
defaultCodeFormat CodeFormat The format of the IR code.
defaultRepeatCount int Indicates how many iterations of the code should be /// sent (in the case of a 2-piece code, the first stream is sent once followed /// by the second stream sent repeatCount times).
defaultInactivityWaitTime int Time in milliseconds since the last received /// IR activity to wait before sending an IR code. Normally, pass 0 for this parameter.
Résultat System

Transmitter() public méthode

Creates an instance of the Transmitter class that can be used to transmit IR codes.
This class should be disposed if using this constructor.
public Transmitter ( Emitter defaultEmitter = Emitter.All, CodeFormat defaultCodeFormat = CodeFormat.Pronto, int defaultRepeatCount = 1, int defaultInactivityWaitTime ) : System
defaultEmitter Emitter The emitter to transmit the IR code with
defaultCodeFormat CodeFormat The format of the IR code.
defaultRepeatCount int Indicates how many iterations of the code should be /// sent (in the case of a 2-piece code, the first stream is sent once followed /// by the second stream sent repeatCount times).
defaultInactivityWaitTime int Time in milliseconds since the last received /// IR activity to wait before sending an IR code. Normally, pass 0 for this parameter.
Résultat System