39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
//
|
|
// Created by zemon on 29.08.24.
|
|
//
|
|
|
|
#ifndef SMART_COMPONENTS_V2_SYSTEMSELECTOR_H
|
|
#define SMART_COMPONENTS_V2_SYSTEMSELECTOR_H
|
|
|
|
#include "AtCmdBase.h"
|
|
#include "LoggerInterface.h"
|
|
#include "PwmSim7600e.h"
|
|
|
|
typedef enum {
|
|
UNDEFANDET = 0,
|
|
TELEMATICA = 1,
|
|
UVEOS = 2,
|
|
}eSubSystems;
|
|
|
|
typedef struct {
|
|
eSubSystems thisSsubSystem;
|
|
tAtCmd *gsmAt;
|
|
tLoggerInterface *logger;
|
|
tSim7600ePower *sim7600ePower;
|
|
uint32_t timeng;
|
|
} tSystemSelector;
|
|
|
|
void SystemSelectorInit(
|
|
tSystemSelector *env,
|
|
tAtCmd *gsmAt,
|
|
tLoggerInterface *logger,
|
|
tSim7600ePower *sim7600ePower
|
|
);
|
|
void ModemDataCollector_SetThisSubSystem(tSystemSelector *env, eSubSystems subSystems);
|
|
void ModemDataCollector_SelectionSimChip(tSystemSelector *env, tThisSimChip thisSimChip);
|
|
void ModemDataCollector_SelectionSimChipCoolBack(void *env, uint8_t thisSimChip);
|
|
tThisSimChip ModemDataCollector_GetThisSimChip(tSystemSelector *env);
|
|
eSubSystems ModemDataCollector_GetThisSubSystem(tSystemSelector *env);
|
|
|
|
#endif //SMART_COMPONENTS_V2_SYSTEMSELECTOR_H
|