FastLED 3.10.8
Loading...
Searching...
No Matches
AutoResearchBle.cpp
Go to the documentation of this file.
1// examples/AutoResearch/AutoResearchBle.cpp
2//
3// BLE autoresearch state accessor.
4// BLE transport creation/destruction is handled by
5// AutoResearchRemoteControl::startBleRemote()/stopBleRemote() in AutoResearchRemote.cpp.
6
7// Gate the entire file out under low-memory mode -- the LowMemory bring-up
8// surface (AutoResearchLowMemory.h) doesn't use BLE state and the full
9// fl::net BLE stack does not fit on parts like LPC845-BRK (64 KB flash).
10// Matches the conditional structure in AutoResearch.ino itself.
12#if FL_PLATFORM_HAS_LARGE_MEMORY
13
14#include "AutoResearchBle.h"
15#include "fl/stl/singleton.h"
16
17struct BleStateHolder {
18 AutoResearchBleState state;
19};
20
23}
24
25#endif // FL_PLATFORM_HAS_LARGE_MEMORY
AutoResearchBleState & getBleState()
Get current BLE autoresearch state.
State for BLE autoresearch.
TestState state
static T & instance() FL_NO_EXCEPT
Definition singleton.h:41