📄 acc_appi.hec
字号:
#include "spvdoc.hem"
DOC_REMOVE_BEGIN
/*F(***************************************************************************
* (C) Philips Electronics N.V. Philips Semiconductors - Le Mans
*-----------------------------------------------------------------------------
* File name : acc_appi.hec
* Module : interface appi between access and MMI
*----------------------------------------------------------------------------*
* EVOLUTION
*----------------------------------------------------------------------------*
* Date | Author | version| Description
*----------------------------------------------------------------------------*
* 01.04.97 | SAUVAIRE | | Creation
*----------------------------------------------------------------------------*
* 05.04.00 | H. AUTIER |CRQ37113| Addition of a new Sim card for After Sale
* | Service.
*----------------------------------------------------------------------------*
* 16.08.00 | B.DELPHIN | | Add STK Interface
*----------------------------------------------------------------------------*
* 07.09.00 | X. ORDOQUY | | Renamed ACC_SIM_XX causes in APPI_ACC_SIM_XX
*----------------------------------------------------------------------------*
* 18.10.00 | H. Autier | | Add APPI_CTRL_BY_SIM_XXX declaration
*----------------------------------------------------------------------------*
* 16.01.01 | J. RAULT | | Add APPI_ACC_DEACTIVATE_CARD_XXX declaration
*----------------------------------------------------------------------------*
* 06.02.01 | H. Autier |CR50849 | Add a new startup condition: ACC_AUTOTEST_LIGHT
*----------------------------------------------------------------------------*
* 01.03.01 | J. RAULT | | Rework after review :
* | | | - remove STK_LEVEL_FTR > 5
* | | | - remove SIM_TOOLKIT
*----------------------------------------------------------------------------*
* 12.03.01 | N. Chesnel | | modifications for GPRS attachement
*----------------------------------------------------------------------------*
* 12.11.01 |JY. Qu閘ennec|ACCESSI | general update for .isd generation
* 04 dec01 | T. Vaulay | -1.8 | corrections & improvement
*----------------------------------------------------------------------------*
* 24 jan02 | T. Vaulay | 1.9 | update simplification + SPVDOC-1.3 use
* 29 mar02 | add cst from ACCESSI-1.7.KBDAUTOTEST
*----------------------------------------------------------------------------*
* 06 sep02 | T. Vaulay | 1.11 |-LMSdv75114 "SPV:SySol1 Manual Autotest
* | doesn`t start at level 2 on SySol2"
* | merge & adapt from ACCESSI-1.10.MAT_KBD_MODE
*----------------------------------------------------------------------------*
* 24 sep02 | T. Vaulay | 1.12 |-LMSdv75114 end + remove HEN_BATTERY_TEST
***************************************************************************)F*/
DOC_REMOVE_END
#ifndef ACC_APPI_HEC
#define ACC_APPI_HEC
/* _____________________
J- VALUES DESCRIPTION
_____________________
''''''''''''''''''''''''''''''
J.1- Message Parameters values
'''''''''''''''''''''''''''''' */
/*------------------------------------------------------------------
v_Cause
-------
See [UPVI]
-------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_CauseSelect
-------------
See [UPVI]
-------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_ImeiState
-----------*/
#define ACC_IMEI_CORRUPTED 0
#define ACC_IMEI_NOT_CORRUPTED 1
/*
When set to ACC_IMEI_CORRUPTED this value may indicate that the
terminal's memory is damaged, so data stored and storing on it is
no longer reliable
-------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_InitType
----------*/
#define APPI_ACC_SIM_INIT_FULL_FILE_CHANGE 0x00
#define APPI_ACC_SIM_FILE_CHANGE 0x01
#define APPI_ACC_SIM_INIT_FILE_CHANGE 0x02
#define APPI_ACC_SIM_INIT 0x03
#define APPI_ACC_SIM_RESET 0x04
/*-------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_NumFiles
----------
0 .. 60
*/
#define ACC_APPI_MAX_REFRESH_FILES 60+1 /* (+1 needed in ACCESS) */
/*-------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_StartupCause
--------------
ACC_RECONF_NONE 0x00 : This indicates a "normal" start-up
ACC_RECONF_NORMAL_CAUSE 0x80 : A reconfiguration was required after a
"normal" start-up : normal reconfiguration
ACC_RECONF_START_ALARM 0x41 : The alarm rang. The network connection is
not activated
ACC_RECONF_ALARM 0xC1 : A reconfiguration was required after an
"alarm" start-up
ACC_RECONF_MOBILE_OFF 0x42 : Charger plugged with mobile off
ACC_RECONF_MOBILE_OFF_CAUSE 0xC2 : A reconfiguration was required after a
"charger" start-up
ACC_RECONF_AUTO_TEST 0x03 : TAT autotest mode is activated
ACC_RECONF_AUTO_TEST_CAUSE 0x83 : A reconfiguration was required after a
"TAT"
The usual startup value is "ACC_RECONF_NONE".
-------------------------------------------------------------------*/
DOC_REMOVE_BEGIN
/* The 8 bit is set if the CHV1 must be verified automatically -reconfiguration procedure- */
/* The 7 bit is set if the radio protocol must not be switched-on. */
#if defined( ACCESS_RIGHTS_ACCESS ) || defined( ACCESS_RIGHTS_APPI )
#define ACC_RECONF_NONE HEN_START_NORMAL
#define ACC_RECONF_NORMAL_CAUSE ( HEN_START_NORMAL | HEN_RECONF )
#define ACC_RECONF_START_ALARM HEN_START_ALARM
#define ACC_RECONF_ALARM ( HEN_START_ALARM | HEN_RECONF )
#define ACC_RECONF_MOBILE_OFF HEN_CHARGER_MOBILE_OFF
#define ACC_RECONF_MOBILE_OFF_CAUSE ( HEN_CHARGER_MOBILE_OFF | HEN_RECONF )
#define ACC_RECONF_AUTO_TEST HEN_TAT_AUTOTEST /* automatic test */
#define ACC_RECONF_AUTO_TEST_CAUSE ( HEN_TAT_AUTOTEST | HEN_RECONF )
#define ACC_RECONF_AUTOTEST_LIGHT HEN_AUTOTEST_LIGHT
#define ACC_RECONF_AUTOTEST_LIGHT_CAUSE ( HEN_AUTOTEST_LIGHT | HEN_RECONF )
#define ACC_RECONF_SPEECH_CAUSE HEN_RESTART_SPEECH_RECO /* applicative reconfiguration */
#define ACC_RECONF_SIM_COPY_CAUSE HEN_RESTART_SIM_COPY /* applicative reconfiguration */
#define ACC_RECONF_VOICE_MEMO_CAUSE HEN_RESTART_VOICE_MEMO /* applicative reconfiguration */
#endif /* ACCESS_RIGHTS_ACCESS || ACCESS_RIGHTS_APPI */
DOC_REMOVE_END
/*------------------------------------------------------------------
v_ServiceBlockId
----------------
See [UPVI]
-------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_SimConfig
-----------*/
/*- no smart card inserted or detected :*/
#define ACC_SIM_OUT 0xFC
/*- smart card used in production or maintenance :*/
#define ACC_SIM_AUTOTEST 0xFD
#define ACC_SIM_KBD_AUTOTEST 0xF9
/*- case 00 of EF AD values (1st byte) [11.11] 10.3.18 or
case FF (bugged cards EF AD not set at personalisation) */
#define ACC_SIM_NORMAL 0x00
/*- cases 80 & 81 of EF AD values (1st byte) [11.11] 10.3.18 */
#define ACC_SIM_TEST 0x80
/*- Special card for After Sale Service */
#define ACC_SIM_SERVICE_CARD 0xFB
DOC_REMOVE_BEGIN
/*- card/mode types (internal) */
#define ACC_AUTOTEST_MODE 0x44
#define ACC_SIM_OUT_AUTOTEST 0x11
#define ACC_SIM_CUSTOMER_MODE 0x22
#define ACC_NOT_AUTOTEST 0x33
#if defined ( AUTOTEST_LIGHT_FTR )
#define ACC_SIM_OUT_AUTOTEST_LIGHT 0xFA
#endif
/* all these values depends on : EF AD content & start-up cause */
DOC_REMOVE_END
/*other possible values (no defined literal):
0x01 - normal operation + specific facilities
0x02 - maintenance
0x04 - cell test operation
see EF AD values (1st byte) [11.11] 10.3.18
--------------------------------------------------------------------*/
/*------------------------------------------------------------------
v_Sw1, v_Sw2
------------
See [11.11] chapter 9.4
-------------------------------------------------------------------*/
DOC_REMOVE_BEGIN
/******************************************* @@
Number of secret code identifier
ACC_MAX_NUMBER_PIN = 8
*******************************************/
#define ACC_MAX_NUMBER_PIN 8
/* ----------------------------------
Operation type definition for APPI
---------------------------------- */
enum
{
ACC_F_APPI_ERROR = 0,
ACC_F_APPI_IN,
ACC_F_APPI_NEW_SIM_CARD_IN,
ACC_F_APPI_OUT,
ACC_F_APPI_PIN_STATUS,
ACC_F_APPI_SIM_CONFIG,
ACC_F_APPI_SVC_READY,
ACC_F_APPI_SWITCH_OFF,
ACC_F_APPI_REFRESH,
ACC_F_APPI_RESET,
ACC_F_APPI_CTRL_BY_SIM,
ACC_F_DEACTIVATE_CARD,
ACC_F_LAST_APPI_SUB_TYPE
};
#define ACC_F_APPI_ERROR_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_ERROR, PCC_T_IND )
#define ACC_F_APPI_IN_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_IN, PCC_T_IND )
#define ACC_F_APPI_NEW_SIM_CARD_IN_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_NEW_SIM_CARD_IN, PCC_T_IND )
#define ACC_F_APPI_OUT_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_OUT, PCC_T_IND )
#define ACC_F_APPI_PIN_STATUS_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_PIN_STATUS, PCC_T_IND )
#define ACC_F_APPI_SIM_CONFIG_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_SIM_CONFIG, PCC_T_IND )
#define ACC_F_APPI_SVC_READY_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_SVC_READY, PCC_T_IND )
#define ACC_F_APPI_SWITCH_OFF_REQ MC_PCC_FUNCTION_TYPE( ACC_F_APPI_SWITCH_OFF, PCC_T_REQ )
#define ACC_F_APPI_SWITCH_OFF_CNF MC_PCC_FUNCTION_TYPE( ACC_F_APPI_SWITCH_OFF, PCC_T_CNF )
#define ACC_F_APPI_CTRL_BY_SIM_IND MC_PCC_FUNCTION_TYPE( ACC_F_APPI_CTRL_BY_SIM, PCC_T_IND )
#define ACC_F_APPI_CTRL_BY_SIM_RSP MC_PCC_FUNCTION_TYPE( ACC_F_APPI_CTRL_BY_SIM, PCC_T_RSP )
#define ACC_F_APPI_CTRL_BY_SIM_RJT MC_PCC_FUNCTION_TYPE( ACC_F_APPI_CTRL_BY_SIM, PCC_T_RJT )
#define ACC_F_DEACTIVATE_CARD_IND MC_PCC_FUNCTION_TYPE( ACC_F_DEACTIVATE_CARD, PCC_T_IND )
#define ACC_F_DEACTIVATE_CARD_RSP MC_PCC_FUNCTION_TYPE( ACC_F_DEACTIVATE_CARD, PCC_T_RSP )
/*
From old STK interface
*/
#define ACC_F_APPI_REFRESH_REQ \
MC_PCC_FUNCTION_TYPE( ACC_F_APPI_REFRESH, PCC_T_REQ )
#define ACC_F_APPI_REFRESH_CNF \
MC_PCC_FUNCTION_TYPE( ACC_F_APPI_REFRESH, PCC_T_CNF )
#define ACC_F_APPI_REFRESH_ERR \
MC_PCC_FUNCTION_TYPE( ACC_F_APPI_REFRESH, PCC_T_ERR )
#define ACC_F_APPI_RESET_REQ \
MC_PCC_FUNCTION_TYPE( ACC_F_APPI_RESET, PCC_T_REQ )
#define ACC_F_APPI_RESET_CNF \
MC_PCC_FUNCTION_TYPE( ACC_F_APPI_RESET, PCC_T_CNF )
#define ACC_F_APPI_RESET_ERR \
MC_PCC_FUNCTION_TYPE( ACC_F_APPI_RESET, PCC_T_ERR )
DOC_REMOVE_END
/* ''''''''''''''''''''''''''''
J.2- Macro Parameters values
''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''
J.3- Function Parameters values
'''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''
J.4- Variable Parameters values
'''''''''''''''''''''''''''''''*/
#endif /* ACC_APPI_HEC */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -