extern_interface/include/exint/detail.hpp

28 lines
694 B
C++
Raw Permalink Normal View History

#ifndef _INCLUDE_EXTERN_INTERFACE_DETAIL_H_
#define _INCLUDE_EXTERN_INTERFACE_DETAIL_H_
#include <stdint.h>
#include <memory>
#include "external_interface.h"
#include "exint/protocol.hpp"
#define PrintFilePos()
#define COMMAND_RESEND_INTERVAL 250
#define COMMAND_RESEND_MAX_COUNT 3
extern "C" {
void exint_handle_pack(uint32_t type, size_t len, void* data);
}
extern int g_iExternTimeDifference;
extern uint8_t g_iAlarmCode[4];
extern std::unique_ptr<Transport> g_upperhost_transport;
extern std::unique_ptr<Transport> g_telemetry_transport;
void exint_setup(std::unique_ptr<Transport>&& upperhost_transport, std::unique_ptr<Transport>&& telemetry_transport, et_callback_t cb);
#endif