DEFINES THE PARITY BIT FOR THE SERIAL LINK NUMBER N
ACTION
The command SERIAL_PARITY N,P defines the parity bit P for the serial link number N.
P must be one of the following value : 0, 1, 2.
0 = none
1 = odd
2 = even
The commands SERIAL_BAUDRATE, SERIAL_STOPBITS, SERIAL_DATABITS, SERIAL_PARITY configurate a serial link before using.
SYNTAX:
SERIAL_PARITY N,P
USE ERROR EXAMPLE
label received
rem create object for serial link
serial 1
rem configuration of serial link
serial_port 1,3
serial_baudrate 1,1200
serial_databits 1,8
serial_stopbits 1,1
serial_parity 1,0
serial_open 1
rem if data received
on_receive 2,received
rem transmission
serial_write 1,"A"
end
received:
print serial_read$(1)
return
SERIAL_PARITY
SERIAL_PARITY N,P
SEE ALSO
SERIAL
SERIAL_PORT
SERIAL_BAUDRATE
SERIAL_STOPBITS
SERIAL_DATABITS
SERIAL_OPEN
SERIAL_CLOSE
SERIAL_WRITE
ON_RECEIVE
SERIAL_PORT_EXISTS()
SERIAL_READ$()