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. | |
| enum mmgr_place |
Where a request should go.
| Enumerator | |
|---|---|
| PLACE_DRAM | Internal memory. |
| PLACE_PSRAM | External memory. |
| PLACE_FAIL | Neither will take it. |
Definition at line 35 of file memoria_externa.h.
| EMBED_HOST_DEVICE mmgr_place mmgr_extern_place | ( | const ExternaCfg * | args | ) |
Decides whether a request belongs in internal or external memory.
| [in] | args | Request size, the DMA requirement and both memory figures [BORROWS]. |
References mmgr_extern_place().
Referenced by mmgr_extern_place().
| EMBED_HOST_DEVICE void mmgr_pingpong_init | ( | const ExternaCfg * | args | ) |
Points the pair at buffer 0.
| [in,out] | args | Pair to reset, as args->pingpong [BORROWS]. |
References mmgr_pingpong_init().
Referenced by mmgr_pingpong_init().
| EMBED_HOST_DEVICE uint8_t mmgr_pingpong_fill_index | ( | const ExternaCfg * | args | ) |
Returns the index of the buffer under fill.
| [in] | args | Pair to read, as args->pingpong [BORROWS]. |
References mmgr_pingpong_fill_index().
Referenced by mmgr_pingpong_fill_index().
| EMBED_HOST_DEVICE uint8_t mmgr_pingpong_drain_index | ( | const ExternaCfg * | args | ) |
Returns the index of the buffer under drain.
| [in] | args | Pair to read, as args->pingpong [BORROWS]. |
References mmgr_pingpong_drain_index().
Referenced by mmgr_pingpong_drain_index().
| EMBED_HOST_DEVICE uint8_t mmgr_pingpong_swap | ( | const ExternaCfg * | args | ) |
Swaps which buffer takes the fill and which the drain.
| [in,out] | args | Pair to flip, as args->pingpong [BORROWS]. |
References mmgr_pingpong_swap().
Referenced by mmgr_pingpong_swap().
|
static |
Dispatch table instance named exter.
Definition at line 152 of file memoria_externa.h.