// // Created by cfif on 11.04.2024. // #ifndef SMART_COMPONENTS_EGTSINPUTCOMMANDS_H #define SMART_COMPONENTS_EGTSINPUTCOMMANDS_H #include "EgtsProcessing.h" typedef enum { CODE_BLOCK_ALL = 0x0000, CODE_BLOCK_GNSS = 0x07CA, CODE_BLOCK_ABS = 0x07E3, CODE_BLOCK_ECM = 0x07E0, CODE_BLOCK_HVAC = 0x07E4, CODE_BLOCK_IMMO = 0x0723, CODE_BLOCK_PTS = 0x07E7 } egtsCodeBlock; typedef enum { EGTS_AURUS_COMMAND_RESULT_OK = 0x00, EGTS_AURUS_COMMAND_RESULT_ERROR = 0x01, EGTS_AURUS_COMMAND_RESULT_TIMESTAMP_TELE_STOP_OK = 0xFC, EGTS_AURUS_COMMAND_RESULT_TIMESTAMP_TELE_RUN_OK = 0xFD, EGTS_AURUS_COMMAND_RESULT_RESTART_OK = 0xFE, EGTS_AURUS_COMMAND_RESULT_UNKNOWN = 0xFF, } egtsAurusCommandResult; typedef enum { EGTS_SET_RESTART = 0x0008, EGTS_FLEET_GET_STATE = 0x0010, EGTS_SET_TIME = 0xFAC4, EGTS_SET_PERMANENT_TELEMATICA = 0xFAD0, EGTS_GET_REPORT = 0xFAC2, EGTS_GPRS_APN = 0x0203, EGTS_SERVER_ADDRESS = 0x0204, EGTS_SIM_PIN = 0x0205, EGTS_GPRS_USER = 0x051A } egtsAurusCommands; egtsAurusCommandResult egtsAurusAnalizCommands(tEgtsProcessing *env); egtsAurusCommandResult egtsAurusSetTimestamp(tEgtsProcessing *env); void addCommandQueue(tEgtsProcessing *env, tEgtsCommand *egtsCommand); uint8_t VariablesTable_ExGetVarTypeLength(tVariableDescriptor *var); _Noreturn void EgtsProcessing_TransmitterTaskInputCommand(tEgtsProcessing *env); #endif //SMART_COMPONENTS_EGTSINPUTCOMMANDS_H