PDK API Guide for AM64x
MemoryP.h
Go to the documentation of this file.
1 
56 #ifndef ti_osal_MemoryP__include
57 #define ti_osal_MemoryP__include
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 #include <stdint.h>
64 #include <stdbool.h>
65 #include <stddef.h>
66 
72 typedef struct
73 {
75  uint32_t totalSize;
76 
78  uint32_t totalFreeSize;
80 
89 extern void* MemoryP_ctrlAlloc(uint32_t size, uint8_t alignment);
90 
99 extern void MemoryP_ctrlFree(void* ptr, uint32_t size);
100 
109 extern void* MemoryP_dataAlloc(uint32_t size, uint8_t alignment);
110 
119 extern void MemoryP_dataFree(void* ptr, uint32_t size);
120 
128 extern void MemoryP_getStats(MemoryP_Stats *stats);
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif /* ti_osal_MemoryP__include */
135 /* @} */
void * MemoryP_ctrlAlloc(uint32_t size, uint8_t alignment)
Function which is used to allocate memory for control operations.
void * MemoryP_dataAlloc(uint32_t size, uint8_t alignment)
Function which is used to allocate memory for data operations.
uint32_t totalSize
Definition: MemoryP.h:75
uint32_t totalFreeSize
Definition: MemoryP.h:78
void MemoryP_getStats(MemoryP_Stats *stats)
Function which is used to get data memory stats.
void MemoryP_dataFree(void *ptr, uint32_t size)
Function which is used to free previously allocated data memory.
void MemoryP_ctrlFree(void *ptr, uint32_t size)
Function which is used to free previously allocated control memory.
uint16_t size
Definition: tisci_boardcfg.h:112
Memory Heap stats.
Definition: MemoryP.h:72