8.5.10 pgm_read_float_near Macro

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

Include

<avr/pgmspace.h>

Prototype

float pgm_read_word_near(unsigned int);

Remarks

Read a float object from the program space with a 16-bit (near) address.

Example

#include <avr/pgmspace.h>
const float PROGMEM romObj = 1.23;
int main(void)
{
  float val;
  val = pgm_read_float_near(&romObj);
}