4.1.3 Close_Com
Description:
This function closes and releases the resources of the COM port from
computer recourse. And it must be called before exiting the application
program. The Open_Com will return error message if the program exit without
calling Close_Com function.
Syntax:
long Close_Com(unsigned char
Parameter:
cPort :
Return Value:
NoError :
Others :
Example:
unsigned char
m_ComPort= 3;
long
RET=Close_Com(m_ComPort);
Remark:
http://www.icpdas.com
[C
cPort)
[Input] 1=COM1, 2=COM2 .... , MAXPORT
OK
Error code, please refer to "Appendix A Error Code".
//Com_port of PAC
MP-8x43 Function Reference V 1.0
++
]
85