Syntax: C:
Pascal:
BASIC:
WORD initComPort (WORD portAddr, BYTE irq, LONG baudRate);
function initComPort (portAddr : word; irq
: byte; baudRate : longint) as integer;
FUNCTION initComPort% (BYVAL portAddr AS INTEGER, BYVAL irq AS INTEGER, BYVAL baudRate AS INTEGER)
Remarks: portAddr is the address of the serial port. irq is the interrupt request number that the serial port uses. baudRate is the speed at which the API talkes to the 232OPSDA module. Common port addresses and irq numbers are are:
Port | Address | IRQ |
|
|
|
COM1 | 3F8H | 4 |
COM2 | 2F8H | 3 |
COM3 | 3E8H | 4 |
COM4 | 2E8H | 3 |
Returns: See Also:
deinitComPort must be called to remove the interrupt service routine installed by initComPort. The results are unpredictable if you terminate your application without calling deinitComPort.
A handle that uniquely identifies the installed serial port.
deinitComPort
Low-Level Communications
This section covers the
22Documentation Number 232OPSDA1397 Manual
B&B Electronics
PH (815)