C# Class LitDev.LDIOWarrior

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Свойство Type Description
timeout uint

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
AddDevice ( uint id ) : string
ExtractDll ( ) : void
GetDevice ( uint id ) : IOWDevice
LoadAll ( ) : int
RemoveAll ( ) : void
RemoveDevice ( uint id ) : void

Method Details

Detatch() public static méthode

Disconnect all IO-Warrior devices.
public static Detatch ( ) : void
Résultat void

GetName() public static méthode

Get the device name.
public static GetName ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Résultat Primitive

GetPID() public static méthode

Get the device PID.
public static GetPID ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Résultat Primitive

GetReportSize() public static méthode

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).
Résultat Primitive

GetSerialNumber() public static méthode

Get the device serial number.
public static GetSerialNumber ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Résultat Primitive

GetSpecialReportSize() public static méthode

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).
Résultat Primitive

GetVID() public static méthode

Get the device VID (Common to all IOWarrior types).
public static GetVID ( ) : Primitive
Résultat Primitive

GetVersion() public static méthode

Get the device firmware version.
public static GetVersion ( Primitive id ) : Primitive
id Primitive The device number (indexed from 1).
Résultat Primitive

Initialise() public static méthode

Initialise IO-Warrior devices.
public static Initialise ( ) : Primitive
Résultat Primitive

LCDWrite() public static méthode

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.
Résultat void

LastError() public static méthode

Get the last system error message. "" for no error (probably only useful for detailed error analysis of underlying system calls).
public static LastError ( ) : Primitive
Résultat Primitive

Read() public static méthode

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.
Résultat Primitive

Write() public static méthode

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.
Résultat Primitive

Property Details

timeout public_oe static_oe property

public static uint timeout
Résultat uint