#ifndef __PD_HF_H__ #define __PD_HF_H__ #ifdef CFG_DEV_TYPE_LAND_PD /* Includes ------------------------------------------------------------------*/ typedef struct { uint8_t slot; // 槽位号 uint8_t type_m; // 主设备号 uint8_t type_s; // 次设备号 uint8_t reserved1[1]; // 保留 uint32_t dev_id; // 设备ID char hostname[FILE_NAME_LEN]; // 设备名 128byte uint32_t factory_date; // 出厂日期. uint32_t deployment_date; // 部署日期. uint8_t app_version[32]; // 软件版本 uint8_t app_compile_time[32]; // 软件编译时间 uint8_t hardware_version[32]; // 硬件版本 uint8_t FPGA_version[32]; // fpga版本 uint32_t ip; // 本机 IP. uint32_t mask; // 本机 MASK. uint32_t gw; // 本机网关 uint8_t mac[6]; // MAC地址. uint16_t server_port; // 服务器端口号. uint32_t server_ipv4; // 服务器 IP. uint8_t port[8]; uint8_t port_type[8]; } hf_dev_info_t; extern int32_t _hf_recv_process(int slot, char *pkt); #endif #endif