8.5.1 pgm_get_far_address Macro

Obtain a far address from an object.

Include

<avr/pgmspace.h>

Prototype

uint_farptr_t pgm_get_far_address(object);

Remarks

Obtains the far (32-bit) address of object.

Example

#include <avr/pgmspace.h>
const unsigned char PROGMEM romObj = 0x55;
int main(void)
{
  uint_farptr_t * cp;
  cp = pgm_get_far_address(&romObj);
}