Port.parity read/write property



Sets/gets the parity mode of the serial port, using the following possible values :

  • "none": No parity bit is used
  • "odd": parity bit is set to ensure an odd number of 1 in the data
  • "even": parity bit is set to ensure an even number of 1 in the data
  • "mark": parity bit is always set to 1
  • "space": parity bit is always set to 0
If the current parity state cannot be retrieved, this property returns nil