In DOS, C, VB6 we could check if Transmitter Shift Register or Transmitter Holding Register empty or not before writing any data onto the serial port. This facility would certainly avoid making the attempt of writing while the port is not ready to accept data. similarly, we could check if valid data has arrived in the serial port receiver before we read data.
I am converting my VB6 based serial communication codes into C#. But, I don't find anything (I mean method) in C# that will allow me to check if TX-register or THR is ready to accept data.
Also, I would like to check that RX-register is ready with data before I attempt to read data from it.
Would appreciate to receive answer. (I am afraid these features are removed in C#!).
Regards,
I am converting my VB6 based serial communication codes into C#. But, I don't find anything (I mean method) in C# that will allow me to check if TX-register or THR is ready to accept data.
Also, I would like to check that RX-register is ready with data before I attempt to read data from it.
Would appreciate to receive answer. (I am afraid these features are removed in C#!).
Regards,