C# Class ftdiSharp.FTDevice

Inheritance: IDisposable
Mostra file Open project: stschake/ftdiSharp Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
GetBitMode ( ) : byte
GetStatus ( int &rxQueue, int &txQueue, int &eventStatus ) : void
List ( ) : List
Open ( ) : FTDevice
Open ( int deviceIndex ) : FTDevice
Purge ( ) : void
Purge ( FTPurge mode ) : void
Read ( byte buffer, int offset, int bytesToRead ) : int
ReadFully ( byte buffer, int offset, int bytesToRead ) : int
SetBaudRate ( int baud ) : void
SetBitMode ( FTBitMode mode, byte mask ) : void
SetDataCharacteristics ( byte dataBits, byte stopBits, FTParity parity ) : void
SetEventNotification ( FTEvent evMask, EventWaitHandle waitHandle ) : void
SetFlowControl ( FTFlowControl mask ) : void
SetFlowControl ( FTFlowControl mask, byte xOn, byte xOff ) : void
WaitFor ( FTEvent ev ) : void
Write ( byte buffer, int offset, int bytesToWrite ) : int
WriteFully ( byte buffer, int offset, int bytesToWrite ) : void

Private Methods

Method Description
FTDevice ( int index, IntPtr handle ) : System
SetInfoHint ( FTDeviceInfo info ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetBitMode() public method

public GetBitMode ( ) : byte
return byte

GetStatus() public method

public GetStatus ( int &rxQueue, int &txQueue, int &eventStatus ) : void
rxQueue int
txQueue int
eventStatus int
return void

List() public static method

public static List ( ) : List
return List

Open() public static method

public static Open ( ) : FTDevice
return FTDevice

Open() public static method

public static Open ( int deviceIndex ) : FTDevice
deviceIndex int
return FTDevice

Purge() public method

public Purge ( ) : void
return void

Purge() public method

public Purge ( FTPurge mode ) : void
mode FTPurge
return void

Read() public method

public Read ( byte buffer, int offset, int bytesToRead ) : int
buffer byte
offset int
bytesToRead int
return int

ReadFully() public method

public ReadFully ( byte buffer, int offset, int bytesToRead ) : int
buffer byte
offset int
bytesToRead int
return int

SetBaudRate() public method

public SetBaudRate ( int baud ) : void
baud int
return void

SetBitMode() public method

public SetBitMode ( FTBitMode mode, byte mask ) : void
mode FTBitMode
mask byte
return void

SetDataCharacteristics() public method

public SetDataCharacteristics ( byte dataBits, byte stopBits, FTParity parity ) : void
dataBits byte
stopBits byte
parity FTParity
return void

SetEventNotification() public method

public SetEventNotification ( FTEvent evMask, EventWaitHandle waitHandle ) : void
evMask FTEvent
waitHandle System.Threading.EventWaitHandle
return void

SetFlowControl() public method

public SetFlowControl ( FTFlowControl mask ) : void
mask FTFlowControl
return void

SetFlowControl() public method

public SetFlowControl ( FTFlowControl mask, byte xOn, byte xOff ) : void
mask FTFlowControl
xOn byte
xOff byte
return void

WaitFor() public method

public WaitFor ( FTEvent ev ) : void
ev FTEvent
return void

Write() public method

public Write ( byte buffer, int offset, int bytesToWrite ) : int
buffer byte
offset int
bytesToWrite int
return int

WriteFully() public method

public WriteFully ( byte buffer, int offset, int bytesToWrite ) : void
buffer byte
offset int
bytesToWrite int
return void