parity

Type: Integer

The parity property of the JadeSerialPort class contains the action used to detect errors in transmission

The values for the parity property are listed in the following table.

Constant Integer Value Description
Parity_None 0 No parity bit is added
Parity_Odd 1 Number of 1 bits in each character, including the parity bit, is always odd
Parity_Even 2 Number of 1 bits in each character, including the parity bit, is always even
Parity_Mark 4 Parity bit is always set to the mark signal condition (logical 1)
Parity_Space 5 Parity bit is always set to the space signal condition (logical 0)

The default value for the parity property is Parity_None (0).

The following code fragment shows the use of the parity property.

vars
    sp: JadeSerialPort;
begin
    create sp transient;
    sp.parity := JadeSerialPort. Parity_None;