516
Platforms
©2000-2008 Tibbo Technology Inc.
.Buffrq Method
Function:
Pre-requests "numpages" number of buffer pages (1
page= 256 bytes) for the TX buffer of the wln object.
Syntax:
wln.buffrq(numpages as byte) as byte
Returns:
Actual number of pages that can be allocated (byte).
See Also:
Part
Description
num
page
s
Requested numbers of buffer pages to allocate.
Details
Actual allocation happens when the
method is used. The wln object
will be unable to operate properly if its TX buffer has inadequate capacity (more on
this in the
topic). The Wi-Fi interface will only be able
to successfully send out packets that fit in this buffer; larger packets will be
truncated. There is no need to allocate any buffer for packet reception.
Buffer allocation will not work if the Wi-Fi hardware is already operational (
= 1- YES). Executing sys.buffalloc at this time will leave the buffer size
unchanged. Therefore, buffer allocation must happen before the Wi-Fi hardware is
booted up with the
method.
Actual current buffer size can be verified through the
read-only
property.
.Buffsize R/O Property
Function:
Returns current capacity (in bytes) of the wln object's TX
buffer.
Type:
Word
Value Range:
0-65535, default= 0 (0 bytes).
See Also:
Details
Buffer capacity can be changed through the
method followed by the
method.
The Wi-Fi interface will only be able to successfully send out packets that fit in the
TX buffer; larger packets will be truncated. There is no need to allocate any buffer
for packet reception.
505
217
505
519
515
516
505
516
217