00001
00011 #ifndef __GOBI_API_DMS_H__
00012 #define __GOBI_API_DMS_H__
00013
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017
00037 ULONG GetManufacturer(
00038 BYTE stringSize,
00039 CHAR *pString );
00040
00060 ULONG GetModelID(
00061 BYTE stringSize,
00062 CHAR *pString );
00063
00083 ULONG GetFirmwareRevision(
00084 BYTE stringSize,
00085 CHAR *pString );
00086
00120 ULONG GetFirmwareRevisions(
00121 BYTE amssSize,
00122 CHAR * pAMSSString,
00123 BYTE bootSize,
00124 CHAR * pBootString,
00125 BYTE priSize,
00126 CHAR * pPRIString );
00127
00144 ULONG GetPRLVersion(
00145 WORD * pPRLVersion );
00146
00166 ULONG GetIMSI(
00167 BYTE stringSize,
00168 CHAR * pString );
00169
00209 ULONG GetSerialNumbers(
00210 BYTE esnSize,
00211 CHAR *pESNString,
00212 BYTE imeiSize,
00213 CHAR *pIMEIString,
00214 BYTE meidSize,
00215 CHAR *pMEIDString );
00216
00236 ULONG GetHardwareRevision(
00237 BYTE stringSize,
00238 CHAR *pString );
00239
00268 ULONG GetNetworkTime(
00269 ULONGLONG *pTimeStamp,
00270 ULONG *pTimeSource );
00271
00306 ULONG UIMSetPINProtection(
00307 ULONG id,
00308 ULONG bEnable,
00309 CHAR *pValue,
00310 ULONG *pVerifyRetriesLeft,
00311 ULONG *pUnblockRetriesLeft );
00312
00347 ULONG UIMUnblockPIN(
00348 ULONG id,
00349 CHAR *pPUKValue,
00350 CHAR *pNewValue,
00351 ULONG *pVerifyRetriesLeft,
00352 ULONG *pUnblockRetriesLeft );
00353
00385 ULONG UIMVerifyPIN(
00386 ULONG id,
00387 CHAR *pValue,
00388 ULONG *pVerifyRetriesLeft,
00389 ULONG *pUnblockRetriesLeft );
00390
00425 ULONG UIMChangePIN(
00426 ULONG id,
00427 CHAR *pOldValue,
00428 CHAR *pNewValue,
00429 ULONG *pVerifyRetriesLeft,
00430 ULONG *pUnblockRetriesLeft );
00431
00459 ULONG GetVoiceNumber(
00460 BYTE voiceNumberSize,
00461 CHAR *pVoiceNumber,
00462 BYTE minSize,
00463 CHAR *pMIN );
00464
00480 ULONG SetPower(
00481 ULONG powerMode );
00482
00499 ULONG GetPower(
00500 ULONG *pPowerMode );
00501
00537 ULONG UIMGetControlKeyStatus(
00538 ULONG id,
00539 ULONG *pStatus,
00540 ULONG *pVerifyRetriesLeft,
00541 ULONG *pUnblockRetriesLeft );
00542
00562 ULONG UIMGetICCID(
00563 BYTE stringSize,
00564 CHAR *pString );
00565
00603 ULONG UIMGetPINStatus(
00604 ULONG id,
00605 ULONG *pStatus,
00606 ULONG *pVerifyRetriesLeft,
00607 ULONG *pUnblockRetriesLeft );
00608
00634 ULONG GetOfflineReason(
00635 ULONG *pReasonMask,
00636 ULONG *pbPlatform );
00637
00671 ULONG UIMSetControlKeyProtection(
00672 ULONG id,
00673 ULONG status,
00674 CHAR *pValue,
00675 ULONG *pVerifyRetriesLeft );
00676
00706 ULONG UIMUnblockControlKey(
00707 ULONG id,
00708 CHAR *pValue,
00709 ULONG *pUnblockRetriesLeft );
00710
00758 ULONG GetDeviceCapabilities(
00759 ULONG *pMaxTXChannelRate,
00760 ULONG *pMaxRXChannelRate,
00761 ULONG *pDataServiceCapability,
00762 ULONG *pSimCapability,
00763 ULONG *pRadioIfacesSize,
00764 BYTE *pRadioIfaces );
00765
00782 ULONG ResetToFactoryDefaults(
00783 CHAR *pSPC );
00784
00801 ULONG ValidateSPC(
00802 CHAR *pSPC );
00803
00822 ULONG ActivateAutomatic(
00823 CHAR *pActivationCode );
00824
00871 ULONG ActivateManual(
00872 CHAR *pSPC,
00873 WORD sid,
00874 CHAR *pMDN,
00875 CHAR *pMIN,
00876 ULONG prlSize,
00877 BYTE *pPRL,
00878 CHAR *pMNHA,
00879 CHAR *pMNAAA );
00880
00894 typedef struct ERIFileparams
00895 {
00896 WORD *pFileSize;
00897 BYTE *pFile;
00898 }ERIFileparams;
00899
00918 ULONG SLQSGetERIFile(
00919 ERIFileparams *pERIFileparams );
00920
00947 ULONG GetActivationState(
00948 ULONG *pActivationState);
00949
00970 ULONG SLQSUIMGetState(
00971 ULONG *pUIMState);
00972
01029 ULONG SLQSGetBandCapability( ULONGLONG *pBandCapability );
01030
01082 typedef struct custFeaturesInfo
01083 {
01084 ULONG GpsEnable;
01085 BYTE *pDisableIMSI;
01086 WORD *pIPFamSupport;
01087 BYTE *pRMAutoConnect;
01088 BYTE *pGPSSel;
01089 }custFeaturesInfo;
01090
01107 ULONG SLQSGetCustFeatures(
01108 custFeaturesInfo *pCustFeaturesInfo );
01109
01139 typedef struct custFeaturesSetting
01140 {
01141 BYTE *pGPSSel;
01142 ULONG *pGPSEnable;
01143 }custFeaturesSetting;
01144
01161 ULONG SLQSSetCustFeatures(
01162 custFeaturesSetting *pCustFeaturesSetting );
01163
01175 typedef struct dmsCurrentPRLInfo
01176 {
01177 WORD *pPRLVersion;
01178 BYTE *pPRLPreference;
01179 } dmsCurrentPRLInfo;
01180
01197 ULONG SLQSGetCurrentPRLInfo(
01198 dmsCurrentPRLInfo *pCurrentPRLInfo );
01199
01200 #ifdef __cplusplus
01201 }
01202 #endif
01203
01204 #endif