|
AM263Px MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
41 #include <sys/types.h>
54 #define HeapP_BYTE_ALIGNMENT (64u)
59 typedef struct HeapP_MemStats_
73 #define HeapP_OBJECT_SIZE_MAX (128U)
77 typedef struct HeapP_Object_ {
void HeapP_free(HeapP_Object *heap, void *ptr)
Free memory from user defined heap.
size_t HeapP_getMinimumEverFreeHeapSize(HeapP_Object *heap)
Get lowest ever free heap size, in bytes.
void HeapP_destruct(HeapP_Object *heap)
Delete the user defined heap.
size_t HeapP_getFreeHeapSize(HeapP_Object *heap)
Get free heap size, in bytes.
void HeapP_construct(HeapP_Object *heap, void *heapAddr, size_t heapSize)
Create a user defined heap.
size_t minimumEverFreeBytesRemaining
Definition: HeapP.h:65
size_t numberOfFreeBlocks
Definition: HeapP.h:64
size_t sizeOfLargestFreeBlockInBytes
Definition: HeapP.h:62
void * HeapP_alloc(HeapP_Object *heap, size_t allocSize)
Alloc memory from user defined heap.
size_t sizeOfSmallestFreeBlockInBytes
Definition: HeapP.h:63
size_t numberOfSuccessfulFrees
Definition: HeapP.h:67
void HeapP_getHeapStats(HeapP_Object *heap, HeapP_MemStats *pHeapStats)
Get detailed heap statistics.
size_t availableHeapSpaceInBytes
Definition: HeapP.h:61
Structure used to pass information about the heap out of HeapP_getHeapStats().
Definition: HeapP.h:60
#define HeapP_OBJECT_SIZE_MAX
Max size of heap object across no-RTOS and all OS's.
Definition: HeapP.h:73
size_t numberOfSuccessfulAllocations
Definition: HeapP.h:66
Opaque heap object used with the heap APIs.
Definition: HeapP.h:77