C# Класс LitDev.LDIOWarrior

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
timeout uint

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

Метод Описание
Detatch ( ) : void

Disconnect all IO-Warrior devices.

GetName ( Primitive id ) : Primitive

Get the device name.

GetPID ( Primitive id ) : Primitive

Get the device PID.

GetReportSize ( Primitive id ) : Primitive

Get the report size. Number of bytes in a Read/Write. This the report size for channel 0.

GetSerialNumber ( Primitive id ) : Primitive

Get the device serial number.

GetSpecialReportSize ( Primitive id ) : Primitive

Get the special report size. Number of bytes in a special Read/Write. This the report size for channel 1.

GetVID ( ) : Primitive

Get the device VID (Common to all IOWarrior types).

GetVersion ( Primitive id ) : Primitive

Get the device firmware version.

Initialise ( ) : Primitive

Initialise IO-Warrior devices.

LCDWrite ( Primitive id, Primitive text ) : void

Write text to the LCD (untested).

LastError ( ) : Primitive

Get the last system error message. "" for no error (probably only useful for detailed error analysis of underlying system calls).

Read ( Primitive id, Primitive channel, Primitive blocking, Primitive count ) : Primitive

Read from the IO-Warrior device.

Write ( Primitive id, Primitive channel, Primitive data ) : Primitive

Write to the IO-Warrior device.

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

Метод Описание
AddDevice ( uint id ) : string
ExtractDll ( ) : void
GetDevice ( uint id ) : IOWDevice
LoadAll ( ) : int
RemoveAll ( ) : void
RemoveDevice ( uint id ) : void

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

Detatch() публичный статический Метод

Disconnect all IO-Warrior devices.
public static Detatch ( ) : void
Результат void

GetName() публичный статический Метод

Get the device name.
public static GetName ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Результат Primitive

GetPID() публичный статический Метод

Get the device PID.
public static GetPID ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Результат Primitive

GetReportSize() публичный статический Метод

Get the report size. Number of bytes in a Read/Write. This the report size for channel 0.
public static GetReportSize ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Результат Primitive

GetSerialNumber() публичный статический Метод

Get the device serial number.
public static GetSerialNumber ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Результат Primitive

GetSpecialReportSize() публичный статический Метод

Get the special report size. Number of bytes in a special Read/Write. This the report size for channel 1.
public static GetSpecialReportSize ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Результат Primitive

GetVID() публичный статический Метод

Get the device VID (Common to all IOWarrior types).
public static GetVID ( ) : Primitive
Результат Primitive

GetVersion() публичный статический Метод

Get the device firmware version.
public static GetVersion ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Результат Primitive

Initialise() публичный статический Метод

Initialise IO-Warrior devices.
public static Initialise ( ) : Primitive
Результат Primitive

LCDWrite() публичный статический Метод

Write text to the LCD (untested).
public static LCDWrite ( Primitive id, Primitive text ) : void
id Primitive The device number (indexed from 1).
text Primitive The text to write.
Результат void

LastError() публичный статический Метод

Get the last system error message. "" for no error (probably only useful for detailed error analysis of underlying system calls).
public static LastError ( ) : Primitive
Результат Primitive

Read() публичный статический Метод

Read from the IO-Warrior device.
public static Read ( Primitive id, Primitive channel, Primitive blocking, Primitive count ) : Primitive
id Primitive The device number (indexed from 1).
channel Primitive The channel to read (indexed from 0).
blocking Primitive "True" (return after the state changes) or "False" (return with current state).
count Primitive The number of bytes to read (if zero, then the ReportSize is used if channel is 0 or SpecialReportSize if channel is 1). /// See GetReportSize and GetSpecialReportSize.
Результат Primitive

Write() публичный статический Метод

Write to the IO-Warrior device.
public static Write ( Primitive id, Primitive channel, Primitive data ) : Primitive
id Primitive The device number (indexed from 1).
channel Primitive The channel to write to (indexed from 0).
data Primitive An array of bytes to send [0 to 255]. /// The array size should be ReportSize for channel 0 and SpecialReportSize for channel 1. /// See GetReportSize and GetSpecialReportSize.
Результат Primitive

Описание свойств

timeout публичное статическое свойство

public static uint timeout
Результат uint