Non-uniform memory access. More...
Go to the source code of this file.
Enumerations | |
enum | memspace_t { MEMSPACE_RAM, MEMSPACE_PROGMEM, MEMSPACE_EEPROM, MEMSPACE_NONE } |
Define which memory space the body of a data block is in. More... | |
Functions | |
void * | memcpy_memspace (enum memspace_t memspace, void *restrict dest, const void *restrict src, size_t length) |
Non-uniform memory access.
The ATmega32U4 has SRAM, flash and EEPROM to store data. In case dynamic information is mixed with static, perhaps device specific, information, a single interface is provided to access these different parts of the microcontroller's memory space.
enum memspace_t |
void* memcpy_memspace | ( | enum memspace_t | memspace, |
void *restrict | dest, | ||
const void *restrict | src, | ||
size_t | length | ||
) |
Generic memcpy function that calls the correct copy routine depending on the provided memory space.