Свойство | Type | Description | |
---|---|---|---|
timeout | uint |
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.
|
Méthode | Description | |
---|---|---|
AddDevice ( uint id ) : string | ||
ExtractDll ( ) : void | ||
GetDevice ( uint id ) : |
||
LoadAll ( ) : int | ||
RemoveAll ( ) : void | ||
RemoveDevice ( uint id ) : void |
public static GetName ( Primitive id ) : Primitive | ||
id | Primitive | The device number (indexed from 1). |
Résultat | Primitive |
public static GetPID ( Primitive id ) : Primitive | ||
id | Primitive | The device number (indexed from 1). |
Résultat | Primitive |
public static GetReportSize ( Primitive id ) : Primitive | ||
id | Primitive | The device number (indexed from 1). |
Résultat | Primitive |
public static GetSerialNumber ( Primitive id ) : Primitive | ||
id | Primitive | The device number (indexed from 1). |
Résultat | Primitive |
public static GetSpecialReportSize ( Primitive id ) : Primitive | ||
id | Primitive | The device number (indexed from 1). |
Résultat | Primitive |
public static GetVersion ( Primitive id ) : Primitive | ||
id | Primitive | The device number (indexed from 1). |
Résultat | Primitive |
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 |
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 |
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 |