Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These macros copy and decode data values from any CPU memory address to any other memory address.

Files

lib_mem.h

Prototypes

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
MEM_VAL_COPY_GET_INT08U_BIG(addr_dest, addr_src);
MEM_VAL_COPY_GET_INT16U_BIG(addr_dest, addr_src);
MEM_VAL_COPY_GET_INT32U_BIG(addr_dest, addr_src);
MEM_VAL_COPY_GET_INTU_BIG(addr_dest, addr_src, val_size);

MEM_VAL_COPY_GET_INT08U_LITTLE(addr_dest, addr_src);
MEM_VAL_COPY_GET_INT16U_LITTLE(addr_dest, addr_src);
MEM_VAL_COPY_GET_INT32U_LITTLE(addr_dest, addr_src);
MEM_VAL_COPY_GET_INTU_LITTLE(addr_dest, addr_src, val_size);

MEM_VAL_COPY_GET_INT08U(addr_dest, addr_src);
MEM_VAL_COPY_GET_INT16U(addr_dest, addr_src);
MEM_VAL_COPY_GET_INT32U(addr_dest, addr_src);
MEM_VAL_COPY_GET_INTU(addr_dest, addr_src, val_size);

Arguments

addr_dest

Lowest CPU memory address to copy/decode source address’s data value.

...

Since octet-order copy/conversion are inverse operations, MEM_VAL_COPY_GET_xxx() and MEM_VAL_COPY_SET_xxx() memory data-copy get/set macros are inverse, but identical, operations and are provided in both forms for semantics and consistency.

Example Usage

...

LanguageC++
CaptionTextCAPTION
languagecpp

...