260
Platforms
©2000-2008 Tibbo Technology Inc.
.Parity Property
Function:
Sets/returns parity mode for the selected serial port
(selection is made through
)
Type:
Enum (pl_ser_parity, byte)
Value Range:
0- PL_SER_PR_NONE: no parity bit to be transmitted.
1- PL_SER_PR_EVEN: even parity.
2- PL_SER_PR_ODD: odd parity.
3- PL_SER_PR_MARK: parity bit always at "1".
4- PL_SER_PR_SPACE: parity bit always at "0".
See Also:
,
Details
Mark parity is equivalent to having a second stop-bit (there is no separate property
to explicitly select the number of stop bits).
This property is only relevant when the serial port is in the UART mode (
= 0- PL_SER_MODE_UART).
.Redir Method
Function:
For the selected serial port (selection is made through
) redirects the data being RXed to the TX
buffer of the same serial port, different serial port, or
another object that supports compatible buffers.
Syntax:
ser.redir(redir as pl_redir) as pl_redir
Returns:
Returns 0- PL_REDIR_NONE if redirection failed or the
same value as was passed in the redir argument.
See Also:
Redirecting Buffers (Shorting)
Part
Description
redir
Platform-specific. See the list of pl_redir constants in the
platform specifications.
Details
Data redirection (sometimes referred to as "buffer shorting") allows to arrange
efficient data exchange between ports, sockets, etc. in cases where no data
alteration or parsing is necessary, while achieving maximum possible throughput is
important.
The redir argument, as well as the value returned by this method are of "enum
pl_redir" type. The pl_redir defines a set of platform inter-object constants that
257
226
236
255
257
245