?? type.h
字號(hào):
//*******************************************************************
// Copyright 2002 SHENZHEN UNIVERSITY EDA CENTER
//*******************************************************************
// File Name : type.h
// Abstract : define type header file
// Modifications :
// Model 1.0
// Rev. Date Coded by
// 0.1.2 02-11-25 K.H.Li B.Z.Deng frist release
//*******************************************************************
#ifndef __TYPE_H__
#define __TYPE_H__
/***********************************************************************/
/*
* Misc. Defines
*/
#define FALSE (0)
#define TRUE (1)
#define NULL (0)
/***********************************************************************/
/*
* The basic data types
*/
typedef unsigned char uint8; /* 8 bits */
typedef unsigned short int uint16; /* 16 bits */
typedef unsigned long int uint32; /* 32 bits */
//typedef signed char int8; /* 8 bits */
//typedef signed short int int16; /* 16 bits */
//typedef signed long int int32; /* 32 bits */
//*******************************************************************
// structure and union definitions
//*******************************************************************
// Identify data without the Reserved4.
typedef struct
{
uint16 GeneralConfiguration; //0
uint16 NumberOfCylinders; //1
uint16 Reserved1; //2
uint16 NumberOfHeads; //3
uint16 UnformattedBytesPerTrack; //4
uint16 UnformattedBytesPerSector; //5
uint16 SectorsPerTrack; //6
uint16 VendorUnique1[3]; //7-9
uint16 SerialNumber[10]; //10-19
uint16 BufferType; //20
uint16 BufferSectorSize; //21
uint16 NumberOfEccBytes; //22
uint16 FirmwareRevision[4]; //23-26
uint16 ModelNumber[20]; //27-46
uint16 MaximumBlockTransfer; //47
uint16 DoubleWordIo; //48
uint16 Capabilities; //49
uint16 Reserved2; //50
uint16 PioCycleTimingMode; //51
uint16 DmaCycleTimingMode; //52
uint16 TranslationFieldsValid; //53
uint16 NumberOfCurrentCylinders; //54
uint16 NumberOfCurrentHeads; //55
uint16 CurrentSectorsPerTrack; //56
uint32 CurrentSectorCapacity; //57-58
uint16 CurrentMultiSectorSetting; //59
uint32 NumberofUserAddrSectors; //60-61
} IDENTIFY_DATA;
typedef union
{
uint8 b[512];
uint16 w[256];
} IDE_BUFFER;
#endif /* __TYPE_H__ */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -