Placement between internal and external memory, and a two-buffer index. More...
#include "mmgr.h"Go to the source code of this file.
Data Structures | |
| struct | PingPong |
| A pair of buffers, one under fill while the other is under drain. More... | |
| struct | ExternaCfg |
| Arguments for every exter call, where each call reads only the members it needs. More... | |
| struct | MemoriaExternaNs |
| Type of the exter dispatch table. More... | |
Enumerations | |
| enum | mmgr_place { PLACE_DRAM , PLACE_PSRAM , PLACE_FAIL } |
| Where a request should go. More... | |
Functions | |
| EMBED_HOST_DEVICE mmgr_place | mmgr_extern_place (const ExternaCfg *args) |
| Decides whether a request belongs in internal or external memory. | |
| EMBED_HOST_DEVICE void | mmgr_pingpong_init (const ExternaCfg *args) |
| Points the pair at buffer 0. | |
| EMBED_HOST_DEVICE uint8_t | mmgr_pingpong_fill_index (const ExternaCfg *args) |
| Returns the index of the buffer under fill. | |
| EMBED_HOST_DEVICE uint8_t | mmgr_pingpong_drain_index (const ExternaCfg *args) |
| Returns the index of the buffer under drain. | |
| EMBED_HOST_DEVICE uint8_t | mmgr_pingpong_swap (const ExternaCfg *args) |
| Swaps which buffer takes the fill and which the drain. | |
Variables | |
| static const MemoriaExternaNs | exter |
| Dispatch table instance named exter. | |
Placement between internal and external memory, and a two-buffer index.
Definition in file memoria_externa.h.