266
Platforms
©2000-2008 Tibbo Technology Inc.
.Txbuffsize R/O Property
Function:
For the selected serial port (selection is made through
) returns current TX buffer capacity in bytes.
Type:
Word
Value Range:
0-65535
See Also:
Details
Buffer capacity can be changed through the
method followed by
method.
The ser.txbuffrq requests buffer size in 256-byte pages whereas this property
returns buffer size in bytes. Relationship between the two is as follows: ser.
txbuffsize=num_pages*256-16 (or =0 when num_pages=0), where "num_pages"
is the number of buffer pages that was GRANTED through the ser.txbuffrq. "-16" is
because 16 bytes are needed for internal buffer variables. The serial port cannot
TX data when the TX buffer has zero capacity.
.Txclear Method
Function:
For the selected serial port (selection is made through
) clears (deletes all data from) the TX buffer.
Syntax:
ser.txclear
Returns:
---
See Also:
Details
This method will only work when the port is closed (
=
NO). You cannot clear the TX buffers while the port is open.
.Txfree R/O Property
Function:
For the selected serial port (selection is made through
) returns the amount of free space in the TX
buffer in bytes.
Type:
Word
Value Range:
0-65535
See Also:
257
240
265
217
257
240
251
257
240