- Overview
ActiveX Component Reference
- Getting Started
FTSPCControl Class
- FTSPCControl Class description
Methods
- Close Method
- Open Method
- SetSettingsFromString Method
- EnumSerialPorts Method
- GetSerialPort Method
- GetSerialPortDescription Method
- Read Method
- ReadArray Method
- ReadArrayOverlapped Method
- ReadOverlapped Method
- Write Method
- WriteArray Method
- WriteArrayOverlapped Method
- WriteOverlapped Method
- CancelIO Method
- Flush Method
- GetLastError Method
- PurgeQueue Method
- SetBreak Method
Properties
- BaudRate Property
- DataBits Property
- FlowControl Property
- Parity Property
- PortName Property
- StopBits Property
- Cts Property
- Dcd Property
- Dsr Property
- Dtr Property
- Ring Property
- Rts Property
- ReadIntervalTimeout Property
- ReadTotalTimeoutConstant Property
- ReadTotalTimeoutMultiplier Property
- WriteTotalTimeoutConstant Property
- WriteTotalTimeoutMultiplier Property
- EofChar Property
- ErrorChar Property
- EventChar Property
- XoffChar Property
- XonChar Property
- AutoOpen Property
- DiscardNull Property
- InQUsedBytes Property
- IsOpened Property
- RxThreshold Property
FTSPCOverlapped Class
.NET Component Reference
- Getting Started
FTSPCControl Class
- FTSPCControl Class description
Methods
- Close Method
- Open Method
- SetSettingsFromString Method
- EnumSerialPorts Method
- GetSerialPort Method
- GetSerialPortDescription Method
- Read Method
- ReadArray Method
- ReadArrayOverlapped Method
- ReadOverlapped Method
- Write Method
- WriteArray Method
- WriteArrayOverlapped Method
- WriteOverlapped Method
- CancelIO Method
- Flush Method
- PurgeQueue Method
- SetBreak Method
Properties
- BaudRate Property
- DataBits Property
- FlowControl Property
- Parity Property
- PortName Property
- StopBits Property
- Cts Property
- Dcd Property
- Dsr Property
- Dtr Property
- Ring Property
- Rts Property
- ReadIntervalTimeout Property
- ReadTotalTimeoutConstant Property
- ReadTotalTimeoutMultiplier Property
- WriteTotalTimeoutConstant Property
- WriteTotalTimeoutMultiplier Property
- EofChar Property
- ErrorChar Property
- EventChar Property
- XoffChar Property
- XonChar Property
- AutoOpen Property
- DiscardNull Property
- InQUsedBytes Property
- IsOpened Property
- RxThreshold Property
FTSPCOverlapped Class
FTSPCException Class
Borland Component Reference
- Getting Started
FTSPCControl Class
- FTSPCControl Class description
Methods
- Close Method
- Open Method
- SetSettingsFromString Method
- EnumSerialPorts Method
- GetSerialPort Method
- GetSerialPortDescription Method
- Read Method
- ReadArray Method
- ReadArrayOverlapped Method
- ReadOverlapped Method
- Write Method
- WriteArray Method
- WriteArrayOverlapped Method
- WriteOverlapped Method
- CancelIO Method
- Flush Method
- PurgeQueue Method
- SetBreak Method
Properties
- BaudRate Property
- DataBits Property
- FlowControl Property
- Parity Property
- PortName Property
- StopBits Property
- Cts Property
- Dcd Property
- Dsr Property
- Dtr Property
- Ring Property
- Rts Property
- ReadIntervalTimeout Property
- ReadTotalTimeoutConstant Property
- ReadTotalTimeoutMultiplier Property
- WriteTotalTimeoutConstant Property
- WriteTotalTimeoutMultiplier Property
- EofChar Property
- ErrorChar Property
- EventChar Property
- XoffChar Property
- XonChar Property
- AutoOpen Property
- DiscardNull Property
- InQUsedBytes Property
- IsOpened Property
- RxThreshold Property
FTSPCOverlapped Class
FTSPCException Class
Read data
// using System.Runtime.InteropServices; private void ftspcControl1_OnReceive(object Sender, uint Count) { try { IntPtr Ptr = IntPtr.Zero; byte[] ReadBuffer = new byte[Count]; Ptr = Marshal.AllocHGlobal((int)Count); ftspcControl1.Read(Ptr, Count); Marshal.Copy(Ptr, ReadBuffer, 0, (int)Count); TextBox_Data.Text = System.Text.Encoding.ASCII.GetString(ReadBuffer); } catch (FTSPCException E) { MessageBox.Show("Error " + E.ErrorCode.ToString() + "\r\n" + E.ErrorSource, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }