ProSoft Technology MVI69-ADM User Manual

Page 239

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Serial Port Library Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 239 of 342

February 20, 2013

MVIsp_Close

Syntax

int MVIsp_Close(int comport);

Parameters

comport

Port to close

Description
This function is used by an application to release control of the a communications
port. comport must be previously opened with MVIsp_Open.

comport specifies which port is to be closed.

The handshake lines DTR and RTS of the port specified by comport are turned
off by MVIsp_Close.

IMPORTANT: After the API has been opened, this function should always be called before exiting
the application.

Return Value

MVI_SUCCESS

port was closed successfully

MVI_ERR_NOACCESS

comport has not been opened

Example

MVIsp_Close(COM1);

See Also
MVIsp_Open (page 235)

Advertising