39 lines
870 B
C
39 lines
870 B
C
//
|
|
// Created by CFIF on 20.02.24.
|
|
//
|
|
|
|
#ifndef HVAC_DEVICESTORAGE_H
|
|
#define HVAC_DEVICESTORAGE_H
|
|
//#include "EraGlonassUveos.h"
|
|
|
|
//#include "DeviceDataNonVolatile.h"
|
|
//#include "DeviceDataRuntime.h"
|
|
#include "LoggerInterface.h"
|
|
#include "DataRuntime.h"
|
|
#include "DataNonVolatile.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
|