SYS/BIOS  7.00
Data Fields
HeapMultiBuf_Params Struct Reference

#include <ti/sysbios/heaps/HeapMultiBuf.h>

Collaboration diagram for HeapMultiBuf_Params:
Collaboration graph
[legend]

Data Fields

bool blockBorrow
 Turn block borrowing on (true) or off (false) More...
 
int numBufs
 Number of memory buffers. More...
 
HeapBuf_ParamsbufParams
 Config parameters for each buffer. More...
 

Field Documentation

§ blockBorrow

bool HeapMultiBuf_Params::blockBorrow

Turn block borrowing on (true) or off (false)

With block borrowing on, if there are no blocks available of the requested size, then alloc will look for a larger block to return. Calls to alloc which borrow blocks will be slower, and will cause internal fragmentation of the heap (until the block is freed), so it is ideal to configure a HeapMultiBuf such that block borrowing is not needed.

§ numBufs

int HeapMultiBuf_Params::numBufs

Number of memory buffers.

The number of different fixed size memory buffers that are managed by the heap instance. The bufParams array has length numBufs.

The default number of buffers is 0.

§ bufParams

HeapBuf_Params* HeapMultiBuf_Params::bufParams

Config parameters for each buffer.

Each buffer in a HeapMultiBuf is in fact managed by a HeapBuf instance. Configuration of a HeapMultiBuf is done by providing an array of configured HeapBuf parameter structures. Refer to the HeapBuf documentation for information on the buffer parameters. All of the documentation and parameters for HeapBuf apply to HeapMultiBuf. If a buffer is configured incorrectly, HeapBuf, not HeapMultiBuf, will raise an Assert.


The documentation for this struct was generated from the following file:
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale