Files
secs2-bootloader/usr/bsp/bsp_Flash.h

64 lines
1.9 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _BSP_FLASH_H_
#define _BSP_FLASH_H_
#include "main.h"
typedef struct
{
/*用于判断数据是否一致*/
u16 SN[5];
u8 IP_Addr[4];
u8 Gateway_IP[4];
u8 Port[2];
u8 Sub_Mask[4];
u16 Devic_Id;
u16 Device_ID[8]; // 'Atlas Abatement' - 15字符设备型号16字节
u16 Device_Model[8]; // 'AHTWA07CHAAC' - 12字符报警机台和位置12字节
u16 Device_SN[8]; //设备SN号
u16 Station_Name[8]; // 机台名称
u16 Chamber_Name[8]; // 腔体名称
u16 Manufacturer[8]; //厂商名称-10字符
u16 Version[8]; //机台软件版本号-10字符
u16 Station_Type[8]; //机台类型
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;
void (*Init)(void);
void (*Write)(void);
void (*Read)(void);
void (*Reset)(void);
} bsp_Flash_t;
extern bsp_Flash_t Usr_Flash;
#endif