263
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
because 16 bytes are needed for internal buffer variables. The serial port cannot
RX data when the RX buffer has zero capacity.
.Rxclear Method
Function:
For the selected serial port (selection is made through
) clears (deletes all data from) the RX buffer.
Syntax:
ser.rxclear
Returns:
---
See Also:
Details
---
.Rxlen R/O Property
Function:
For the selected serial port (selection is made through
) returns total number of committed bytes
currently waiting in the RX buffer to be extracted and
processed by your application.
Type:
Word
Value Range:
0-65535
See Also:
,
Details
event is generated once the RX buffer is not empty, i.
e. there is data to process. There may be only one on_ser_data_arrival event for
each port waiting to be processed in the event queue. Another
on_serial_data_arrival event for the same port may be generated only after the
previous one is handled.
If, during the on_ser_data_arrival event handler execution, not all data is
extracted from the RX buffer, another on_ser_data_arrival event is generated
immediately after the on_ser_data_arrival event handler is exited.
Notice that the RX buffer of the serial port employes "data committing" based on
the amount of data in the buffer and intercharacter delay (
).
Data in the RX buffer may not be committed yet. Uncommitted data is not visible
to your application and is not included in the count returned by the ser.rxlen.
257
240
257
236
240
258
254