Speeduino
Loading...
Searching...
No Matches
Functions
prog_mem_support.h File Reference

Helper methods for items stored in flash memory. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
static TcopyObject_P (const T *pAddress, T &t)
 Copy an object stored in flash to an existing RAM based instance.
 
template<typename T >
static T copyObject_P (const T *pAddress)
 Copy an object stored in flash to a new instance in RAM.
 

Detailed Description

Helper methods for items stored in flash memory.

Function Documentation

◆ copyObject_P() [1/2]

template<typename T >
static T copyObject_P ( const T pAddress)
inlinestatic

Copy an object stored in flash to a new instance in RAM.

Template Parameters
TType of object to load. Must be a POD
Parameters
pAddressAddress to load from
Returns
T Loaded object
Here is the call graph for this function:

◆ copyObject_P() [2/2]

template<typename T >
static T & copyObject_P ( const T pAddress,
T t 
)
inlinestatic

Copy an object stored in flash to an existing RAM based instance.

Template Parameters
TType of object to load. Must be a POD
Parameters
pAddressAddress to load from
tObject instance to load into.
Returns
T& Reference to t
Here is the call graph for this function:
Here is the caller graph for this function: