C# Class ftdiSharp.FTDevice

Inheritance: IDisposable
Afficher le fichier Open project: stschake/ftdiSharp Class Usage Examples

Méthodes publiques

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

Méthode Description
FTDevice ( int index, IntPtr handle ) : System
SetInfoHint ( FTDeviceInfo info ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetBitMode() public méthode

public GetBitMode ( ) : byte
Résultat byte

GetStatus() public méthode

public GetStatus ( int &rxQueue, int &txQueue, int &eventStatus ) : void
rxQueue int
txQueue int
eventStatus int
Résultat void

List() public static méthode

public static List ( ) : List
Résultat List

Open() public static méthode

public static Open ( ) : FTDevice
Résultat FTDevice

Open() public static méthode

public static Open ( int deviceIndex ) : FTDevice
deviceIndex int
Résultat FTDevice

Purge() public méthode

public Purge ( ) : void
Résultat void

Purge() public méthode

public Purge ( FTPurge mode ) : void
mode FTPurge
Résultat void

Read() public méthode

public Read ( byte buffer, int offset, int bytesToRead ) : int
buffer byte
offset int
bytesToRead int
Résultat int

ReadFully() public méthode

public ReadFully ( byte buffer, int offset, int bytesToRead ) : int
buffer byte
offset int
bytesToRead int
Résultat int

SetBaudRate() public méthode

public SetBaudRate ( int baud ) : void
baud int
Résultat void

SetBitMode() public méthode

public SetBitMode ( FTBitMode mode, byte mask ) : void
mode FTBitMode
mask byte
Résultat void

SetDataCharacteristics() public méthode

public SetDataCharacteristics ( byte dataBits, byte stopBits, FTParity parity ) : void
dataBits byte
stopBits byte
parity FTParity
Résultat void

SetEventNotification() public méthode

public SetEventNotification ( FTEvent evMask, EventWaitHandle waitHandle ) : void
evMask FTEvent
waitHandle System.Threading.EventWaitHandle
Résultat void

SetFlowControl() public méthode

public SetFlowControl ( FTFlowControl mask ) : void
mask FTFlowControl
Résultat void

SetFlowControl() public méthode

public SetFlowControl ( FTFlowControl mask, byte xOn, byte xOff ) : void
mask FTFlowControl
xOn byte
xOff byte
Résultat void

WaitFor() public méthode

public WaitFor ( FTEvent ev ) : void
ev FTEvent
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int bytesToWrite ) : int
buffer byte
offset int
bytesToWrite int
Résultat int

WriteFully() public méthode

public WriteFully ( byte buffer, int offset, int bytesToWrite ) : void
buffer byte
offset int
bytesToWrite int
Résultat void