#ifndef _BSP_FLASH_H_ #define _BSP_FLASH_H_ #include "main.h" typedef struct { /*用于判断数据是否一致*/ u16 SN[10]; u8 IP_Addr[4]; u8 Gateway_IP[4]; u8 Port[2]; u8 Sub_Mask[4]; u8 IP_Addr_1[4]; /*网口1*/ u8 Gateway_IP_1[4]; u8 Port_1[2]; u8 Sub_Mask_1[4]; u8 IP_Addr_2[4]; /*客户端目标IP*/ u8 Port_2[2]; u16 Devic_Id; u16 Devic_Id_1; u16 Device_ID[12]; // 20字符,设备型号(20字节) u16 Device_Model[12]; // 18字符,报警机台和位置(20字节) u16 Device_SN[12]; //设备SN号 u16 Station_Name[12]; // 机台名称 u16 Chamber_Name[12]; // 腔体名称 u16 Manufacturer[12]; //厂商名称 u16 Version[12]; //机台软件版本号 u16 Station_Type[12]; //机台类型 u16 Alarm_info[20]; //使用PM100中的 u16 Data_ID1; //置空 u32 Collection_event_ID1; //CEID为固定值 u32 Report_ID1; //置空 u32 Alarm_ID; //使用函数内部的 u16 Alarm_Type[7]; // 使用函数内部 u16 Begin_Warning[7]; //函数内部固定为begin u16 IDS[11]; //置空 u16 Over_Trigger[9]; u16 Equipment[5]; u16 E9[19]; u16 Device_Type; //置空 u16 Sensor; u16 Alarm_value; u16 Alarm_ubit; u16 Start_Time[11]; //开始时间 u16 Alarm_Time[6]; //报警时长 u16 Alarm[6]; //报警类型 策略报警、机台报警 u16 Data_ID2; u16 Collection_event_ID2; u16 Report_ID2; u16 Sub_Device_Type[2]; // 附属设备类型 u16 Sub_Device_State[2]; // 附属设备状态 u16 State_Change_Time[2]; // 状态切换时间格式 } bsp_FlashData_t; typedef struct { bsp_FlashData_t TempFlashData; bsp_FlashData_t FlashData; u8 test; void (*Init)(void); void (*Write)(void); void (*Read)(void); void (*Reset)(void); } bsp_Flash_t; extern bsp_Flash_t Usr_Flash; #endif