MMgr v2.3.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
memoria_externa.h File Reference

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.

Detailed Description

Placement between internal and external memory, and a two-buffer index.

Author
dstroy0 (Douglas Quigg) dquig.nosp@m.g123.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
2026-08-29
Warning
Everything below exists only when MMGR_ENABLE_EXTRAM holds.

Definition in file memoria_externa.h.