248
Platforms
©2000-2008 Tibbo Technology Inc.
.Autoclose Property
Function:
For currently selected serial port (selection is made
through
) specifies whether the port will be
disabled once the intercharacter gap expires.
Type:
dis_en (enum, byte)
Value Range:
0- DISABLED (default)
1- ENABLED
See Also:
Details
The serial port is disabled by setting
= 0- NO. Intercharacter gap
property.
This property offers a way to make sure that no further data is received once the
gap of certain length is encountered. This property is especially useful in
or
mode (
= 1- PL_SER_MODE_WIEGAND or 2-
PL_SER_MODE_CLOCKDATA) where intercharacter gap is the only way to reliably
identify the end of one data transmission.
.Baudrate Property
Function:
Sets/returns the baudrate "divisor value" for the selected
serial port (selection is made through
).
Type:
Word
Value Range:
0-65535, default value is platform dependent, results in
9600bps.
See Also:
,
Details
Actual baudrade is calculated as follows: (9600*
)/ser.baudrate. The
ser.div9600 read-only property returns the value ser.baudrate must be set to in
order to obtain 9600 bps on a particular platform.
For example, if we need to achieve 38400bps and ser.div9600 returns 12, then we
need to set ser.baudrate=3, because (9600*12)/38400=3. This serves as a
platform-independent baudrate calculation, as ser.div9600 will return different
values for different platforms.
This property is only relevant when the serial port is in the UART mode (
= 0- PL_SER_MODE_UART).
257
236
251
254
229
232
255
257
226
236
250
255