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

Typed loads and stores, and the proxim dispatch table. More...

#include "mmgr.h"

Go to the source code of this file.

Data Structures

struct  ProximusCfg
 Arguments for the proxim calls. More...
struct  ProximusOperorNs
 Type of the proxim dispatch table. More...

Functions

EMBED_HOST_DEVICE uint16_t mmgr_proxim_load16 (const ProximusCfg *args)
 Reads two bytes from args->at in the target's own order.
EMBED_HOST_DEVICE uint32_t mmgr_proxim_load32 (const ProximusCfg *args)
 Reads four bytes from args->at in the target's own order.
EMBED_HOST_DEVICE uint64_t mmgr_proxim_load64 (const ProximusCfg *args)
 Reads eight bytes from args->at in the target's own order.
EMBED_HOST_DEVICE void mmgr_proxim_put16 (const ProximusCfg *args)
 Writes the low two bytes of args->val to args->dst in the target's own order.
EMBED_HOST_DEVICE void mmgr_proxim_put32 (const ProximusCfg *args)
 Writes the low four bytes of args->val to args->dst in the target's own order.
EMBED_HOST_DEVICE void mmgr_proxim_put64 (const ProximusCfg *args)
 Writes all eight bytes of args->val to args->dst in the target's own order.
EMBED_HOST_DEVICE embed_word mmgr_proxim_load (const ProximusCfg *args)
 Reads one word from args->at in the target's own order.
EMBED_HOST_DEVICE void mmgr_proxim_put (const ProximusCfg *args)
 Writes the low word of args->val to args->dst in the target's own order.
EMBED_HOST_DEVICE embed_word mmgr_aequus_load (const ProximusCfg *args)
 Reads one word from an aligned args->at, in the target's own order.
EMBED_HOST_DEVICE void mmgr_aequus_put (const ProximusCfg *args)
 Writes the low word of args->val to an aligned args->dst.
EMBED_HOST_DEVICE uint64_t mmgr_aequus_load64 (const ProximusCfg *args)
 Reads eight bytes from an aligned args->at, in the target's own order.
EMBED_HOST_DEVICE void mmgr_aequus_put64 (const ProximusCfg *args)
 Writes all eight bytes of args->val to an aligned args->dst.
EMBED_HOST_DEVICE void mmgr_proxim_read (const ProximusCfg *args)
 Copies args->size bytes from args->at to args->dst.

Variables

static const ProximusOperorNs proxim
 Dispatch table instance named proxim.

Detailed Description

Typed loads and stores, and the proxim dispatch table.

Author
dstroy0 (Douglas Quigg) dquig.nosp@m.g123.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
2026-08-29
Note
load16 through put64, load, put and read take any address.
The four al_ entries need an address aligned for the type they carry.

Definition in file proximus_operor.h.