📄 pcm.h
字号:
#define esIndm 0x00000010
#define esInds 4
#define revLev 0x00000060,5 /* revision level */
#define revLevm 0x00000060
#define revLevs 5
/*
* byte2 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |- |ps |ss |sm |reserved |frq |
* -------------------------------------------------------
*/
#define freqCap 0x00000001,0 /* frequency capability */
#define freqCapm 0x00000001
#define freqCaps 0
#define smCap 0x00000008,3 /* SM capability */
#define smCapm 0x00000008
#define smCaps 3
#define ssScrInd 0x00000030,4 /* SS Screen Indicator */
#define ssScrIndm 0x00000030
#define ssScrInds 4
#define psCap 0x00000040,6 /* PS capability */
#define psCapm 0x00000040
#define psCaps 6
/*
* byte3 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |CM3 |reserved |A5/3 |A5/2 |
* -------------------------------------------------------
*/
#define a52 0x00000001,0 /* encryption algorithm A5/2 */
#define a52m 0x00000001
#define a52s 0
#define a53 0x00000002,1 /* encryption algorithm A5/3 */
#define a53m 0x00000002
#define a53s 1
#define cm3 0x000000f8,7 /* CM3 */
#define cm3m 0x000000f8
#define cm3s 7
/********************************************************************
*
* Field MOBILE STATION CLASSMARK 3 - CLASS3
*
********************************************************************/
typedef struct pcm_EFclass3_Type
{
UBYTE byte1; /* class3 byte 1 */
UBYTE byte2; /* class3 byte 2 */
UBYTE byte3; /* class3 byte 3 */
} EF_CLASS3;
#define SIZE_EF_CLASS3 3
#define NR_EF_CLASS3 1
/*
* byte1 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |- |bnd3 |bnd2 |bnd1 |a5/7 |a5/6 |a5/5 |a5/4 |
* -------------------------------------------------------
*/
#define a54 0x00000001,0 /* encryption algorithm A5/4 */
#define a54m 0x00000001
#define a54s 0
#define a55 0x00000002,1 /* encryption algorithm A5/5 */
#define a55m 0x00000002
#define a55s 1
#define a56 0x00000004,2 /* encryption algorithm A5/6 */
#define a56m 0x00000004
#define a56s 2
#define a57 0x00000008,3 /* encryption algorithm A5/7 */
#define a57m 0x00000008
#define a57s 3
#define bnd1 0x00000010,4 /* Band 1 */
#define bnd1m 0x00000010
#define bnd1s 4
#define bnd2 0x00000020,5 /* Band 2 */
#define bnd2m 0x00000020
#define bnd2s 5
#define bnd3 0x00000040,6 /* Band 3 */
#define bnd3m 0x00000040
#define bnd3s 6
/*
* byte2 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |rfcap2 |rfcap1 |
* -------------------------------------------------------
*/
#define rfCap1 0x0000000f,0 /* associated RF capability 1 */
#define rfCap1m 0x0000000f
#define rfCap1s 0
#define rfCap2 0x000000f0,4 /* associated RF capability 2 */
#define rfCap2m 0x000000f0
#define rfCap2s 4
/*
* byte3 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |0 |0 |0 |xm |0 |0 |0 |0 |
* -------------------------------------------------------
*/
/********************************************************************
*
* Field MOBILE SETUP - MSSUP
*
********************************************************************/
typedef struct pcm_EFmssup_Type
{
UBYTE lng1; /* language 1 */
UBYTE lng2; /* language 2 */
UBYTE lng3; /* language 3 */
UBYTE feat1; /* features byte 1 */
UBYTE feat2; /* features byte 2 */
} EF_MSSUP;
#define SIZE_EF_MSSUP 5
#define NR_EF_MSSUP 1
/*
* lng1 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |por |swe |spa |ita |dut |ger |fre |eng |
* -------------------------------------------------------
*/
#define eng 0x00000001,0 /* English */
#define engm 0x00000001
#define engs 0
#define fre 0x00000002,1 /* French */
#define frem 0x00000002
#define fres 1
#define ger 0x00000004,2 /* German */
#define germ 0x00000004
#define gers 2
#define dut 0x00000008,3 /* Dutch */
#define dutm 0x00000008
#define duts 3
#define ita 0x00000010,4 /* Italian */
#define itam 0x00000010
#define itas 4
#define spa 0x00000020,5 /* Spanish */
#define spam 0x00000020
#define spas 5
#define swe 0x00000040,6 /* Swedish */
#define swem 0x00000040
#define swes 6
#define por 0x00000080,7 /* Portuguese */
#define porm 0x00000080
#define pors 7
/*
* lng2 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |rus |pol |slo |hun |tur |gre |nor |fin |
* -------------------------------------------------------
*/
#define fin 0x00000001,0 /* Finnish */
#define finm 0x00000001
#define fins 0
#define nor 0x00000002,1 /* Norwegian */
#define norm 0x00000002
#define nors 1
#define gre 0x00000004,2 /* Greek */
#define grem 0x00000004
#define gres 2
#define tur 0x00000008,3 /* Turkish */
#define turm 0x00000008
#define turs 3
#define hun 0x00000010,4 /* Hungarian */
#define hunm 0x00000010
#define huns 4
#define slo 0x00000020,5 /* Slovenian */
#define slom 0x00000020
#define slos 5
#define pol 0x00000040,6 /* Polish */
#define polm 0x00000040
#define pols 6
#define rus 0x00000080,7 /* Russian */
#define rusm 0x00000080
#define russ 7
/*
* lng3 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |- |ara |tai |man |can |chi |cze |ind |
* -------------------------------------------------------
*/
#define ind 0x00000001,0 /* Indonesian */
#define indm 0x00000001
#define inds 0
#define cze 0x00000002,1 /* Czech */
#define czem 0x00000002
#define czes 1
#define chi 0x00000004,2 /* Chinese */
#define chim 0x00000004
#define chis 2
#define can 0x00000008,3 /* Cantonese */
#define canm 0x00000008
#define cans 3
#define man 0x00000010,4 /* Mandarin */
#define manm 0x00000010
#define mans 4
#define tai 0x00000020,5 /* Taiwanese */
#define taim 0x00000020
#define tais 5
#define ara 0x00000040,6 /* Arabic */
#define aram 0x00000040
#define aras 6
/*
* feat1 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |stk |irda |etc |ussd |cb |cf |dtmf |aoc |
* -------------------------------------------------------
*/
#define AoC 0x00000001,0 /* Advice of Charge */
#define AoCm 0x00000001
#define AoCs 0
#define DTMF 0x00000002,1 /* DTMF */
#define DTMFm 0x00000002
#define DTMFs 1
#define CF 0x00000004,2 /* Call Forwarding */
#define CFm 0x00000004
#define CFs 2
#define CB 0x00000008,3 /* Call Barring */
#define CBm 0x00000008
#define CBs 3
#define USSD 0x00000010,4 /* USSD */
#define USSDm 0x00000010
#define USSDs 4
#define ETC 0x00000020,5 /* ETC */
#define ETCm 0x00000020
#define ETCs 5
#define IRDA 0x00000040,6 /* IRDA */
#define IRDAm 0x00000040
#define IRDAs 6
/********************************************************************
*
* Field CURRENT LANGUAGE - CLNG
*
********************************************************************/
#define SIZE_EF_CLNG_DATA 2 /* two-letter abbreviation of the language */
typedef struct pcm_EFclng_Type
{
UBYTE data[SIZE_EF_CLNG_DATA]; /* abbreviation of the language */
} EF_CLNG;
#define SIZE_EF_CLNG (SIZE_EF_CLNG_DATA)
#define NR_EF_CLNG 1
/********************************************************************
*
* Field MOBILE STATION SETTTINGS - MSSET
*
********************************************************************/
typedef struct pcm_EFmsset_Type
{
UBYTE buzzer1; /* buzzer byte 1 */
UBYTE buzzer2; /* buzzer byte 2 */
UBYTE buzzer3; /* buzzer byte 3 */
UBYTE audio; /* audio */
UBYTE misc; /* miscellaneous */
UBYTE display; /* display */
UBYTE language; /* language */
UBYTE recent_ldn_ref; /* recent ldn reference */
UBYTE recent_lrn_ref; /* recent lrn reference */
UBYTE recent_upn_ref; /* recent upn reference */
} EF_MSSET;
#define SIZE_EF_MSSET 10
#define NR_EF_MSSET 1
/*
* buzzer1 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |vib |callvol |calltype |
* -------------------------------------------------------
*/
#define calltype 0x00000007,0 /* ringer type incoming calls */
#define calltypem 0x00000007
#define calltypes 0
#define callvol 0x00000038,3 /* ringer volume incoming calls */
#define callvolm 0x00000038
#define callvols 3
#define vib 0x000000c0,6 /* vibrator */
#define vibm 0x000000c0
#define vibs 6
/*
* buzzer2 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |reserved |msgvol |msgtype |
* -------------------------------------------------------
*/
#define msgtype 0x00000007,0 /* ringer type messages */
#define msgtypem 0x00000007
#define msgtypes 0
#define msgvol 0x00000038,3 /* ringer volume messages */
#define msgvolm 0x00000038
#define msgvols 3
/*
* buzzer3 bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |reserved |batw |keytone |
* -------------------------------------------------------
*/
#define keytone 0x00000003,0 /* key tone mode */
#define keytonem 0x00000003
#define keytones 0
#define batw 0x00000004,2 /* low battery warning */
#define batwm 0x00000004
#define batws 2
/*
* audio bits
* _________________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |--------|------|------|------|------|------|------|------|
* |VoiceRec|Ext |Outvol |lnamp |
* ---------------------------------------------------------
*/
#define lnamp 0x00000007,0 /* microphone amplification */
#define lnampm 0x00000007
#define lnamps 0
#define outvol 0x00000038,3 /* output volume */
#define outvolm 0x00000038
#define outvols 3
#define ext 0x00000040,6 /* external audio */
#define extm 0x00000040
#define exts 6
#define voicerec 0x00000080,7 /* voice recording */
#define voicerecm 0x00000080
#define voicerecs 7
/*
* miscellaneous bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* | | |redial |calinf|clip |clir |pmod |
* -------------------------------------------------------
*/
#define pmod 0x00000001,0 /* PLMN selection mode */
#define pmodm 0x00000001
#define pmods 0
#define clir 0x00000002,1 /* CLIR */
#define clirm 0x00000002
#define clirs 1
#define clip 0x00000004,2 /* CLIP */
#define clipm 0x00000004
#define clips 2
#define calinf 0x00000008,3 /* call information display */
#define calinfm 0x00000008
#define calinfs 3
#define redial 0x00000030,4 /* redial mode */
#define redialm 0x00000030
#define redials 4
/*
* display bits
* _______________________________________________________
* |8 |7 |6 |5 |4 |3 |2 |1 |
* |------|------|------|------|------|------|------|------|
* |bckdr |brgt |ctrt |
* -------------------------------------------------------
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -