Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Reading status of serial port pins

Options
  • 09-08-2003 5: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 Posts: 2,149 ✭✭✭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