nxdrvlinux/libcifx/Toolkit/Common/HilscherDefinitions/Hil_FileHeaderNXS.h
Sebastian Doell ac2f4d1789 Add initial driver source based on svn versions:
- toolkit V2.8.0.1@14806
 - BSL V1.8.0.0@14590
 - tcpserver: V1.4.3.0@14676 (marshaller V2.4.0.1@14551)
2024-02-05 09:23:09 +01:00

46 lines
2.0 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**************************************************************************************
Copyright (c) Hilscher Gesellschaft fuer Systemautomation mbH. All Rights Reserved.
***************************************************************************************
  $HeadURL: https://subversion01/svn/HilscherDefinitions/netXFirmware/Headers/tags/20230403-00/includes/Hil_FileHeaderNXS.h $: *//*!
\file Hil_FileHeaderNXS.h
File Header for NXS files.
**************************************************************************************/
#ifndef HIL_FILEHEADERNXS_H_
#define HIL_FILEHEADERNXS_H_
#include <stdint.h>
#include "Hil_Compiler.h"
typedef __HIL_PACKED_PRE struct __HIL_PACKED_POST BINDING_Ttag
{
uint32_t ulUniqueId[3];
uint32_t ulAnchors[4];
uint32_t ulUniqueIdMask[3];
uint32_t ulAnchorsMask[4];
} BINDING_T;
typedef __HIL_PACKED_PRE struct __HIL_PACKED_POST SEC_INFO_Ttag
{
uint16_t usOptions;
uint16_t usUsedKeys;
BINDING_T tBindingCom;
BINDING_T tBindingApp;
uint8_t abSignature[512];
} SEC_INFO_T;
/** NXS file header (644 bytes)
This structure contains the complete NXS file header as it can be found as binary file. */
typedef __HIL_PACKED_PRE struct __HIL_PACKED_POST FILE_NXS_HEADER_V1_0_Ttag
{
uint32_t ulMagicCookie; /**< HIL_FILE_HEADER_NXS_COOKIE */
uint32_t ulHeaderVersion; /**< structure version (major, minor), 0x00010000 */
uint32_t ulFileLength; /**< file length (header + data) */
SEC_INFO_T tSigInfo; /**< signature parameter */
uint32_t ulHeaderCrc32; /**< CRC32 of NXS header */
} FILE_NXS_HEADER_V1_0_T;
#endif /* HIL_FILEHEADERNXS_H_ */