8.5.6 pgm_read_dword_far Macro

Read a double-width word from the program space with a far address.

Include

<avr/pgmspace.h>

Prototype

unsigned long int pgm_read_byte_far(unsigned long int);

Remarks

Read a 32-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 long int PROGMEM romObj = 0x55;
int main(void)
{
  unsigned long int val;
  val = pgm_read_dword_far(&romObj);
}