📄 dxapi.~h
字号:
SIM_EF_SMSR = 0x6f47,
#if !defined (SIM_REMOVE_CPHS)
/* new files for CPHS */
SIM_EF_CPHS_VMWF = 0x6f11,
SIM_EF_CPHS_CFF = 0x6f13,
SIM_EF_CPHS_ON = 0x6f14,
SIM_EF_CPHS_CSP = 0x6f15,
SIM_EF_CPHS_INFO = 0x6f16,
SIM_EF_CPHS_MN = 0x6f17,
SIM_EF_CPHS_ONS = 0x6f18,
SIM_EF_CPHS_INFO_NUM = 0x6f19,
SIM_EF_CPHS_INFO_NUM_OLD = 0xEA01,
#endif
/*These files have the same ID as the homezone file,
* but they reside under a different directory.
* We should not use both at the same time, as
* the SIM manager always presume the ID of the files
* are unique within the SIM */
SIM_EF_PLMNW_ACT = 0x6F60,
SIM_EF_OPLMNW_ACT = 0x6F61,
SIM_EF_HPLMNW_ACT = 0x6F62,
SIM_EF_CPBCCH = 0x6F63,
SIM_EF_INVSCAN = 0x6f64,
SIM_EF_PNN = 0x6fc5,
SIM_EF_OPL = 0x6fc6,
/* used when a field is uninitialised */
SIM_EF_INVALID = 0x0000
}
SimEfId;
typedef struct IMSITag {
Int8 imsi[9];
}
IMSI;
typedef struct ApexSimGenAccessCnfTag
{
Int16 commandRef;
Int16 length;
Int8 command[SIM_MAX_MSG_SIZE];
/*job 101560: new fields to convey the intermediate response from the SIM */
Boolean intermediateResponsePresent;
Int8 sw1; /*first status byte of the intermediate response from the SIM */
Int8 sw2; /*second status byte of the intermediate response from the SIM */
/*Returns TRUE if the fileId specified in the REQ was successfully selected and data in the command field is valid*/
Boolean success; /* 0205-17637 */
} ApexSimGenAccessCnf;
typedef struct AlsiReadCbmiReqTag
{
Int16 commandRef;
/* defines the offset */
Int16 startField;
/* number of desired entries to read */
Int8 numEntriesDesired;
}
AlsiReadCbmiReq;
#define SIM_CBMI_LIST_SIZE 8
typedef enum SimRequestStatusTag
{
SIM_REQ_OK, /* request successful */
SIM_REQ_INVALID_PARAMS, /* invalid parameters in request signal */
SIM_REQ_MEMORY_PROBLEM, /* SIM internal memory problem */
SIM_REQ_FILE_NOT_FOUND, /* file does not exist */
SIM_REQ_SERVICE_NOT_AVAILABLE, /* Service not allocated or activated */
SIM_REQ_SIM_GENERAL_FAULT, /* general sim fault */
SIM_REQ_ACCESS_DENIED, /* file access not permitted */
SIM_REQ_FILE_INVALIDATED, /* file is invalidated */
SIM_REQ_ALLOC_ERROR, /* no memory available to SIM Manager */
SIM_REQ_SM_FAULT, /* Sim manager internal problem */
SIM_REQ_POWERING_DOWN, /* job 100935: powering down * */
#if defined (UPGRADE_SIM_APP_TOOLKIT)
SIM_REQ_CODE_BLOCKED, /* CHV code blocked */
SIM_REQ_SIMAT_BUSY, /* SIM busy processing STK data */
# if defined (UPGRADE_SAT97)
SIM_REQ_SIM_APP_ERROR, /* SIM Application Error */
SIM_REQ_SIM_DDL_ERROR /* SIM SMS-PP Data Download Error */
# else
SIM_REQ_SIM_APP_ERROR /* SIM Application Error */
# endif
#else
SIM_REQ_CODE_BLOCKED /* CHV code blocked */
#endif
}
SimRequestStatus;
typedef struct CbmiListTag
{
/* the number of enties in array 'cbmi' */
Int8 numCbmis;
Int16 cbmi[SIM_CBMI_LIST_SIZE];
}
CbmiList;
typedef struct AlsiReadCbmiCnfTag
{
Int16 commandRef;
SimRequestStatus requestStatus;
/* the total number of CBMI entries */
Int16 totalEntries;
Int16 startField;
CbmiList cbmiList;
}
AlsiReadCbmiCnf;
typedef struct AlsiWriteCbmiReqTag
{
Int16 commandRef;
Int16 startField;
CbmiList cbmiList;
}
AlsiWriteCbmiReq;
typedef struct AlsiWriteCbmiCnfTag
{
Int16 commandRef;
SimRequestStatus requestStatus;
/* zero or more entries stored */
Int8 numEntriesStored;
}
AlsiWriteCbmiCnf;
//**********************************************************************
typedef enum L1AudioDeviceTag
{/* Some of the following audio devices will not be supported without
* appropriate hardware. N.B. Output devices and input devices are each
* grouped together in the definition of this enum, which allows various
* constants to be defined and applied in the rest of the code. */
/* N.B. The device list in this table must be kept the same as the device list
* in dlaudio.c: dlAudioManagerTable_p [ NUMBER_AUDIO_DEVICES ] = {...};
* Also the volumeTable array in L1AuCal.c is referenced via this list.
* Maybe these lists should be auto-generated using macros and an include
* file, similar to the SIG_DEF macro used for defining signals? */
/* Start of Output Devices list */
MAIN_SPEAKER = 0
, AUX_SPEAKER
, EXT_TONE_GEN
, STEREO_SPEAKER
, AUDIO_BUZZER_0
, AUDIO_BUZZER_1
, AUDIO_BUZZER_2
, MODEM_TX
/* End of Output Device list */
/* Start of Input Devices list */
, MIC
, AUX_MIC
, MODEM_RX
/* End of Input Devices list */
/* Totals and Other Constants */
, NUMBER_AUDIO_DEVICES
, NOT_CONNECTED
, AUDIO_FIRST_DEVICE = MAIN_SPEAKER /* Used as a limit within 'for' loops */
/* Legacy device defines */
, AUDIO_OUTPUT_0 = AUDIO_BUZZER_0
, AUDIO_OUTPUT_1 = AUDIO_BUZZER_1
, AUDIO_OUTPUT_2 = AUDIO_BUZZER_2
}
L1AudioDevice;
/* In priority, highest first */
typedef enum L1AudioFormatTag
{/*Some of the following audio formats may not be
* supported without appropriate upgrades */
CALL_TONE = 0
, PRE_DEFINED
, CUSTOM_TONE
, DTMF
, AUDIO_DATA
, PCM_DATA_PLAYBACK
, PCM_DATA_RECORD
, PCM_STREAMING_DATA_PLAYBACK
, PCM_STREAMING_DATA_RECORD
, SPEECH_OUT
, SPEECH_IN
, ENCODED_DATA_PLAYBACK
, ENCODED_DATA_RECORD
, VOICE_RECOG_ENCODED_PLAYBACK
, VOICE_RECOG_ENCODED_RECORD
, MIDI /* Used for hardware midi support via external chipset */
, SW_MIDI /* Used for software standard midi file rendering */
, SW_SMAF /* Used for software smaf midi file rendering */
, MP3
, EXTERNAL_AUDIO_SOURCE /* Allows mixing of an external audio source */
, NUMBER_AUDIO_FORMATS
, NOT_IN_USE
/* Used as a limit within 'for' loops */
, AUDIO_FIRST_FORMAT = CALL_TONE
}
L1AudioFormat;
typedef struct RevTimeTag{
Int16 year;
Int8 month;
Int8 day;
Int8 hour;
Int8 minute;
Int8 seconds;
}RevTime;
typedef enum MmiTestKeyTag
{
MMI_KEY_SEND=1,
MMI_KEY_CLR=11,
MMI_KEY_OK=2,
MMI_KEY_LEFT=7,
MMI_KEY_1=12,
MMI_KEY_2=13,
MMI_KEY_3=14,
MMI_KEY_UP=3,
MMI_KEY_4=17,
MMI_KEY_5=18,
MMI_KEY_6=19,
MMI_KEY_VOLDOWN=5,
MMI_KEY_7=22,
MMI_KEY_8=23,
MMI_KEY_9=24,
MMI_KEY_VOLUP=0,
MMI_KEY_END=4,
MMI_KEY_STAR=27, //*
MMI_KEY_0=28,
MMI_KEY_HASH=29, //#
MMI_KEY_MENU=16,
MMI_KEY_RIGHT=9,
MMI_KEY_DOWN=8
}MmiTestKey;
#define MWINAPI __declspec(dllexport) __cdecl
/////////////////////////////define//////////////////////////////////////////
//when receive signal from comm port message WM_SIGNAL_RECEIVE will be sent
//#define __declspec(dllexport)
//#define MWINAPI __stdcall
#ifdef __cplusplus
extern "C"
{
#endif
////////////////////////////////////////////////////////////////////////////////
// functions that for Port operation //
// //
////////////////////////////////////////////////////////////////////////////////
//function name DxEmmi_Open
//portNum: then number of port to be open
//baudRate:the baud rate to be config the port
//return:
// success: open handle of comm port
// failure: INVALIDE_HANDLE_VALUE
//description:
// open a com port
HANDLE MWINAPI DxEmmi_Open(BYTE portNum,DWORD baudRate);
////////////////////////////////////////////////////////////////////////////////
//function name DxEmmi_Close
// hcomm :handle of comm port to be close
//return:
// success: 0
// error: -2
//description
// close a com port
int MWINAPI DxEmmi_Close(HANDLE hComm);
////////////////////////////////////////////////////////////////////////////////////
//
// functions to communicate with the handset
//
///////////////////////////////////////////////////////////////////////////
//function name DxEmmi_Start
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_Start(HANDLE hComm);
///////////////////////////////////////////////////////////////////////////
//function name DxEmmi_CalDevGsmReq
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_MphDeactivateReq(HANDLE hComm);
///////////////////////////////////////////////////////////////////////////
//function name DxEmmi_CalDevGsmReq
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmReq(HANDLE hComm);
///////////////////////////////////////////////////////////////////////////
//function name DxEmmi_CalDevGsmCnf
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmCnf(HANDLE hComm);
///////////////////////////////////////////////////////////////////////////
//function name DxEmmi_CalDevGsmFinishReq
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmFinishReq(HANDLE hComm);
///////////////////////////////////////////////////////////////////////////
//function name DxEmmi_CalDevGsmFinishCnf
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmFinishCnf(HANDLE hComm);
int MWINAPI DxEmmi_CalDevGsmRssiCnf(HANDLE hComm,Arfcn *Arfcn,L1Rssi *rssiLevel);
int MWINAPI DxEmmi_CalDevGsmRssiReq(HANDLE hComm,Int16 Arfcn,Int8 Gain,RssiMode mode);
///////////////////////////////////////////////////////////////////////////
//function_1007 name DxEmmi_CalDevGsmFreqOffsetMeasReq
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmFreqOffsetMeasReq(HANDLE hComm,Int16 Arfcn,Int16 dacValue);
///////////////////////////////////////////////////////////////////////////
//function_1008 name DxEmmi_CalDevGsmFreqOffsetMeasCnf
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmFreqOffsetMeasCnf(HANDLE hComm,SignedInt16 &freqOffset,Int8 &status);
///////////////////////////////////////////////////////////////////////////
//function_1009 name DxEmmi_CalDevGsmSetPowerRampReq
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmSetPowerRampReq(HANDLE hComm,TestRampData rampData);
///////////////////////////////////////////////////////////////////////////
//function_100A name DxEmmi_CalDevGsmSetPowerRampCnf
//hComm:
//return :0 success
// -1 error
// -2 timeout
int MWINAPI DxEmmi_CalDevGsmSetPowerRampCnf(HANDLE hComm);
///////////////////////////////////////////////////////////////////////////
//function_100B name DxEmmi_CalDevGsmDcOffsetReq
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -