Function GetMemory

Top 

Declaration:

void GetMemory(void dest[], int n, unsigned long addr, int addr_space);

Description

Reads n-byte memory block from the specified address in the specified memory area (the addr_space parameter) to the dest array. Constants with the AS_ prefix for microcontroller memory areas (address spaces) are defined in the system.h header file.

Example

char array[20]; GetMemory(array, sizeof(array), 0x20, AS_DATA);