Speeduino
Loading...
Searching...
No Matches
speeduino
prog_mem_support.h
Go to the documentation of this file.
1
5
#pragma once
6
15
template
<
typename
T>
16
static
inline
T&
copyObject_P
(
const
T *pAddress, T &t)
17
{
18
(void)memcpy_P(&t, pAddress,
sizeof
(T));
19
return
t;
20
}
21
29
template
<
typename
T>
30
static
inline
T
copyObject_P
(
const
T *pAddress)
31
{
32
T t = {};
33
return
copyObject_P
(pAddress, t);
34
}
copyObject_P
static T & copyObject_P(const T *pAddress, T &t)
Copy an object stored in flash to an existing RAM based instance.
Definition
prog_mem_support.h:16
Generated by
1.9.8