📄 simu_define.h
字号:
/************************************************************/
/** */
/** Copyright (c) 2003, UTStarcom, Inc. */
/** All Rights Reserved. */
/** */
/** Subsystem: Protocol simulator */
/** File: semu_define.h */
/** Created By: Chen wei */
/** Created On: 23/12/2003 */
/** Purpose: Protocol simulator define header file */
/************************************************************/
/*--------------------TASK ID-------------------------------*/
#define SIMTSKL1 0x71 //L1
#define SIMTSKL2 0x72 //L2
#define SIMTSKL3 0x73 //L3
#define SIMTSKRT 0x74 //RT
#define SIMTSKMM 0x75 //MM
#define SIMTSKCC 0x76 //CC
#define SIMTSKMN 0x77 //MN
#define SIMTSKPM 0x78 //PM
#define SIMTSKDTR 0x79 //READ DATA
#define SIMTSKDTW 0x7A //WRITE DATA
#define SIMTSKRR 0x7B //RESPONSE
#define SIMTSKUP 0x7C //L1 Send to high layer
#define SIMTSKSETTM 0x7D //L1 Set Timer
#define SIMTSKSTPTM 0x7E //L1 Stop Timer
/**-------------------Functions----------------------------- **/
/*PM-->L1 */
#define VLOTREQ 0x01 //extern void volt_req(void); //not used
#define TEMPREQ 0x02 //extern void temp_req(void); //not used
#define ADPCMREQ 0x03 //extern void adpcm_req(U1,U1,U1);
#define MUTEREQ 0x04 //extern void mute_req(U1,U1);
#define RXLVREQ 0x05 //extern void rxlv_req(U1);
#define TONEREQ 0x06 //extern void tone_req(U1,U1,U1);
#define SPKREQ 0x07 //extern void spk_req(U1); //not used
#define TXOREQ 0x08 //extern void txo_req(U1); //not used
#define HOOFF 0x09 //extern void handover_off(U1);
#define HISTORY 0x0A //extern void history(U1 *, U1, U1);
#define CLKGTSET 0x0B //extern void ClockGateSet(U1,U1);
/*MN-->L1 */
#define PHINIREQ 0x10 //void ph_ini_req(void);
#define CCHMREQ 0x11 //void cch_m_req(BYTE,BYTE,BYTE,BYTE,BYTE);
#define CCHMREQ2 0x12//void cch_m_req2(BYTE,BYTE,BYTE,BYTE,BYTE);
#define CCHMSTP 0x13 //void cch_m_stp(void);
#define CCHMSTP2 0x14 //void cch_m_stp2(void);
#define SLPTREQ 0x15 //void slp_t_req(U2, U1);
#define SLPCREQ 0x16 //void slp_c_req(BYTE);
#define OWNPCH 0x17 //void own_pch_req(BYTE);
#define ANOTHERCCH 0x18 //void another_cch_get(void);
#define RFINIT 0x19 //void RfInit(void);
#define INITADPCM 0x1A
/*RT-->L1 */
#define CCHESTREQ 0x20 //extern void cch_est_req(U1, U1 *, U1);
#define TCHESTREQ 0x21 //extern void tch_est_req(U1, U1, U1);
#define CSIDSETREQ 0x22 //extern void csid_set_req(U1 *);
#define FREQREQ 0x23 //extern void freq_req(U1, U1); //RT not used
#define RSSIREQ 0x24 //extern void rssi_req(U1, U1, U1);
#define TXSTP 0x25 //extern void txstp_req(U1);
#define ENCREQ 0x26 //extern void enc_req(void);
/*L2-->L1 */
#define PHDTREQ 0x30 //extern void ph_dt_req(U1, U1, U1);
/*Addtional Functions */
#define SLPTREQ2 0x51 //void slp_t_req2(U2, U1);
#define TM3STP 0x52 //timer3_stop
#define TM3RESTRT 0x53 //timer3_restart
/*-->L2 **/
#define L2MAIN 0x60 //timer3_restart
/**-------------------Globe variables----------------------------- **/
/*PM&L1 shared globe variables */
#define TRSSI 0x01 //extern BYTE t_rssi;
#define TFER 0x02 //extern BYTE t_fer;
#define HFFLG 0x03 //extern U1 HF_Flg;
#define L1SLOPE 0x04 //extern U1 l1_slope;
#define L1OFS 0x05 //extern U1 l1_ofs;
#define TBATT 0x06 //extern U1 t_batt;
#define TCHCHG 0x07 //EX BYTE tch_chng;
/*MN&L1 shared globe variables */
#define WPUBMON 0x08 //U1 WPubMon;
#define MNSTATE 0x09 //MN_STATE mn_state;
//U1 l1_slope;
//U1 l1_ofs;
#define CLIST 0x0A //CCH_MON_LIST Clist;
#define CCHMCNT 0x0B //WORD CchMonCount;
#define SYSINIT 0x0C //BYTE Sys_initdl1[44];
#define SYSPSID 0x0D //U1 Sys_psid[4];
#define SYSCARTRSH 0x0E //BYTE Sys_cartrsh[2];
#define SYSTHRESH 0x0F //BYTE Sys_thresh[];
#define SYSHODAT 0x10 //BYTE Sys_hodat[8];
#define SYSBCCH 0x11 //BYTE Sys_bcch[4][2][8];
#define SYSCCSINF 0x12 //BYTE Sys_ccsinf[23];
#define PCRSSI 0x13 //U1 pc_rssi;
//U1 t_rssi;
#define NSTP 0x14 //U1 non_stop;
/*RT&L1 shared globe variables */
//extern U2 CchMonCount;
//extern CCH_MON_LIST CList;
#define RANDNUM 0x15 //extern U1 rand_num; // included in l3 file
#define RXCAC 0x16 //extern U1 rx_cac[]; // included in l3_ext.h file
#define TXCAC 0x17 //extern U1 tx_cac[]; // included in l3_ext.h file
#define ENCSET 0x18 //extern U1 enc_set[]; // included in l3_ext.h file
/*L2&L1 shared globe variables */
#define L1RXFLG 0x19 //extern U1 l1rx_flg[];
#define TXSAC 0x1A //extern U1 tx_sac[];
#define TXFAC 0x1B //extern U1 tx_fac[];
#define RXSAC 0x1C //extern U1 rx_sac[];
#define RXFAC 0x1D //extern U1 rx_fac[];
//extern U1 Sys_ccsinf[];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -