Moxa Technologies C168H Network Card User Manual


 
Serial Programming Tools
Smartio C168H/PCI Users Manual 4-7
Solution 2
There's a dedicated RS-485 function in PComm library. It integrates the above
functions of solution 1 regarding sending data as one.
sio_putb_x(port, buff, tick ); /* 1. Turn on RTS and ready for transmitting data.
2. Send data.
3. Wait for tick time.
4. Turn off RTS and ready for receiving data. */
For more information on these functions, please refer to PComm library on-line Help
file for Windows NT and Windows 95/98.