Auto commit from DCSP - 2026/1/4 20:30:54
This commit is contained in:
22
ComHS.h
22
ComHS.h
@@ -5,6 +5,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
// 遥测cmd定义
|
||||
#define CON_TELEMETRY 0x0F //常规遥测查询
|
||||
#define TELECONTROL_CMD 0x1E //遥控指令
|
||||
@@ -154,16 +156,16 @@ typedef struct __attribute__((__packed__)) {
|
||||
} Multi_EPDU_packet_t;
|
||||
|
||||
// 声明ComHS接口函数
|
||||
void ComHSWriteLog(const std::string &msg);
|
||||
void ComHS_init(uint8_t domainid, std::string appname);
|
||||
void command_callback(std::string src, std::string dest, std::string type,
|
||||
std::string reserve1, std::string reserve2,
|
||||
std::vector<uint8_t>& data);
|
||||
void telemetry_callback(std::string src, std::string dest, std::string type,
|
||||
std::string reserve1, std::string reserve2,
|
||||
std::vector<uint8_t>& data);
|
||||
void ComHS_command_Pub(uint8_t* data, std::string dest, uint16_t len);
|
||||
void ComHS_telemetry_Pub(uint8_t* data, std::string dest, uint16_t len);
|
||||
void ComHSWriteLog(const string &msg);
|
||||
void ComHS_init(uint8_t domainid, string appname);
|
||||
void command_callback(string src, string dest, string type,
|
||||
string reserve1, string reserve2,
|
||||
vector<uint8_t>& data);
|
||||
void telemetry_callback(string src, string dest, string type,
|
||||
string reserve1, string reserve2,
|
||||
vector<uint8_t>& data);
|
||||
void ComHS_command_Pub(uint8_t* data, string dest, uint16_t len);
|
||||
void ComHS_telemetry_Pub(uint8_t* data, string dest, uint16_t len);
|
||||
|
||||
// 声明串口操作函数
|
||||
int scomm_uart_init(const char *dev_telec, const char *dev_telem, int baudrate);
|
||||
|
||||
Reference in New Issue
Block a user