Reading COM port in Binary mode

  • Thread starter Thread starter tapsto
  • Start date Start date
T

tapsto

I am openning a COM port and reading data. The data coming to the COM port
is "Odd parity". When I read the data from the COM port the parity bit is
stripped. How to I configure it such that the parity bit is preserved.

Thanks

psuedo code:
CreateFile( "COM1", GENERIC_READ, .....)
....
SetCommState(....
SetCommTimeouts(...
.....
WaitCommEvent( .....
....
ReadFile(
 
Back
Top