FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
flash::FlashReader< T > Class Template Reference

Functor reading items from an address in AVR Flash memory (PROGMEM). More...

#include <fastarduino/flash.h>

Public Member Functions

 FlashReader (const T *flash_buffer)
 Construct a FlashReader functor reading Flash from flash_buffer address. More...
 
operator() ()
 Get the enxt item read from memory. More...
 

Detailed Description

template<typename T>
class flash::FlashReader< T >

Functor reading items from an address in AVR Flash memory (PROGMEM).

Template Parameters
Tthe typ of items to read from Flash

Definition at line 110 of file flash.h.

Constructor & Destructor Documentation

◆ FlashReader()

template<typename T >
flash::FlashReader< T >::FlashReader ( const T *  flash_buffer)
inlineexplicit

Construct a FlashReader functor reading Flash from flash_buffer address.

Parameters
flash_buffera pointer to the first item in Flash memory

Definition at line 118 of file flash.h.

Member Function Documentation

◆ operator()()

template<typename T >
T flash::FlashReader< T >::operator() ( )
inline

Get the enxt item read from memory.

Returns
T the next read item from Flash

Definition at line 125 of file flash.h.


The documentation for this class was generated from the following file: