8.5.5 pgm_read_dword_near Macro

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

Include

<avr/pgmspace.h>

Prototype

unsigned long int pgm_read_dword_near(unsigned int);

Remarks

Read a 32-bit word from the program space with a 16-bit (near) address.

Example

#include <avr/pgmspace.h>
const unsigned long PROGMEM romObj = 0x55;
int main(void)
{
  unsigned long val;
  val = pgm_read_dword_near(&romObj);
}