8.5.9 pgm_read_float_far Macro

Read a floating-point object from the program space with a far address.

Include

<avr/pgmspace.h>

Prototype

float pgm_read_byte_far(unsigned long int);

Remarks

Read a float object 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 float PROGMEM romObj = 1.23;
int main(void)
{
  float val;
  val = pgm_read_float_far(&romObj);
}