|
Ser.Rxbuffsize R/O Property |
Top Previous Next |
Function: |
For the selected serial port (selection is made through ser.num) returns current RX buffer capacity in bytes. |
Type: |
Word |
Value Range: |
0-65535 |
See Also: |
Details
Buffer capacity can be changed through the ser.rxbuffrq method followed by the sys.buffalloc method.
The ser.rxbuffrq requests buffer size in 256-byte pages whereas this property returns buffer size in bytes. Relationship between the two is as follows: ser.rxbuffsize=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.rxbuffrq. "-16" is because 16 bytes are needed for internal buffer variables. The serial port cannot RX data when the RX buffer has zero capacity.