15#ifndef MMGR_MEMORIA_EXTERNA_H
16#define MMGR_MEMORIA_EXTERNA_H
84EMBED_TABLE_LAYOUT(
MemoriaExternaNs, place, pingpong_init, pingpong_fill, pingpong_drain, pingpong_swap);
static const MemoriaExternaNs exter
Dispatch table instance named exter.
mmgr_place
Where a request should go.
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_swap(const ExternaCfg *args)
Swaps which buffer takes the fill and which the drain.
EMBED_HOST_DEVICE uint8_t mmgr_pingpong_drain_index(const ExternaCfg *args)
Returns the index of the buffer under drain.
The embedded_types headers every module builds on.
Arguments for every exter call, where each call reads only the members it needs.
const embed_bool dma_required
const size_t psram_threshold
const size_t dram_reserve
Type of the exter dispatch table.
uint8_t(*) pingpong_fill(const ExternaCfg *args)
void(*) pingpong_init(const ExternaCfg *args)
uint8_t(*) pingpong_drain(const ExternaCfg *args)
mmgr_place(*) place(const ExternaCfg *args)
uint8_t(*) pingpong_swap(const ExternaCfg *args)
A pair of buffers, one under fill while the other is under drain.