Change_Config - ICP DAS USA MP-8 43 Series Function Reference

Hide thumbs Also See for MP-8 43 Series:
Table of Contents

Advertisement

4.4.3 Change_Config

Description:
This function only can be used to change the configuration of the COM
port after COM port was opened.
Syntax:
long
Change_Config
Parameter:
cPort:
dwBaudRate:
cData:
cParity:
cStop:
Return Value:
NoError :
Others :
Example:
unsigned char
m_ComPort=3;
DWORD m_baudrate=9600;
char
m_databit=8;
char
m_parity=0;
char
m_stopbit=0;
long
RET=Change_Config(m_ComPort, m_baudrate, m_databit, m_parity, m_stopbit);
Remark:
http://www.icpdas.com
[C
(unsigned char
cData,
char
cParity,
[Input] 1=COM1, 2=COM2 .... , MAXPORT
[Input] 150/300/600/1200/1800/2400/4800/
7200/9600/19200/38400/57600/115200
[Input] 5/6/7/8 data bit
[Input] 0=NonParity, 1=OddParity, 2=EvenParity
[Input] 0=1-stop, 1=1.5-stp, 2=2-stop
OK
Error code, please refer to "Appendix A Error Code".
//Com_port of PAC
MP-8x43 Function Reference V 1.0
++
]
cPort, DWORD
dwBaudrate,char
char
cStop)
102 

Advertisement

Table of Contents
loading

Table of Contents