EraGlonassUveos/Inc/EraGlonassUveos_Private.h

60 lines
1.8 KiB
C

//
// Created by xemon on 30.11.22.
//
#ifndef UVEOS_ON_NATION_ERAGLONASSUVEOS_PRIVATE_H
#define UVEOS_ON_NATION_ERAGLONASSUVEOS_PRIVATE_H
#include <SystemDelayInterface.h>
#include <AsciiStringAssmeblingUtils.h>
#include <memory.h>
#include "EraGlonassUveos.h"
#include "egts.h"
eEraGlonassUveos_EcallProcessingResult EraGlonassUveos_ProcessingEmergency(
tEraGlonassUveos *env,
eEcallActivationType activationType,
eEcallTestMode testMode,
bool debugMode
);
bool EraGlonassUveos_EgtsSmsConfirmation(
tEraGlonassUveos *env,
uint8_t cmdType,
uint8_t cmdConfirmationType,
uint32_t cmdId,
uint32_t srcId,
uint16_t address,
uint8_t size,
uint8_t act,
uint16_t reqType
);
bool EraGlonassUveos_EgtsResponse(tEraGlonassUveos *env, uint16_t recNum, uint16_t crn, uint16_t cid);
bool EraGlonassUveos_EgtsSmsConfirmation(
tEraGlonassUveos *env,
uint8_t cmdType,
uint8_t cmdConfirmationType,
uint32_t cmdId,
uint32_t srcId,
uint16_t address,
uint8_t size,
uint8_t act,
uint16_t reqType
);
bool EraGlonassUveos_ResentMsdTry(tEraGlonassUveos *env, tEraGlonassMsdTableItem *msdItem);
void EraGlonassUveos_Indicate(tEraGlonassUveos *env, tEraGlonassUveosStatus status);
void EraGlonassUveos_UpdateCurrentSettingsMsd(tEraGlonassUveos *env, eEcallTimeSourse timeSourse);
void EraGlonassUveos_GenCurrentMsd(tEraGlonassUveos *env, eEcallActivationType activationType,
eEcallTestMode testMode, eEcallTimeSourse timeSourse);
bool EraGlonassUveos_EmergencySendMsdSmsTry(tEraGlonassUveos *env, tMsdEncoded *msdEncoded);
static bool EraGlonassUveos_SendEgtsSms(tEraGlonassUveos *env, tEgtsEncoded *egtsEncoded);
#endif //UVEOS_ON_NATION_ERAGLONASSUVEOS_PRIVATE_H