SMART_COMPONENTS_DeviceStorage/DeviceStorage.h

42 lines
1.1 KiB
C

//
// Created by zemon on 20.02.24.
//
#ifndef HEAVY_TERMINAL_DEVICESTORAGE_H
#define HEAVY_TERMINAL_DEVICESTORAGE_H
//#include "EraGlonassUveos.h"
//#include "DeviceDataNonVolatile.h"
//#include "DeviceDataRuntime.h"
#include "LoggerInterface.h"
#include "DataRuntime.h"
#include "DataNonVolatile.h"
#include "VarsTabDumpObserver.h"
#include "EraGlonassUveos_Dumper.h"
//#include "VarsTabDumpObserver.h"
typedef struct {
tLoggerInterface *logger;
tDeviceDataRuntime runtime;
tDeviceDataNonVolatile *nvm;
tVariablesTable publicVariablesTable;
tVarsTabDumpObserver dumpObserver;
tEraGlonassUveosDumperInterface uveosDumper;
struct {
tVariableDescriptor vartab[200];
} 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 //HEAVY_TERMINAL_DEVICESTORAGE_H