Declaration:
unsigned int GetWord(unsigned long addr, int addr_space);
Description
Reads a word (16 bits) from the specified address in the specified memory area (the addr_space parameter). Constants with the AS_ prefix for microcontroller memory areas (address spaces) are defined in the system.h header file.
Returned value
The read word.
Example
printf("%04X", GetWord(AS_DATA, 0x1F);
|