FastLED 3.9.15
Loading...
Searching...
No Matches

◆ fl_progmem_read_float()

float fl::audio::fl_progmem_read_float ( const float * addr)
inline

Read a float from PROGMEM.

On AVR this reads flash via pgm_read_dword; on other platforms it's a plain memory read via memcpy (no aliasing issues).

Definition at line 25 of file mic_response_data.h.

25 {
26 u32 raw = FL_PGM_READ_DWORD_ALIGNED(addr);
27 float result;
28 FL_BUILTIN_MEMCPY(&result, &raw, sizeof(float));
29 return result;
30}
#define FL_PGM_READ_DWORD_ALIGNED(addr)
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
#define FL_BUILTIN_MEMCPY(dest, src, n)

References FL_BUILTIN_MEMCPY, and FL_PGM_READ_DWORD_ALIGNED.

Referenced by interpolateMicResponse().

+ Here is the caller graph for this function: