50 #ifndef ti_sysbios_heaps_HeapMin__include 51 #define ti_sysbios_heaps_HeapMin__include 67 #define ti_sysbios_heaps_HeapMin_long_names 68 #include "HeapMin_defs.h" 78 #define HeapMin_A_zeroSize "heap size must be > 0" 86 #define HeapMin_E_freeError "free() invalid in growth-only HeapMin" 107 } HeapMin_Module_State;
143 #define HeapMin_Handle_upCast(handle) ((IHeap_Handle)(handle)) 160 extern void HeapMin_free(
void *handle,
void * buf,
size_t size);
261 extern void HeapMin_init(
void);
265 return ((HeapMin_Handle)str);
273 #define HeapMin_module ((HeapMin_Module_State *) &(HeapMin_Module_state)) 283 #undef ti_sysbios_heaps_HeapMin_long_names 284 #include "HeapMin_defs.h" size_t remainSize
Definition: HeapMin.h:91
void HeapMin_free(void *handle, void *buf, size_t size)
Free a block of memory back to the heap.
IHeap_Object iheap
Definition: HeapMin.h:89
bool HeapMin_isBlocking(void *handle)
Can this heap block the caller.
struct HeapMin_Struct HeapMin_Object
void * HeapMin_alloc(void *handle, size_t size, size_t align, Error_Block *eb)
Allocate a block of memory from the heap.
Static and run-time memory manager.
void HeapMin_delete(HeapMin_Handle *handle)
Delete a HeapMin heap.
struct HeapMin_Struct * HeapMin_Handle
void HeapMin_destruct(HeapMin_Struct *obj)
Destruct a HeapMin heap.
Queue_Elem objElem
Definition: HeapMin.h:90
Opaque queue element.
Definition: Queue.h:204
HeapMin_Handle HeapMin_Object_first(void)
return handle of the first HeapMin on HeapMin list
char * buf
Buffer that will be managed by the heap instance.
Definition: HeapMin.h:119
Error block.
Definition: Error.h:152
size_t startSize
Definition: HeapMin.h:92
void HeapMin_Params_init(HeapMin_Params *prms)
Initialize the HeapMin_Params structure with default values.
char * buf
Buffer that will be managed by the heap instance.
Definition: HeapMin.h:101
Interface to heap functions.
Definition: HeapMin.h:110
Memory heap statistics.
Definition: Memory.h:94
size_t size
Size (in MADUs) of the heap.
Definition: HeapMin.h:132
HeapMin_Handle HeapMin_construct(HeapMin_Struct *obj, const HeapMin_Params *params)
Construct a HeapMin heap.
HeapMin_Handle HeapMin_create(const HeapMin_Params *params, Error_Block *eb)
Create a HeapMin heap.
void HeapMin_getStats(void *handle, Memory_Stats *statBuf)
get memory stats for a HeapMin object
HeapMin_Handle HeapMin_Object_next(HeapMin_Handle heap)
return handle of the next HeapMin on HeapMin list