I-8000 Series (C Language Based) User Manual, Version 1.0.1 Page: 83
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.1.2.
API for MiniOS7 COM port
API for using COM ports
1. InstallCom()
Before any COM Port can be used, the driver must be installed by calling InstallCom().
2. RestoreCom()
If the program calls InstallCom(), the RestoreCom()must be called to release the COM
Port driver.
API for checking if there is any data in the COM port input buffer
3. IsCom()
Before reading data from COM port, the IsCom() must be called to check whether
there is any data currently in the COM port input buffer.
API for reading data from COM ports
4. ReadCom()
After IsCom() confirms that the input buffer contains data, the ReadCom() must be
called to read the data from the COM port input buffer.
API for sending data to COM ports
5. ToCom()
Before sending data to COM ports, the ToCom() must be called to send data to COM
ports.