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

📄 types.h

📁 EMU_FTAbox_ref441328_code_source ali m3327
💻 H
字号:
/****************************************************************************
*
*  ALi 
*
*  File: types.h
*
*  Description: This file define the common data types which may be used
*               throughout the project.
*             
*  History:
*      Date        		Author         	Version   	Comment
*      ====        	      ======         	=======   	=======
*  	2006.1.13   	
*
****************************************************************************/


#ifndef _TYPES_H_
#define _TYPES_H_

#include <basic_types.h>

/*
 * union which converts two 8bit values into 16bit value.
 */
typedef	union
{
	UINT16	uint_16;
	struct
	{
		UINT8	uint80;	/* LSB */
		UINT8	uint81; /* MSB */
    } uint_8;
} UINT16TO8;

/*
 * union which converts two 16bit values into 32bit value.
 */
typedef	union
{
	UINT32	uint_32;
	struct
	{
		UINT16	low_16;
		UINT16	hi_16;
    } uint_16;
} UINT32TO16;


/* Support macros */
#define itemsof(a)      (sizeof(a) / sizeof(a[0]))

#endif

⌨️ 快捷键说明

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