pgm_read_word_near()

Abstracet

The pgm_read_byte_near() is a macro that reads a word of data stored in a specified address(PROGMEM area).

Source Code

The pgm_read_word_near() is defined in hardware/tools/avr/avr/include/avr/pgmspace.h as below.

1
#define pgm_read_word_near(address_short) __LPM_word((uint16_t)(address_short))

The input is address_short and the macro converts the address_short to uint16_t, then calls __LPM_word() macro.

Version

7.3.0-atmel3.6.1-arduino7

Last Update

May 15, 2021

inserted by FC2 system