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

📄 type.h

📁 SM59D04G2_EEPROM读写 其他人不需帐号就可自由下载此源码
💻 H
字号:
//=========================================================================
//
//                  S Y N C M O S   T E C H N O L O G Y
//
//           COPYRIGHT (c)   2007 BY SyncMOS Technologies International,Inc.
//                     --  ALL RIGHTS RESERVED  --
//
// File Name : Type.h   
// Created: 2007/02/26
// Author: Jeff Lee
// Description:
//	This file is to do type-define
// Revision: 0.1
// History:
//=========================================================================
#ifndef _TYPE_H
#define _TYPE_H

typedef	bit	Bit;
typedef bit	Bool;
typedef unsigned char	Byte;
typedef unsigned int	Word;
typedef unsigned long 	Long;

typedef Byte idata iByte;
typedef Word idata iWord;
typedef Long idata iLong;

typedef Byte xdata  xByte;
typedef Word xdata  xWord;
typedef Long xdata  xLong;

typedef Byte code  cByte;
typedef Word code  cWord;
typedef Long code cLong;

typedef Byte bdata bByte;
typedef Word bdata bWord;
typedef Long bdata bLong;

typedef union 
		{
		Byte		B[2];	// b[0] High Byte
		Word	W;
		}UWord;

typedef union 
		{
		Byte		B[4];	// b[0] High Byte
		Word	W[2];
		Long		L;
		}ULong;		


#define DATA	data
#define IDATA	idata
#define PDATA	pdata
#define XDATA	xdata
#define RDATA	code


#define ERROR	(Bool)0
#define TRUE		(Bool)!ERROR

#define Bit0			0x01
#define Bit1			0x02
#define Bit2			0x04
#define Bit3			0x08
#define Bit4			0x10
#define Bit5			0x20
#define Bit6			0x40
#define Bit7			0x80

#endif

⌨️ 快捷键说明

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