SMART_COMPONENTS_SubsystemS.../SubsystemSwitcher.h

38 lines
1005 B
C

//
// Created by zemon on 28.08.24.
//
#ifndef SMART_COMPONENTS_V2_SUBSYSTEMSWITCHER_H
#define SMART_COMPONENTS_V2_SUBSYSTEMSWITCHER_H
#include "SystemSelector.h"
#include "DeviceStorage.h"
#include "ModemDataCollector.h"
#include "TelematicaConnectStatus.h"
typedef struct {
tSystemSelector *systemSelector;
tModemDataColl *modemDataCollector;
eUveosDoNothing *uveosDoNothingMode;
tLoggerInterface *logger;
tDeviceStorage *storage;
eTelematicaIsConnect *telematicaIsConnect;
bool *fl_iniSysIsDone;
} tSystemSwitcher;
void SystemSwitcherInit(
tSystemSwitcher *env,
tSystemSelector *systemSelector,
tModemDataColl *modemDataCollector,
tLoggerInterface *logger,
tDeviceStorage *storage,
eUveosDoNothing *uveosDoNothingMode,
eTelematicaIsConnect *telematicaIsConnect,
bool *fl_iniSysIsDone
);
void SystemSelector(tSystemSwitcher *env, eSubSystems subSystems);
#endif //SMART_COMPONENTS_V2_SUBSYSTEMSWITCHER_H