Download Target Libraries
Transcript
W271 Target Libraries Section 4. Serial Communications Library. 2192-08579-000-000 wArRts() Assert/Deassert Request-To-Send (RTS) handshaking lead. Synopsis #include "ArComm.h" SINT16 wArRts(UINT16 uPort, FLAG fState); Arguments UINT16 uPort Communications channel number: 0 - Maximum Initialised physical ports FLAG fState Desired DTR state. 0 == Deassert !0 == Assert Function Returns Example wArRts() forces the RTS handshaking lead to be asserted or deasserted depending upon the passed value of "state". Note that when the channel has been initialised in the automatic handshaking mode, wArCpuRts() can be used to assert RTS before any characters are placed into the transmit buffer but cannot be used to properly deassert RTS. This aspect of the function can be used to obtain a longer warm-up or key time on certain modems and radios that the automatic handshaking will. SUCCESS (0) COMMNOTOPEN Call was successful. (-1) Port not opened for access See example program demo[386|188].c See Also Page 51