📄 phs_def.h
字号:
#ifndef _PHS_DEF_H_
#define _PHS_DEF_H_
#define MSB_S 6
#define MSGDAT_SZ 224
#define MSGBUF_SZ (MSB_S + MSGDAT_SZ)
typedef unsigned char U1;
typedef char I1;
typedef unsigned short U2;
typedef short I2;
typedef unsigned long U4;
typedef signed long I4;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long LONG;
#define EX extern
#define ST static
#define TRUE 1
#define FALSE 0
#define ON 1
#define OFF 0
#define LOOP 1
#define OK 0
#define NG 1
#define NG_FF 0xFF
#define DUMMY (U2)0x00
#define SET 1
#define CLEAR 0
#define ZERO 0x00
#define ZERO_WORD (U2)0x00
#define TIMEOVER (U2)0x00
#define RESTART (U2)0x00
#define BIT1 0x01
#define BIT2 0x02
#define BIT3 0x04
#define BIT4 0x08
#define BIT5 0x10
#define BIT6 0x20
#define BIT7 0x40
#define BIT8 0x80
#define NSTOP_DATA2 (WORD)0x0800
#define NSTOP_TIM10 (WORD)0x0400
#define NSTOP_DATA (WORD)0x0200
#define NSTOP_TIM1S (WORD)0x0100
#define NSTOP_TIM100 (WORD)0x0080
#define NSTOP_TIM20 (WORD)0x0040
#define NSTOP_TASK (WORD)0x0020
#define NSTOP_L1 (WORD)0x0002
#define NSTOP_MG (WORD)0x0001
#define T20MS 0
#define T100MS 1
#define T1S 2
#define T10MS 3
#define TIMER_HI_10US 3
#define TIMER_HI_20US 6
#define TIMER_HI_100US 30
#define TIMER_HI_200US 60
#define TIMER_HI_500US 150
#define TIMER_HI_1MS 303
#define TIMER_HI_10MS 3030
#define TIMER_HI_100MS 30303
#define TIMER_LOW_500MS 128
#define TIMER_LOW_700MS 179
#define TIMER_LOW_1S 256
#define TIMER_LOW_500S 64000
#define TIMER_LOW_60S 15360
#define TIMER_LOW_30S 7680
#define TIMER_LOW_15S 3840
#define TASKL1 1
#define TASKL2 2
#define TASKL3 3
#define TASKCC 3
#define TASKMM 3
#define TASKRT 3
#define TASKMNG 4
#define TASKPM 5
#define TASKMMI 6
#define Sys_prinfo Sys_bcch[0][0]
#define Sys_hrinfo Sys_bcch[0][1]
#define Sys_psinfo Sys_bcch[1][0]
#define Sys_hsinfo Sys_bcch[1][1]
#define Sys_p2sinfo Sys_bcch[2][0]
#define Sys_h2sinfo Sys_bcch[2][1]
#define Sys_p3sinfo Sys_bcch[3][0]
#define Sys_opinfo Sys_bcch[3][1]
#define SYS_PARTNER Sys_ccsinf[0]
#define SYS_FREQ (U1)(Sys_ccsinf[3]-1)
#define SYS_HO_RSSI Sys_ccsinf[15]
#define SYS_SLT_NUM Sys_ccsinf[2]
#define SYS_CAR_NUM Sys_ccsinf[4]
#define SYS_CSID_P &Sys_ccsinf[5]
#define SYS_AREA_P &Sys_ccsinf[12]
#define SYS_SLT2_NUM Sys_ccsinf[21]
#define SYS_CAR2_NUM Sys_ccsinf[22]
#define DDI_PBS 1
#define RCR_PBS 2
#define NRM_HBS 3
#define PSDIRCAL 4
#define DDI_REP 5
#define JIG_SYS 6
#define SD_HBS 7
#define HOM_BS 0
#define VST_BS 1
#define SLOT1 0
#define SLOT2 1
#define SLOT3 2
#define SLOT4 3
#define SFACCH 0
#define SACCH 1
#define FACCH 2
#define SCCH 3
#define BCCHB 9
#define TCH1 0
#define TCH2 1
#define SACCH_ST 0
#define FACCH_ST 1
#define ST_OPN 0
#define ST_SET_WT 1
#define ST_SET 2
#define ST_FRE_WT 3
/* BCCH */
#define RCHINFO 0x09
#define SYSINFO 0x0A
#define SY2INFO 0x0B
#define SY3INFO 0x0F
#define OPSINFO 0x0F
/* SCCH */
#define LCHRQ 0x01
#define LCHRRQ 0x02
#define DILCHRQ 0x41
#define DILCHRRQ 0x42
#define ALLCHRQ 0x51
#define ALLCHRRQ 0x52
#define LCHRS 0x01
#define LCHRJ 0x02
#define DILCHRS 0x41
#define EVT_IMSK 0xE0
#define EVT_CMSK 0x1F
#define L1_NULL 0
#define L1_SACCH 1
#define L1_FACCH 2
#define L1_SCCH 3
#define L1_PCH 4
#define L1_BCCHA 5
#define L1_BCCHB 6
#define EVT_L1 (U2)0x20
#define EPHDTDSP (U2)0x28
#define EPHINDSP (U2)0x29
#define ESYN (U2)0x2B
#define EDWSYN (U2)0x2C
#define ETXOFF (U2)0x2D
#define EUFRQ (U2)0x2E
#define EL1_INIT (U2)0x32
#define ECCH_MON (U2)0x33
#define EL1_STAT (U2)0x34
#define EVOLT_GET (U2)0x35
#define EBAT_STAT (U2)0x36
#define ETONE_END (U2)0x37
#define EKOKI_MON (U2)0x38
#define EKOKI_SYNC (U2)0x39
#define E_RSSI_FER (U2)0x3A
#define E_SHO_CCH_MON (U2)0x3B
#define EKOKI_GRP_DSP (U2)0x3C
#define L3_MSGDMY 5
#define L3_MSGSZ MSGDAT_SZ-(L3_MSGDMY+1)
#define EVT_L2 (U2)0x40
#define EDLSETRQ (U2)0x40
#define EDLFRERQ (U2)0x41
#define EDLDTRQ (U2)0x42
#define EDLUDTRQ (U2)0x43
#define EDLINITRQ (U2)0x44
#define EDLSETRS (U2)0x50
#define EDLSETDSP (U2)0x51
#define EDLFRERS (U2)0x52
#define EDLFREDSP (U2)0x53
#define EDLDTDSP (U2)0x54
#define EDLUDTDSP (U2)0x55
#define EDLDTRS (U2)0x56
#define EMDLERRDSP (U2)0x57
#define EVT_L3 (U2)0x60
#define ECC (U2)0x60
#define EMM (U2)0x61
#define ERT (U2)0x62
#define EL3SETRQ (U2)0x63
#define EL3FRERQ (U2)0x64
#define EINITL3 (U2)0x65
#define EL3SETRS (U2)0x73
#define EL3FRERS (U2)0x74
#define ERCHINFO (U2)0x75
#define ESYSINFO (U2)0x76
#define ESY2INFO (U2)0x77
#define ESY3INFO (U2)0x78
#define EOPSINFO (U2)0x78
#define EPCH (U2)0x79
#define ESCCH (U2)0x7A
#define CC_ID 0x45
#define MM_ID 0x44
#define RT_ID 0x43
#define PRCALSET (U2)0x80
#define PRCALPRC (U2)0x81
#define PRCALREC (U2)0x82
#define PRCALCON (U2)0x83
#define PRADDINF (U2)0x84
#define PRFCLTY (U2)0x85
#define PRCALDIS (U2)0x86
#define PRCALFRE (U2)0x87
#define PRCALDAL (U2)0x88
#define PRCALOPT (U2)0x89
#define PSCALSET (U2)0x00
#define PSCALREC (U2)0x01
#define PSCALCNF (U2)0x02
#define PSCALCON (U2)0x03
#define PSPRGRES (U2)0x04
#define PSCALPRC (U2)0x05
#define PSCALDIS (U2)0x06
#define PSCALFRE (U2)0x07
#define PSCALFAL (U2)0x08
#define PSFCLTY (U2)0x09
#define PSADDINF (U2)0x0A
#define PSTHRU (U2)0x0B
#define PSTXCOMP (U2)0x0C
#define PSCALOPT (U2)0x0D
#if 0
#define PRLCRGRQ (U2)0x00
#define PRMMFNFQ (U2)0x01
#define PRAUTHRS (U2)0x02
#define PRSOWRRQ (U2)0x03
#define PRSOWRST (U2)0x04
#define PSLCRGAC (U2)0x80
#define PSLCRGRJ (U2)0x81
#define PSMMFNRS (U2)0x82
#define PSAUTHRQ (U2)0x83
#define PSLCRGNG (U2)0x84
#define PSMMFNNG (U2)0x85
#define PSSOWROK (U2)0x86
#define PSSOWRNG (U2)0x87
#endif
#define MNMM_LOCATION_REGISTRATION_REQ (U2)0x80
#define MNMM_FUNCTION_REQ (U2)0x81
#define MNMM_AUTHENTICATION_REP (U2)0x82
#define MMMN_LOCATION_REGISTRATION_ACK (U2)0x00
#define MMMN_LOCATION_REGISTRATION_REJ (U2)0x01
#define MMMN_FUNCTION_RES (U2)0x02
#define MMMN_AUTHENICATION_REQ (U2)0x03
#define MMMN_LOCATION_REGISTRATION_FAIL (U2)0x04
#define MMMN_FUNCTION_REQ_FAIL (U2)0x05
#define PRLCHEST (U2)0x80
#define PRINCRES (U2)0x81
#define PRRTFUNC (U2)0x82
#define PRDEFINF (U2)0x83
#define PRSECSET (U2)0x84
#define PRTCHCNG (U2)0x85
#define PRTCHRCN (U2)0x86
#define PRRCHDSC (U2)0x87
#define PRRTOPT (U2)0x88
#define PRCCHDT (U2)0x89
#define PRADDRQ (U2)0x8A
#define PRADDRQIR (U2)0x8B
#define PRADDRRQ (U2)0x8C
#define PRTCHOLDRQ (U2)0x8D
#define PRADDSTPRQ (U2)0x8E
#define PRSEAMLESS (U2)0x91
#define SEAMLINKSTOP (U2)0x92
#define PSLCHASG (U2)0x00
#define PSLCHREF (U2)0x01
#define PSSYNC (U2)0x02
#define PSLCHNG (U2)0x03
#define PSDWBRMV (U2)0x04
#define PSRTFUNC (U2)0x05
#define PSRTFUNG (U2)0x06
#define PSDEFINF (U2)0x07
#define PSDEFING (U2)0x08
#define PSTCHASS (U2)0x09
#define PSTCHARE (U2)0x0A
#define PSTCHAPH (U2)0x0B
#define PSTCHACA (U2)0x0C
#define PSRCHDIS (U2)0x0D
#define PSRCHEND (U2)0x0E
#define PSVOXCTL (U2)0x0F
#define PSTXCTL (U2)0x10
#define PSSYNNG (U2)0x11
#define PSRTOPT (U2)0x12
#define PSRTSNDCMP (U2)0x13
#define PSZONINF (U2)0x14
#define DOWN_BST (U2)0x15
#define PSADDAS (U2)0x16
#define PSADDASR (U2)0x17
#define PSADDRQI (U2)0x18
#define PSADDNG (U2)0x19
#define PSMNGMUTE (U2)0x19
/////////// PM-MN primitive definition begin /////////////
//#define UCCHEST 0x01
#define PMMN_CCH_EST 0x01
//#define UCCHFREE 0x03
#define PMMN_CCH_FREE 0x03
#define UCCHDATA 0x05
//#define UINCRES 0x10
#define PMMN_INCALL_REP 0x10
//#define UCOMMSET 0x11
#define PMMN_COMM_SET 0x11
#define UCOMMREC 0x12
#define UCOMMREJ 0x13
//#define UALERT 0x14
#define PMMN_ALERT 0x14
//#define UCOMMRES 0x16
#define PMMN_COMM_REP 0x16
//#define UFASILIT 0x17
#define PMMN_FACILITY 0x17
//#define UCOMMDIS 0x19
#define PMMN_COMM_DIS 0x19
//#define UCOMMFRE 0x1A
#define PMMN_COMM_FREE 0x1A
//#define URADFRE 0x1C
#define PMMN_RADIO_FREE 0x1C
//#define ULOCATE 0x21
#define PMMN_LOC_REG 0x21
#define USORDER 0x22
#define ULOCINF 0x23
#define UTCH2CNG 0x26
//#define UDIALOUT 0x30
#define PMMN_DIAL_OUT 0x30
#define UDDISVS 0x31
//#define UTCHDATA 0x32
#define PMMN_TCH_DATA 0x32
#define URTOPMES 0x34
#define UCCOPMES 0x35
//#define UTCHSTAT 0x3A
#define PMMN_TCH_SWT 0x3A
#define UCCOMSET 0x40
#define UCCOMRES 0x42
#define UCCOMDIS 0x43
#define UCCOMWAI 0x44
#define UCCOMRFR 0x45
#define UCCOMDAT 0x46
#define UCCOMREG 0x47
#define UCCOMSTP 0x48
#define UCCOMRWA 0x49
#define UCCOMRST 0x4a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -