
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
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
port was closed successfully
comport has not been opened
Example
MVIsp_Close(COM1);
See Also
MVIsp_Open (page 235)
Comentarios a estos manuales