Declaration:
unsigned int GetByte(unsigned long addr, int addr_space);
Description
Reads a byte from the specified address in the specified address space (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 byte.
Example
printf("%02X", GetByte(AS_DATA, 0x1F);
|