254
Platforms
©2000-2008 Tibbo Technology Inc.
See Also:
Three Modes of the Serial Port
,
Part
Description
maxinplen
Maximum amount of data to return (word).
Details
Extracted data is permanently deleted from the buffer. Length of extracted data is
limited by one of the three factors (whichever is smaller): amount of committed
data in the RX buffer itself, capacity of the "receiving" string variable, and the limit
set by the maxinplen argument.
mode (
= 0- PL_SER_MODE_UART) the data is
extracted "as is". For
and
mode (ser.mode= 1-
PL_SER_MODE_WIEGAND and ser.mode= 2- PL_SER_MODE_CLOCKDATA) each
character of extracted data represents one data bit and only two characters are
possible: '0' or '1'.
.Interchardelay Property
Function:
Sets/returns maximum intercharacter delay for the
selected serial port (selection is made through
) in 10ms steps.
Type:
Byte
Value Range:
0-255, default= 0 (no delay)
See Also:
Three Modes of the Serial Port
,
Details
For UART mode (
= 0- PL_SER_MODE_UART) specifies the time that
needs to elapse since the arrival of the most recent serial character into the RX
buffer to cause the data to be committed (and
event
generated). For Wiegand and clock/data mode (ser.mode= 1-
PL_SER_MODE_WIEGAND or 2- PL_SER_MODE_CLOCKDATA) the time since the
most recent data bit (high-to-low transition on the W0&1in/cin line) is counted.
In the UART mode this property allows you to combine incoming serial data into
larger "chunks", which typically improves performance. Notice, that the
intercharacter gap is not counted when the new data is not being received because
the serial port has set the RTS line to LOW (not ready). For this to happen, the
serial port must be in the UART/full-duplex/flow control mode (ser.mode= 0-
PL_SER_MODE_UART,
= 0- 0- PL_SER_SI_FULLDUPLEX, and
= 1- ENABLED) and the RX buffer must be getting nearly full (less
than 64 bytes of free space left).
For Wiegand and clock/data modes, counting timeout since the last bit is the only
way to determine the end of the data output. Suggested timeout is app. 10 times
the bit period of the data output by attached Wiegand or clock/data device.
225
241
226
255
229
232
257
225
236
255
258
255
253