LibMWCapture  3.3.1
LibMWCapture Documentation
MWCommon.h
Go to the documentation of this file.
1 // CONFIDENTIAL and PROPRIETARY software of Magewell Electronics Co., Ltd.
3 // Copyright (c) 2011-2014 Magewell Electronics Co., Ltd. (Nanjing)
4 // All rights reserved.
5 // This copyright notice MUST be reproduced on all authorized copies.
7 
8 #pragma once
9 
10 #pragma pack(push)
11 #pragma pack(1)
12 
13 // Firmware header
14 #define MW_SERIAL_NO_LEN 16
15 #define MW_FAMILY_NAME_LEN 64
16 #define MW_PRODUCT_NAME_LEN 64
17 
18 typedef enum _MW_FAMILY_ID {
22 } MW_FAMILY_ID;
23 
24 typedef struct _MW_DATE_TIME {
32 } MW_DATE_TIME;
33 
34 #define MW_FIRMWARE_HEADER_MAGIC ((DWORD)('M') | ((DWORD)('W') << 8) | ((DWORD)('F') << 16) | ((DWORD)('H') << 24))
35 #define MW_FIRMWARE_HEADER_VERSION 1
36 #define MW_FIRMWARE_NAME_LEN 64
37 #define MW_FIRMWARE_SECTION_NAME_LEN 16
38 
39 #define MW_MAX_NUM_FIRMWARE_SECTIONS 16
40 
41 // Compatible ID: wProductID, chHardwareVersion and byFirmwareID
42 typedef struct _MW_FIRMWARE_INFO_HEADER {
56 
63 
64 typedef struct _MW_FIRMWARE_HEADER {
68 
69 #pragma pack(pop)
#define WORD
Definition: WinTypes.h:23
#define DWORD
Definition: WinTypes.h:31
CHAR szFirmwareName[MW_FIRMWARE_NAME_LEN]
Definition: MWCommon.h:52
CHAR szProductName[MW_PRODUCT_NAME_LEN]
Definition: MWCommon.h:51
MW_DATE_TIME dtBuild
Definition: MWCommon.h:53
#define MW_MAX_NUM_FIRMWARE_SECTIONS
Definition: MWCommon.h:39
_MW_FAMILY_ID
Definition: MWCommon.h:18
MW_FIRMWARE_INFO_HEADER infoHeader
Definition: MWCommon.h:65
struct _MW_DATE_TIME MW_DATE_TIME
#define MW_FIRMWARE_SECTION_NAME_LEN
Definition: MWCommon.h:37
#define BYTE
Definition: WinTypes.h:15
CHAR szName[MW_FIRMWARE_SECTION_NAME_LEN]
Definition: MWCommon.h:58
BYTE byHour
Definition: MWCommon.h:28
MW_FIRMWARE_SECTION_HEADER aSectionHeaders[MW_MAX_NUM_FIRMWARE_SECTIONS]
Definition: MWCommon.h:66
BYTE bySecond
Definition: MWCommon.h:30
BYTE byDay
Definition: MWCommon.h:27
#define MW_PRODUCT_NAME_LEN
Definition: MWCommon.h:16
BYTE byReserved
Definition: MWCommon.h:31
struct _MW_FIRMWARE_SECTION_HEADER MW_FIRMWARE_SECTION_HEADER
#define MW_FIRMWARE_NAME_LEN
Definition: MWCommon.h:36
enum _MW_FAMILY_ID MW_FAMILY_ID
WORD wYear
Definition: MWCommon.h:25
BYTE byMinute
Definition: MWCommon.h:29
struct _MW_FIRMWARE_INFO_HEADER MW_FIRMWARE_INFO_HEADER
BYTE byMonth
Definition: MWCommon.h:26
#define CHAR
Definition: WinTypes.h:19
struct _MW_FIRMWARE_HEADER MW_FIRMWARE_HEADER