FastLED 3.10.8
Loading...
Searching...
No Matches
heap.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stl/int.h"
4#include "fl/stl/noexcept.h"
5
12
13namespace fl {
14
17struct HeapInfo {
18 fl::size free_sram;
19 fl::size free_psram;
20
22 fl::size total() const FL_NO_EXCEPT { return free_sram + free_psram; }
23
25 bool has_psram() const FL_NO_EXCEPT { return free_psram > 0; }
26};
27
50HeapInfo getFreeHeap() FL_NO_EXCEPT;
51
52} // namespace fl
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
HeapInfo getFreeHeap() FL_NO_EXCEPT
Query available heap memory.
Definition heap.cpp.hpp:68
Base definition for an LED controller.
Definition crgb.hpp:179
#define FL_NO_EXCEPT
fl::size total() const FL_NO_EXCEPT
Total free heap (SRAM + PSRAM)
Definition heap.h:22
fl::size free_psram
Free PSRAM in bytes (external slower memory, 0 if not available)
Definition heap.h:19
bool has_psram() const FL_NO_EXCEPT
Check if PSRAM is available.
Definition heap.h:25
fl::size free_sram
Free SRAM in bytes (internal fast memory)
Definition heap.h:18
Heap memory information.
Definition heap.h:17