سؤال

According to MSDN, the fParity member of DCB structure is boolean.

If this member is set to TRUE, parity checking is performed, and errors are reported

So, how can I set even or odd parity checking when my application opens the serial port?

PS: I'm writing a minimalistic terminal application for Windows Mobile 6.1 using a FT232RL chip.

هل كانت مفيدة؟

المحلول

Yes, fParity enables parity checking. Also note the Parity field, a BYTE. It selects the kind of parity checking you want. Five options but you'd typically choose EVENPARITY or ODDPARITY.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top