Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PSerialChannel::Parity PSerialChannel::GetParity (  )  const

Get the parity of the serial port.

Returns:
current setting.

Definition at line 357 of file msdos.cxx.

References EvenParity, NoParity, and OddParity.

Referenced by SaveSettings().

{
  return (biosParm&8) == 0 ? NoParity :
                                (biosParm&0x10) == 0 ? OddParity : EvenParity;
}


Generated by  Doxygen 1.6.0   Back to index