Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
COM port and RTS_CONTROL_TOGGLE Posted by Tomasz Sztejka on 21 Dec 2000 at 3:15 AM
Hi, <br>
I'm quite new in windows programming, so maybe it is not a problem for most of you.<br>
I want to use COM1 RTS line to drive some circuit, but only when data are ready to transmite. I need RTS to be set very short before data are transmited and cleared just after last stop bit is shifted out from TxD line. I thought that setting fRtsControl to RTS_CONTROL_TOGGLE in DCB struct passed to SetCommState will handle this, but RTS stays active no mather if TxD is clear or is sending data. I thought it will be active ONLY if TxD is sending data. Can any one help me with setting RTS to toggle? (or in other way)<br>
<br>
Tomasz Sztejka.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.