#pragma once #include #include "user_app.h" #include "Crc16.h" #include "Util/logger.h" using namespace std; #define PIDS_DATA_HEAD (0xFD) // 帧头 #define PIDS_DATA_END (0xFE) // 帧尾 #define PIDS_SRC_TC1 (0x01) // 源设备车厢编号:TC1 #define PIDS_SRC_TC2 (0x02) // 源设备车厢编号:TC2 #define PIDS_SRC_TYPE_PIDS (0x03) // PIDS设备 #define PIDS_SRC_TYPE_MIVA (0x28) // 视频分析服务器设备 struct PIDSTime { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; };