![]() |
EVE 1.0
|
![]() |
Data Structures | |
struct | md_list_t |
struct | md_descriptor_t |
struct | md_stat_t |
struct | md_state_t |
struct | md_heap_t |
struct | md_auto_lock_t |
Macros | |
#define | MEM_AUTO_LOCK(TheName, TheHeap, ThePtr) |
Typedefs | |
typedef uint8_t | md_idx_t |
typedef void(* | md_reloc_handler_t) (void **Ptr, void *Addr) |
typedef bool(* | md_swap_out_cb_t) (const struct md_heap_t *Heap, uint32_t Pos, const uint8_t **DataPtr, uint32_t Size) |
typedef bool(* | md_swap_in_cb_t) (const struct md_heap_t *Heap, uint8_t **DataPtr, uint32_t Pos, uint32_t Size) |
Functions | |
void | MemDefragment (const struct md_heap_t *Heap) |
#define MEM_AUTO_LOCK | ( | TheName, | |
TheHeap, | |||
ThePtr | |||
) |
Auto lock
typedef void(* md_reloc_handler_t) (void **Ptr, void *Addr) |
typedef bool(* md_swap_out_cb_t) (const struct md_heap_t *Heap, uint32_t Pos, const uint8_t **DataPtr, uint32_t Size) |
typedef bool(* md_swap_in_cb_t) (const struct md_heap_t *Heap, uint8_t **DataPtr, uint32_t Pos, uint32_t Size) |
Swap-in user callback
Heap | Heap instance pointer |
Data | Address of the data buffer in the internal memory to be filled by data |
Pos | Position in the external memory where data is located |
Size | Size of the data |
void MemDefragment | ( | const struct md_heap_t * | Heap | ) |
Compact the memory pool, collect small free blocks into a big one(s)
Heap | Heap instance pointer |