8.5.15 pgm_read_word_far Macro
Read a word from the program space with a far address.
Include
<avr/pgmspace.h>
Prototype
unsigned int pgm_read_byte_far(unsigned long int);
Remarks
Read a 16-bit word from the program space with a 32-bit (far) address. These
functions use the elpm
instruction, and so can access any address in
program memory
Example
#include <avr/pgmspace.h>
const unsigned int PROGMEM romObj = 0x55;
int main(void)
{
unsigned int val;
val = pgm_read_word_far(&romObj);
}