Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Reading status of serial port pins

  • 09-08-2003 05:58PM
    #1
    Closed Accounts Posts: 1,669 ✭✭✭


    Can someone post some code that will read the level of the com port (RS232) lines under MSDOS/Windows?

    I'm trying to write a small decoder program for an interface that uses only the CTS line of the serial port for it's output, to provide either logic 1 or logic 0.


Comments

  • Registered Users, Registered Users 2 Posts: 2,157 ✭✭✭dazberry


    Originally posted by DMT
    Can someone post some code that will read the level of the com port (RS232) lines under MSDOS/Windows?

    No. Its been too long. From a purely windows (32) point of view look at the GetComm**** API calls, notably the GetCommMask call with a mask of EV_CTS. I really don't remember the DOS stuff anymore.

    D.


Advertisement