BUF Module
Application Program Interface
2-17
❏
Less fragmentation.
Since the buffers are of fixed-size, the pool
does not become fragmented.
BUF Manager
Properties
The following global properties can be set for the BUF module in the BUF
Manager Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Object Memory
. The memory segment to contain all BUF objects.
(A BUF object may be stored in a different location than the buffer
pool memory itself.)
Tconf Name: OBJMEMSEG
Type: Reference
Example:
bios.BUF.OBJMEMSEG = prog.get("myMEM");
BUF Object Properties
The following properties can be set for a buffer pool object in the BUF
Object Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script. To create an BUF object in a configuration script, use the
following syntax:
var myBuf = bios.BUF.create("myBUF");
The Tconf examples that follow assume the object has been created as
shown.
❏
comment
. Type a comment to identify this BUF object.
Tconf Name: comment
Type: String
Example:
myBuf.comment = "my BUF";
❏
Memory segment for buffer pool.
Select the memory segment in
which the buffer pool is to be created. The linker decides where in the
segment the buffer pool starts.
Tconf Name: bufSeg
Type: Reference
Example:
myBuf.bufSeg = prog.get("myMEM");
❏
Buffer count.
Specify the number of fixed-length buffers to create in
this pool.
Tconf Name: bufCount
Type: Int32
Example:
myBuf.bufCount = 128;
❏
Buffer size.
Specify the size (in MADUs) of each fixed-length buffer
inside this buffer pool. The default size shown is the minimum valid
value for that platform. This size may be adjusted to accommodate
the alignment in the "Buffer size after alignment" property.
Tconf Name: size
Type: Int32
Example:
myBuf.size = 4;