extern声明外部结构体.docxVIP

  • 18
  • 0
  • 约2.59千字
  • 约 3页
  • 2018-05-05 发布于河南
  • 举报
extern声明外部结构体

在extern声明外部结构体变量时,遇到问题如下:a.c文件struct STRUCT_PLC_MDL_ProductInfo {Uint16 ManufacturerID;// 路由模块厂商代码Uint16 ModelID;// 路由模块芯片代码union { Uint8 BS[3]; struct { Uint8 YY;// 年BCD码 Uint8 MM;// 月BCD码 Uint8 DD;// 日BCD码 } bytes;} VersionDate;// 路由模块版本日期Uint16 VersionID;// 路由模块版本号Uint8 COMType;// 路由模块通信方式Uint8 CH_NUM;// 路由模块信道个数Uint8 ProductID[6];// 路由模块生产编号Uint8 STR_PMType[10];// 路由模块类型型号(ASCII码)Uint8 STR_ProductDate[10];// 路由模块生产日期(ASCII码)Uint8 STR_PMCopyRight[32];// 路由模块版本信息(ASCII码)Uint8 STR_PMManufacturer [32];// 路由模块厂商信息(ASCII码)};const struct STRUCT_PLC_MDL_ProductInfo PLC_MDL_ProductInfo = {\0x7068,

文档评论(0)

1亿VIP精品文档

相关文档