MPLAB® Harmony Graphics Suite
|
Structure: GFX_MemoryIntf_t
Applications utilizing the hardware abstraction layer may want to implement or utilize memory managers other than the standard library. This interface is the method for notifying the HAL of that manager.
The application must create a GFX_MemoryIntf struct, populate it with the fuction pointers that point to the custom memory manager, and pass the struct in to GFX_Open when the HAL context is created.
If no GFX_MemoryIntf is provided then the standard library memory management APIs will be used by default.
typedef struct GFX_MemoryIntf_t { GFX_Malloc_FnPtr malloc; GFX_Malloc_FnPtr coherent_alloc; GFX_Calloc_FnPtr calloc; GFX_Realloc_FnPtr realloc; GFX_Free_FnPtr free; GFX_Free_FnPtr coherent_free; GFX_Memset_FnPtr memset; GFX_Memcpy_FnPtr memcpy; } GFX_MemoryIntf;
None.
MPLAB® Harmony Graphics Suite
|