⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xversion.h

📁 基于Xilinx-XUPV2P开发平台的嵌入式系统实验例程:实验4编写基本的应用程序
💻 H
字号:
/* $Id: xversion.h,v 1.7 2005/09/26 19:11:51 trujillo Exp $ *//********************************************************************************       XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"*       AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND*       SOLUTIONS FOR XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE,*       OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,*       APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION*       THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,*       AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE*       FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY*       WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE*       IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR*       REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF*       INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS*       FOR A PARTICULAR PURPOSE.**       (c) Copyright 2002 Xilinx Inc.*       All rights reserved.*******************************************************************************//*****************************************************************************//*** @file xversion.h** This file contains the interface for the XVersion component. This* component represents a version ID.  It is encapsulated within a component* so that it's type and implementation can change without affecting users of* it.** The version is formatted as X.YYZ where X = 0 - 9, Y = 00 - 99, Z = a - z* X is the major revision, YY is the minor revision, and Z is the* compatability revision.** Packed versions are also utilized for the configuration ROM such that* memory is minimized. A packed version consumes only 16 bits and is* formatted as follows.** <pre>* Revision                  Range       Bit Positions** Major Revision            0 - 9       Bits 15 - 12* Minor Revision            0 - 99      Bits 11 - 5* Compatability Revision    a - z       Bits 4 - 0** MODIFICATION HISTORY:** Ver   Who    Date   Changes* ----- ---- -------- -------------------------------------------------------* 1.00a xd   11/03/04 Improved support for doxygen.* </pre>*******************************************************************************/#ifndef XVERSION_H    /* prevent circular inclusions */#define XVERSION_H    /* by using protection macros */#ifdef __cplusplusextern "C" {#endif/***************************** Include Files *********************************/#include "xbasic_types.h"#include "xstatus.h"/************************** Constant Definitions *****************************//**************************** Type Definitions *******************************//* the following data type is used to hold a null terminated version string * consisting of the following format, "X.YYX" */typedef Xint8 XVersion[6];/***************** Macros (Inline Functions) Definitions *********************//************************** Function Prototypes ******************************/void XVersion_UnPack(XVersion *InstancePtr, Xuint16 PackedVersion);XStatus XVersion_Pack(XVersion *InstancePtr, Xuint16 *PackedVersion);Xboolean XVersion_IsEqual(XVersion *InstancePtr, XVersion *VersionPtr);void XVersion_ToString(XVersion *InstancePtr, Xint8 *StringPtr);XStatus XVersion_FromString(XVersion *InstancePtr, Xint8 *StringPtr);void XVersion_Copy(XVersion *InstancePtr, XVersion *VersionPtr);#ifdef __cplusplus}#endif#endif              /* end of protection macro */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -