C# Класс UsbUirt.Learner

Наследование: DriverUserBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Learn ( CodeFormat codeFormat = null, LearnCodeModifier learnCodeFormat = null, uint forcedFrequency = null, System.TimeSpan timeout = null ) : string

Learns an IR code synchronously.

LearnAsync ( CodeFormat codeFormat = null, LearnCodeModifier learnCodeModifier = null, uint forcedFrequency = null, object userState = null ) : Task

Learns an IR code asynchronously.

LearnAsyncCancel ( object userState ) : bool

Cancels a LearnAsync() operation that was passed the specified userState.

LearnAsyncCancel ( ) : void

Cancels a LearnAsync() operation.

Learner ( CodeFormat defaultCodeFormat = CodeFormat.Pronto, LearnCodeModifier defaultLearnCodeModifier = LearnCodeModifier.Default ) : System
Learner ( Driver driver, CodeFormat defaultCodeFormat = CodeFormat.Pronto, LearnCodeModifier defaultLearnCodeModifier = LearnCodeModifier.Default ) : System

Приватные методы

Метод Описание
LearnCallbackProc ( uint progress, uint sigQuality, uint carrierFreq, IntPtr userState ) : void
LearnInternal ( object state ) : string
UUIRTLearnIR ( IntPtr hDrvHandle, int codeFormat, StringBuilder IRCode, LearnCallback progressProc, IntPtr userData, IntPtr pAbort, uint param1, IntPtr reserved0, IntPtr reserved1 ) : bool

Описание методов

Learn() публичный Метод

Learns an IR code synchronously.
public Learn ( CodeFormat codeFormat = null, LearnCodeModifier learnCodeFormat = null, uint forcedFrequency = null, System.TimeSpan timeout = null ) : string
codeFormat CodeFormat The format of the IR code to use in learning.
learnCodeFormat LearnCodeModifier The modifier used for the code format.
forcedFrequency uint The frequency to use in learning.
timeout System.TimeSpan The timeout after which to abort learning if it has not completed.
Результат string

LearnAsync() публичный Метод

Learns an IR code asynchronously.
public LearnAsync ( CodeFormat codeFormat = null, LearnCodeModifier learnCodeModifier = null, uint forcedFrequency = null, object userState = null ) : Task
codeFormat CodeFormat The format of the IR code to use in learning.
learnCodeModifier LearnCodeModifier The modifier used for the code format.
forcedFrequency uint The frequency to use in learning.
userState object An optional user state object that will be passed to the /// Learning and LearnCompleted events and which can be used when calling LearnAsyncCancel().
Результат Task

LearnAsyncCancel() публичный Метод

Cancels a LearnAsync() operation that was passed the specified userState.
public LearnAsyncCancel ( object userState ) : bool
userState object The optional userState object passed to LearnAsync().
Результат bool

LearnAsyncCancel() публичный Метод

Cancels a LearnAsync() operation.
public LearnAsyncCancel ( ) : void
Результат void

Learner() публичный Метод

public Learner ( CodeFormat defaultCodeFormat = CodeFormat.Pronto, LearnCodeModifier defaultLearnCodeModifier = LearnCodeModifier.Default ) : System
defaultCodeFormat CodeFormat
defaultLearnCodeModifier LearnCodeModifier
Результат System

Learner() публичный Метод

public Learner ( Driver driver, CodeFormat defaultCodeFormat = CodeFormat.Pronto, LearnCodeModifier defaultLearnCodeModifier = LearnCodeModifier.Default ) : System
driver Driver
defaultCodeFormat CodeFormat
defaultLearnCodeModifier LearnCodeModifier
Результат System