C# 클래스 LitDev.LDIOWarrior

파일 보기 프로젝트 열기: litdev1/LitDev

공개 프로퍼티들

프로퍼티 타입 설명
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