2 ******************************************************************************
4 * @file fw_head_check.h
6 * @brief ecrnx usb firmware validity check functions
8 * Copyright (C) ESWIN 2015-2020
10 ******************************************************************************
13 #ifndef _FW_HEAD_CHECK_H_
14 #define _FW_HEAD_CHECK_H_
18 #define HEAD_SIZE (64)
19 #define INFO_SIZE (48)
21 typedef struct _bin_head_data {
22 unsigned int head_crc32;
25 unsigned int UTC_time;
26 unsigned char *fw_Info;
38 extern unsigned int offset;
40 void localtime(struct tm *stTm, unsigned int time);
41 bool fw_check_head(struct eswin *tr);