pascalSCADA OPM: SerialPort

Pascal SCADA OPM

Unit SerialPort

Description

Implements a multi-platform serial port driver.

:

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TSerialPortDriver Serial port driver. Working on Windows, Linux and FreeBSD.

Functions and Procedures

function CTL_CODE( DeviceType, Func, Method, Access:Cardinal):Cardinal;

Types

TSerialBaudRate = (...);
TSerialStopBits = (...);
TSerialParity = (...);
TSerialDataBits = (...);

Constants

METHOD_BUFFERED = 0;
METHOD_IN_DIRECT = 1;
METHOD_OUT_DIRECT = 2;
METHOD_NEITHER = 3;
FILE_DEVICE_SERIAL_PORT =$0000001b;
FILE_ANY_ACCESS =0;

Description

Functions and Procedures

function CTL_CODE( DeviceType, Func, Method, Access:Cardinal):Cardinal;
 

Types

TSerialBaudRate = (...);

: TSerialBaudRate enumerates all baud rates. This baud rates are supported on all OSes.

Values
  • br110: = 110 bps
  • br300: = 300 bps
  • br600: = 600 bps
  • br1200: = 1200 bps
  • br2400: = 2400 bps
  • br4800: = 4800 bps
  • br9600: = 9600 bps
  • br19200: = 19200 bps
  • br38400: = 38400 bps
  • br57600: = 57600 bps
  • br115200: = 115200 bps
TSerialStopBits = (...);

: TSerialStopBits enumarates all stop bits. This values are supported on all OSes

Values
  • sb1: = 1 stop bit
  • sb2: = 2 stop bit
TSerialParity = (...);

: TSerialParity enumerates all parity modes. This values are supported on all OSes.

Values
  • spNone: Don't check the parity.
  • spOdd: Check errors using the odd parity.
  • spEven: Check errors using the even parity.
TSerialDataBits = (...);

: TSerialDataBits enumerates all data byte sizes. This values are supported on all OSes.

Values
  • db5: The data byte will have 5 bits of size.
  • db6: The data byte will have 6 bits of size.
  • db7: The data byte will have 7 bits of size.
  • db8: The data byte will have 8 bits of size.

Constants

METHOD_BUFFERED = 0;
 
METHOD_IN_DIRECT = 1;
 
METHOD_OUT_DIRECT = 2;
 
METHOD_NEITHER = 3;
 
FILE_DEVICE_SERIAL_PORT =$0000001b;
 
FILE_ANY_ACCESS =0;
 

Author


Generated by PasDoc 0.14.0.