Helper methods for items stored in flash memory.
More...
Go to the source code of this file.
|
| template<typename T > |
| static T & | copyObject_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.
|
| |
Helper methods for items stored in flash memory.
◆ 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
-
| T | Type of object to load. Must be a POD |
- Parameters
-
| pAddress | Address to load from |
- Returns
- T Loaded object
◆ 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
-
| T | Type of object to load. Must be a POD |
- Parameters
-
| pAddress | Address to load from |
| t | Object instance to load into. |
- Returns
- T& Reference to t