AM65x MCU+ SDK  09.01.00
HeapP.h File Reference

Go to the source code of this file.

Data Structures

struct  HeapP_MemStats
 Structure used to pass information about the heap out of HeapP_getHeapStats(). More...
 
struct  HeapP_Object
 Opaque heap object used with the heap APIs. More...
 

Macros

#define HeapP_BYTE_ALIGNMENT   (64u)
 Minimum alignment for heap allocations, in units of bytes. More...
 
#define HeapP_OBJECT_SIZE_MAX   (128U)
 Max size of heap object across no-RTOS and all OS's. More...
 

Functions

void HeapP_construct (HeapP_Object *heap, void *heapAddr, size_t heapSize)
 Create a user defined heap. More...
 
void HeapP_destruct (HeapP_Object *heap)
 Delete the user defined heap. More...
 
void * HeapP_alloc (HeapP_Object *heap, size_t allocSize)
 Alloc memory from user defined heap. More...
 
void HeapP_free (HeapP_Object *heap, void *ptr)
 Free memory from user defined heap. More...
 
size_t HeapP_getFreeHeapSize (HeapP_Object *heap)
 Get free heap size, in bytes. More...
 
size_t HeapP_getMinimumEverFreeHeapSize (HeapP_Object *heap)
 Get lowest ever free heap size, in bytes. More...
 
void HeapP_getHeapStats (HeapP_Object *heap, HeapP_MemStats *pHeapStats)
 Get detailed heap statistics. More...