Serial Port I/O Function: Establishes the connection to a serial port, defines certain usage parameters, and defines the size of the internal buffer for data reception.
USE IFPORT
result = SPORT_CONNECT_EX (port [,options] [,BufferSize])
The size of the buffer must be 4096 bytes or larger. If you try to specify a size smaller than 4096 bytes, your specification will be ignored and the buffer size will be set to 4096 bytes.
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows* error value.
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
USE IFPORT
INTEGER(4) iresult
iresult = SPORT_CONNECT_EX( 2, BufferSize = 8196 )
END
Communications and Communications Functions in the Microsoft* Platform SDK
Building Applications: Using the Serial I/O Port Routines
Copyright © 1996-2010, Intel Corporation. All rights reserved.