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

DMA channels: the completion event, the port hooks, the praet dispatch table, and the schedule and descriptors under them. More...

Go to the source code of this file.

Data Structures

struct  mmgr_praet_event
 What the port layer reports when a transfer finishes. More...
struct  PraetCallbackCfg
 A completion callback and the pointer passed back to it. More...
struct  PraetCfg
 Arguments for a channel open, and for a poll of one. More...
struct  PraetTransferCfg
 Arguments for a transfer submit, and for a channel close. More...
struct  MemoriamPraetereoNs
 Type of the praet dispatch table. More...

Typedefs

typedef void(*) mmgr_praet_callback(const mmgr_praet_event *event, void *user)
 Reports a finished transfer to whatever registered this callback.

Functions

EMBED_HOST_DEVICE embed_bool mmgr_praet_open (const PraetCfg *args)
 Opens args->channel and registers args->on_complete against it.
EMBED_HOST_DEVICE embed_bool mmgr_praet_tx_submit (const PraetTransferCfg *args)
 Submits args->bytes of args->buf on args->channel.
EMBED_HOST_DEVICE void mmgr_praet_close (const PraetTransferCfg *args)
 Closes args->channel.
EMBED_HOST_DEVICE void mmgr_praet_poll (const PraetCfg *args)
 Drives the port layer's poll hook.
EMBED_HOST_DEVICE embed_bool mmgr_praet_hw_open (const PraetCfg *args)
 Opens a DMA channel on real hardware.
EMBED_HOST_DEVICE embed_bool mmgr_praet_hw_tx_submit (const PraetTransferCfg *args)
 Submits a transfer on real hardware.
EMBED_HOST_DEVICE void mmgr_praet_hw_close (const PraetTransferCfg *args)
 Closes a DMA channel on real hardware.
EMBED_HOST_DEVICE void mmgr_praet_hw_poll (const PraetCfg *args)
 Advances whatever poll work the port layer needs.

Variables

static const MemoriamPraetereoNs praet
 Dispatch table instance named praet.

Detailed Description

DMA channels: the completion event, the port hooks, the praet dispatch table, and the schedule and descriptors under them.

Author
dstroy0 (Douglas Quigg) dquig.nosp@m.g123.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
2026-08-29
Note
The one header a caller includes. praet_ordo.h and praet_descriptor.h come in at the end, and the knobs they read come from the build line, before the include reaches this.
Warning
Everything below exists only when MMGR_ENABLE_DMA holds.

Definition in file memoriam_praetereo.h.