FastLED 3.9.15
Loading...
Searching...
No Matches
heap.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stl/int.h"
4
11
12namespace fl {
13
16struct HeapInfo {
17 fl::size free_sram;
18 fl::size free_psram;
19
21 fl::size total() const { return free_sram + free_psram; }
22
24 bool has_psram() const { return free_psram > 0; }
25};
26
49HeapInfo getFreeHeap();
50
51} // namespace fl
HeapInfo getFreeHeap()
Query available heap memory.
Definition heap.cpp.hpp:67
Base definition for an LED controller.
Definition crgb.hpp:179
bool has_psram() const
Check if PSRAM is available.
Definition heap.h:24
fl::size free_psram
Free PSRAM in bytes (external slower memory, 0 if not available)
Definition heap.h:18
fl::size total() const
Total free heap (SRAM + PSRAM)
Definition heap.h:21
fl::size free_sram
Free SRAM in bytes (internal fast memory)
Definition heap.h:17
Heap memory information.
Definition heap.h:16