10#include <ipc/cs_IpcRamDataContents.h>
42 const bluenet_ipc_bluenet_data_t&
getData();
Class to operate on bluenet to bluenet IPC ram.
Definition: cs_IpcRamBluenet.h:17
IpcRamBluenet()
Constructor, singleton, thus made private.
void updateMicroappData(uint8_t appIndex, const microapp_reboot_data_t &data)
Update a microapp field.
void clearData()
Clear the cached data.
bool isValidOnBoot()
Whether the IPC ram data was valid before init.
void updateEnergyUsed(const int64_t &energyUsed)
Update the energy field.
const bluenet_ipc_bluenet_data_t & getData()
Get the current data.
bluenet_ipc_data_payload_t _ipcData
Cache the data in IPC.
Definition: cs_IpcRamBluenet.h:69
void init()
Reads the IPC ram.
IpcRamBluenet & operator=(IpcRamBluenet const &)=delete
Assignment operator, singleton, thus made private.
static IpcRamBluenet & getInstance()
Get the singleton instance.
IpcRamBluenet(IpcRamBluenet const &)=delete
Copy constructor, singleton, thus made private.
bool _isValidOnBoot
Definition: cs_IpcRamBluenet.h:71
void updateData()
Copy cache to IPC ram.