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

📄 hee.hec

📁 这是用Labwindows开发的一个RF test程序。 用于日本机种的组装后ANT 测试。
💻 HEC
📖 第 1 页 / 共 2 页
字号:
/*********************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/*********************************************************************************/
/*F(******************************************************************************* 
 * File name : hee.hec                                                            *    
 * Project   : X38                                                                *
 * Module    : EEPROM                                                             *
 * Date      : %G% %U%                                                            *
 * Version   : %I%                                                                *  
 * Compiler name and release(s) :                                                 *
 *--------------------------------------------------------------------------------* 
 *--------------------------------------------------------------------------------* 
 *                                 DESCRIPTION                                    *
 *                                                                                *
 * 		External constants definition include file                        *
 *                                                                                *
 *--------------------------------------------------------------------------------* 
 *--------------------------------------------------------------------------------* 
 *                                    EVOLUTION                                   *  
 *--------------------------------------------------------------------------------* 
 * Date     | Author    | Arnb   | Description                                    *
 *--------------------------------------------------------------------------------* 
 * 25.09.98 | E.GRANDIN |        | Creation                                       *
 *--------------------------------------------------------------------------------*
 * 28.06.02 | C. Palese|         |Change in the numbers of eeprom sections for    *
 *                             PR 627 (GSM_Only) with 'GPRS_FTR' comp. switch.    *
 *--------------------------------------------------------------------------------*
 * 06.11.02 | C. Palese | PR1141: costants introduced for codec priority setting  *
 *--------------------------------------------------------------------------------*
 * 15.11.02 | M. Sapienza | Add a new bit field in EEPROM (parent PR NBGSYS2#1151)*
 ***************************************************************************)F*/
/* #*/

#ifndef HEE_HEC
#define HEE_HEC

/* number of EEPROM sections for the SySol */
/*tcmc_msp" changes for PR1383*/
#ifndef GPRS_FTR
#if !defined(WAP_FTR) && !defined(TELECA_MS20_WAP_FTR)
#define HEE_NB_SECTION			22
#else /*!defined(WAP_FTR) && !defined(TELECA_MS20_WAP_FTR)*/
#define HEE_NB_SECTION			24
#endif /*!defined(WAP_FTR) && !defined(TELECA_MS20_WAP_FTR)*/
/*tcmc_msp: end of changes*/
#else
#define HEE_NB_SECTION			26
#endif

/* Number max of EEPROM sections */
#define HEE_NB_MAX_SECTION	HEE_NB_SECTION


/* number of logic EEPROM sections for SySol(for TAT) */
#define HEE_MAX_NB_LOGIC_SECTION	HEE_NB_SECTION

/* size in bytes of the checksum field of a section */
#define HEE_CHECKSUM_SIZE		1

/* size in bytes of the signature field of a section */
#define HEE_SIGNATURE_SIZE		4

/* size in bytes of the version field of a section */
#define HEE_VERSION_SIZE		1

#define HEE_HEADER_GAP_SIZE		2

/* Signature definition for all files .ho */
#define HEE_EEPROM_SIGNATURE 0x31323334

/* Checksum definition for all files .ho with one default section */
/* This checksun is just for to complete the default structure in Flash */
#define HEE_EEPROM_CHECKSUM  0x00

/* size in bytes of the header of a section */
#define HEE_SECTION_HEADER_SIZE		(HEE_CHECKSUM_SIZE   + \
					 HEE_VERSION_SIZE    + \
					 HEE_HEADER_GAP_SIZE + \
					 HEE_SIGNATURE_SIZE) 

/* the size is 16k (0x4000) */
#define EEPROM_ADRESS_MAX		0x3FFF

/* EEPROM shared constants */

/* section number */
#define HEEADDR				0x01
#define HEEIMEI		 		0x02
#define HEERADIO		 	0x03
#define HEEBAT			 	0x04
#define HEEAUDIO 	 		0x05   
#define HEEOandM		 	0x06
#define HEESAV				0x07
#define HEESETUP	 	 	0x08
#define HEESIM  	        	0x09
#define HEEHOTKEY          		0x0A
#define HEEMELODY			0x0B
#define HEESPEECH			0x0C    
#define HEECALLLIST	 		0x0D
#define HEETRACE		 	0x0E   
#define HEEDEBUG		 	0x0F
#define HEESETTING		 	0x10
#define HEEKBD				0x11
#define HEEDATA                         0x12
#define HEEPATTERN			0x13
/*tcmc_msp: changes for PR1383*/
#ifdef GPRS_FTR
#define HEEWAPDATA                      0x14
#define HEEWAPENCRYPTEDDATA             0x15
#define HEEGPRSAPPLI                    0x16
#define HEEGPRSSTACK                    0x17
#define HEEPROD                         0x18
#define HEERR                           0x19
#define HEEVIRGIN                       0x1A
#else /*GPRS_FTR*/
#if defined(WAP_FTR) || defined(TELECA_MS20_WAP_FTR)
#define HEEWAPDATA                      0x14
#define HEEWAPENCRYPTEDDATA             0x15
#define HEEGPRSAPPLI                    0x19
#define HEEGPRSSTACK                    0x1A
#define HEEPROD                         0x16
#define HEERR                           0x17
#define HEEVIRGIN                       0x18
#else /*defined(WAP_FTR) || defined(TELECA_MS20_WAP_FTR)*/
#define HEEWAPDATA                      0x17
#define HEEWAPENCRYPTEDDATA             0x18
#define HEEGPRSAPPLI                    0x19
#define HEEGPRSSTACK                    0x1A
#define HEEPROD                         0x14
#define HEERR                           0x15
#define HEEVIRGIN                       0x16
#endif /*defined(WAP_FTR) || defined(TELECA_MS20_WAP_FTR)*/
#endif /*GPRS_FTR*/
/*tcmc_msp: end of changes*/

/* bitfield values to specify a section */
#define INIT_HEEADDR			(u32)(1 << (HEEADDR-1))	                /*b00000000000000000000000001*/
#define INIT_HEEIMEI	 	 	(u32)(1 << (HEEIMEI-1))		        /*b00000000000000000000000010*/
#define INIT_HEERADIO			(u32)(1 << (HEERADIO-1)) 		/*b00000000000000000000000100*/
#define INIT_HEEBAT		 	(u32)(1 << (HEEBAT-1)) 			/*b00000000000000000000001000*/
#define INIT_HEEAUDIO			(u32)(1 << (HEEAUDIO-1)) 		/*b00000000000000000000010000*/
#define INIT_HEEOandM			(u32)(1 << (HEEOandM-1)) 		/*b00000000000000000000100000*/
#define INIT_HEESAV 	 		(u32)(1 << (HEESAV-1)) 			/*b00000000000000000001000000*/
#define INIT_HEESETUP			(u32)(1 << (HEESETUP-1)) 		/*b00000000000000000010000000*/
#define INIT_HEESIM			(u32)(1 << (HEESIM-1)) 			/*b00000000000000000100000000*/
#define INIT_HEEHOTKEY			(u32)(1 << (HEEHOTKEY-1)) 		/*b00000000000000001000000000*/
#define INIT_HEEMEL             	(u32)(1 << (HEEMELODY-1)) 		/*b00000000000000010000000000*/
#define INIT_HEESPEECH			(u32)(1 << (HEESPEECH-1)) 		/*b00000000000000100000000000*/
#define INIT_HEECALL     		(u32)(1 << (HEECALLLIST-1)) 		/*b00000000000001000000000000*/
#define INIT_HEETRACE	 		(u32)(1 << (HEETRACE-1)) 		/*b00000000000010000000000000*/
#define INIT_HEEDEBUG			(u32)(1 << (HEEDEBUG-1)) 		/*b00000000000100000000000000*/
#define INIT_HEESETTING			(u32)(1 << (HEESETTING-1)) 		/*b00000000001000000000000000*/
#define INIT_HEEKBD		 	(u32)(1 << (HEEKBD-1)) 			/*b00000000010000000000000000*/
#define INIT_HEEDATA                    (u32)(1 << (HEEDATA-1)) 		/*b00000001000000000000000000*/
#define INIT_HEEPATTERN			(u32)(1 << (HEEPATTERN-1)) 		/*b00000010000000000000000000*/
#define INIT_HEEWAPDATA			(u32)(1 << (HEEWAPDATA-1)) 		/*b00000100000000000000000000*/
#define INIT_HEEWAPENCRYPTEDDATA	(u32)(1 << (HEEWAPENCRYPTEDDATA-1))     /*b00001000000000000000000000*/
#define INIT_HEEGPRSAPPLI               (u32)(1 << (HEEGPRSAPPLI-1))            /*b00010000000000000000000000*/
#define INIT_HEEGPRSSTACK               (u32)(1 << (HEEGPRSSTACK-1))            /*b00100000000000000000000000*/              
#define INIT_HEEPROD			(u32)(1 << (HEEPROD-1))                 /*b01000000000000000000000000*/
#define INIT_HEERR			(u32)(1 << (HEERR-1))                   /*b10000000000000000000000000*/
#define INIT_HEEVIRGIN			(u32)(1 << (HEEVIRGIN-1))              /*b100000000000000000000000000*/

/* values used by ENV to initialize sections */
#define PRM_BIT_FIELD_ADDRESS_SECTION	          INIT_HEEADDR
#define PRM_BIT_FIELD_ADDRESS_IMEI	          INIT_HEEIMEI
#define PRM_BIT_FIELD_ADDRESS_RADIO	          INIT_HEERADIO
#define PRM_BIT_FIELD_ADDRESS_BAT	          INIT_HEEBAT
#define PRM_BIT_FIELD_ADDRESS_AUDIO	          INIT_HEEAUDIO
#define PRM_BIT_FIELD_ADDRESS_OandM	          INIT_HEEOandM
#define PRM_BIT_FIELD_ADDRESS_SAV	          INIT_HEESAV
#define PRM_BIT_FIELD_ADDRESS_SETUP	          INIT_HEESETUP
#define PRM_BIT_FIELD_ADDRESS_SIM	          INIT_HEESIM
#define PRM_BIT_FIELD_ADDRESS_HOTKEY	          INIT_HEEHOTKEY
#define PRM_BIT_FIELD_ADDRESS_MEL	          INIT_HEEMEL
#define PRM_BIT_FIELD_ADDRESS_SPEECH	          INIT_HEESPEECH
#define PRM_BIT_FIELD_ADDRESS_CALL	          INIT_HEECALL
#define PRM_BIT_FIELD_ADDRESS_TRACE	          INIT_HEETRACE
#define PRM_BIT_FIELD_ADDRESS_DEBUG	          INIT_HEEDEBUG
#define PRM_BIT_FIELD_ADDRESS_SETTINGS	          INIT_HEESETTING
#define PRM_BIT_FIELD_ADDRESS_KEYBOARD	          INIT_HEEKBD
#define PRM_BIT_FIELD_ADDRESS_DATA	          INIT_HEEDATA
#define PRM_BIT_FIELD_ADDRESS_PATTERN	          INIT_HEEPATTERN
#define PRM_BIT_FIELD_ADDRESS_WAPDATA	          INIT_HEEWAPDATA
#define PRM_BIT_FIELD_ADDRESS_WAPENCRYPTEDDATA    INIT_HEEWAPENCRYPTEDDATA
#define PRM_BIT_FIELD_ADDRESS_GPRSAPPLI           INIT_HEEGPRSAPPLI
#define PRM_BIT_FIELD_ADDRESS_GPRSSTACK           INIT_HEEGPRSSTACK
#define PRM_BIT_FIELD_ADDRESS_PROD                INIT_HEEPROD
#define PRM_BIT_FIELD_ADDRESS_RR                  INIT_HEERR
#define PRM_BIT_FIELD_ADDRESS_VIRGIN              INIT_HEEVIRGIN

/* address EEPROM 1010xxxx */
#define ADEEPROM			0xA0

/* signature checksum value */
#define HEE_CS_SIGNATURE		0xCA

⌨️ 快捷键说明

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