HVAC_M7_DeviceStorage/DeviceStorage.h

39 lines
862 B
C

//
// Created by CFIF on 20.02.24.
//
#ifndef HVAC_DEVICESTORAGE_H
#define HVAC_DEVICESTORAGE_H
//#include "DeviceDataNonVolatile.h"
//#include "DeviceDataRuntime.h"
#include "LoggerInterface.h"
#include "DataRuntime.h"
#include "DataNonVolatile.h"
#include "StorageIO.h"
#include "VarsTabDumpObserver.h"
typedef struct {
tLoggerInterface *logger;
tDeviceDataRuntime runtime;
tDeviceDataNonVolatile *nvm;
tVariablesTable publicVariablesTable;
tVarsTabDumpObserver dumpObserver;
struct {
tVariableDescriptor vartab[50];
} mem;
} tDeviceStorage;
bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageInterface);
void DeviceStorage_InitDefaults(tDeviceStorage *env);
void DeviceStorage_ForceDump(tDeviceStorage *env);
void DeviceStorage_DelayedDump(tDeviceStorage *env);
#endif //HVAC_DEVICESTORAGE_H