⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dxapi.~h

📁 一个通过串口连接手机发短信的程序。
💻 ~H
📖 第 1 页 / 共 4 页
字号:
  Int8        data[NVDATASIZE]; /* Allows data to be passed in signal */
  DataLength  offset;           /* Offset to start at from in bytes   */
}
NvData;

typedef struct NvDataReqTag
{
  DataLength  numBytes;      /* Maximum number of bytes of data requested, or zero        */
  Int8       *dataBuffer_p;  /* Points to destination if nvControl is NV_CONT_USE_POINTER */
  DataLength  offset;        /* Offset to start at from in bytes   */
}
NvDataReq;

typedef enum NvStatusTag
{
  NVRAM_NOT_PRESENT,
  NVRAM_OK,
  NVRAM_BAD,
  NVRAM_WRITE_FAILED,
  NVRAM_READ_FAILED,
  NVRAM_REC_NOT_FOUND,
  NVRAM_DATA_CORRUPT,
  NVRAM_FULL,
  NVRAM_DEFAULT_CAL
}
NvStatus;

typedef struct L1AlMmiKeyIndTag
{
	Int16         keyCode;
	Boolean       isPressed;
}L1AlMmiKeyInd;

typedef struct RtcDateTag
{
	Int16 year;
	Int8  month;
	Int8  day;
}
RtcDate;

typedef struct RtcTimeTag
{
	Int8 hours;
	Int8 minutes;
	Int8 seconds;
}
RtcTime;

typedef enum RtcFormatTag
{
	RTC_FORMAT_LOCAL,           /* Local time */
		RTC_FORMAT_GMT,             /* GMT */
		RTC_FORMAT_DATE_ONLY,       /* Date field only valid */
		RTC_FORMAT_INVALID          /* All data fields invalid */
}
RtcFormat;

typedef enum RtcDispFormatTag
{
	RTC_DISP_FORMAT_POS,
		RTC_DISP_FORMAT_NEG,
		RTC_DISP_FORMAT_INVALID
}
RtcDispFormat;

typedef struct RtcDisplacementTag
{
	RtcDispFormat format;
	RtcTime       offset;
}
RtcDisplacement;

typedef enum RtcDaylightSavingTag
{
	RTC_DAYLIGHT_SAVING_NONE = 0,
		RTC_DAYLIGHT_SAVING_ONE_HR,
		RTC_DAYLIGHT_SAVING_TWO_HRS,
		RTC_DAYLIGHT_SAVING_INVALID
}
RtcDaylightSaving;

typedef struct RtcDateAndTimeTag
{
	RtcDate           date;
	RtcTime           time;
	RtcFormat         format;
	RtcDisplacement   timeZone;
	RtcDaylightSaving daylightSaving;
}
RtcDateAndTime;

//********************************************************************************
//typedef Int16 TaskId;

typedef struct L1AlBattVoltTempReqTag{
	TaskId		   taskId;
	unsigned short commandRef;
	unsigned char  isCharging;  
}L1AlBattVoltTempReq;
//#if !defined(CAL_TEST)
//#endif
//#endif



typedef Int16 AdcReference;

#define    ADC_ACCESSORY_IDENT		0
#define    ADC_BATTERY_TEMPERATURE	1
#define    ADC_BATTERY_VOLTAGE		2
#define    ADC_BATTERY_IDENT		3
#define    ADC_HEADSET_DETECT		4
#define    ADC_MIC_KEY_RELEASE		5
#define    ADC_INTERRUPT_IDENT		6
#define    ADC_ACCESSORY_DETECT	7
#define    NUM_ADC_REFERENCE		8

typedef SignedInt32 AdcValue;
typedef struct L1AlAdcReadReqTag
{
    Int8 adcReference;  /* ADC to read */
	Int8 reserve;
	Int16        commandRef;    /* Command reference */
    TaskId       taskId;        /* Task to which the confirm should be sent */
}
L1AlAdcReadReq;
typedef struct L1AlAdcReadCnfTag
{
    Int8 adcReference;  /* ADC that was read */
	Int8 reserve;
    Int16        commandRef;    /* Command reference from the read request */
    AdcValue     value;         /* Read value, which is in millivolts */
    Boolean      success;       /* True if the read was successful */
}
L1AlAdcReadCnf;
typedef struct L1AlBattVoltTempCnfTag{
	Int16   commandRef;
	Int16    status;
	Int16   voltage;
	SignedInt16     temperature;
	Int16    inCall;
}L1AlBattVoltTempCnf;
typedef struct L1AlPwmStartReqTag{
	Int8 pwm        ;
	Int8   onDuration ;
	Int16  reserve1;
	Int32 phase      ;
	Int32 pulseLength;
}L1AlPwmStartReq;

typedef struct L1AlMelodyStartReqTag
{
	Int32       melodyindex;
	Int8		melodyVolume;
	Int8		melodyRepeat;
	//	Int32       seekPos;
} L1AlMelodyStartReq;

typedef struct L1AlMelodyVolumeReqTag
{
	Int8	volume;/* 0 : Mute, 127 : Max */
} L1AlMelodyVolumeReq;

/* backlight actions */
typedef enum BlActionTag
{
	BL_SET,
		BL_RAMP,
		NUM_BL_ACTIONS
}
BlAction;

typedef enum BlReferenceTag
{
	BL_KEYPAD
		, BL_DISPLAY
		, BL_FAST_DISPLAY_RAMP
		, BL_SLOW_DISPLAY_RAMP
		, NUM_BL_REFS
}
BlReference;

/* configure system dependent backlight attributes */
typedef enum BlAttributeTag
{
	    BL_DEFAULT,
		/* Example attribute */
		BL_BREATHE,
		/* Add Customer defined attributes here */
		/* BL_USER_DEFINE */
		NUM_OF_BL_ATTRIBUTE
}
BlAttribute;

typedef struct L1AlBacklightReqTag
{
	BlReference     blReference;
	BlAction        blAction;
	Int8            blBrightness;
	BlAttribute     blAttribute;
}
L1AlBacklightReq;

/*
* Ordering of enumerated type L1CallTone MUST match
* the values in l1AlCallToneParameters[] within l1aldtmf.c
*/
typedef enum L1CallToneTag
{
	TONE_UK_RING_TONE
		, TONE_AUTHENTICATION_TONE
		, TONE_GSM_DCS_RINGING_TONE
		, TONE_PCS_RINGING_TONE
		, TONE_GSM_DCS_SUB_BUSY_TONE
		, TONE_PCS_SUB_BUSY_TONE
		, TONE_GSM_DCS_CONGESTION_TONE
		, TONE_PCS_CONGESTION_TONE
		, TONE_CALL_DROP_TONE
		, TONE_GSM_DCS_DIAL_TONE
		, TONE_PCS_DIAL_TONE
		, TONE_RADIO_ACK_TONE
		, TONE_GSM_DCS_CALL_WAITING_TONE
		, TONE_PCS_CALL_WAITING_TONE
		, TONE_ATTENTION_TONE
		/*
		* Define here any new Call Tones. Ensure that a
		* new definition appears in l1AlCallToneParameters[]
		*/
		, TOTAL_NUMBER_CALL_TONES
		/*
		* Define here any Call Tones which are identical
		* to any of the Call Tones defined above
		*/
		, TONE_UNOBTAINABLE_TONE = TONE_AUTHENTICATION_TONE
}
L1CallTone;
typedef Int8 L1AudioChannel;
typedef struct L1AlAudioCallToneReqTag
{
    TaskId          taskId;
    Int16           commandRef;
    L1AudioChannel  channel;      /* Channel ID to play tone on */
    Boolean         toneOn;        /* TRUE - Play tone number supplied, FALSE - Stops the current CALL tone */
    L1CallTone      toneNumber;    /* ignored if toneOn == FALSE */
}
L1AlAudioCallToneReq;

//********************************************************************************

typedef struct CfL1AlBmCalDataTag
{
    /* NVRAM Data */
    Int32           dacCalibDividend; /* NVRAM battery calibration dividend */
    Int32           dacCalibDivisor;  /* NVRAM battery calibration divisor */
    Int16           adcMinVolts;      /* ADC reading at minimum voltage typically 3.2v */
    Int16           adcMaxVolts;      /* ADC reading at maximum voltage typically 4.4v */
} CfL1AlBmCalData;

#define     BA_ARRAY_SIZE               128
typedef struct ChannelBitMapTag
{
    Boolean                         valid;
    Int8                            channelData[BA_ARRAY_SIZE];
}
BaList;
typedef struct MmrCampReqTag
{
    BaList                          baList;
    BandMode                        bandMode;
}
MmrCampReq;

#define SIM_MAX_MSG_SIZE 261
typedef struct ApexSimGenAccessReqTag
{
	TaskId                          taskId;
	Int16                           commandRef;
	Int16                           length;
	Int8                            command[SIM_MAX_MSG_SIZE];
	Int16                           efId;      /* job 101859 now Int16 to be more general*/
	Int16                           dirId;     /* job 101859 changed to Int16 */
	Int16                           rootDirId; /* job 101859 need rootdir for Dirs in Dirs */
											   /* job 101329: If this flag is set to TRUE,
    * a GET RESPONSE command will be sent after the raw command has been sent */
	Boolean                         responseWanted;
	
}
ApexSimGenAccessReq;
typedef enum SimDirIdTag
{
    SIM_DIR_MF                  =   0x3f00,
	SIM_DIR_DF_MEXE             =   0x5f3c, /* job 101859 */
    SIM_DIR_DF_GRAPHICS         =   0x5f50,
    SIM_DIR_DF_GSM              =   0x7f20,
    SIM_DIR_DF_DCS1800          =   0x7f21,
    SIM_DIR_DF_TELECOM          =   0x7f10,

      
    /* used when a field is uninitialised */
    SIM_DIR_INVALID             =   0x0000
}
SimDirId;

typedef enum SimEfIdTag
{
      
    SIM_EF_ICCID                =   0x2fe2,

     
    SIM_EF_IMG                  =   0x4f20,
    SIM_EF_LP                   =   0x6f05,
    SIM_EF_IMSI                 =   0x6f07,
    SIM_EF_KC                   =   0x6f20,
    SIM_EF_PLMN_SEL             =   0x6f30,
    SIM_EF_HPLMN                =   0x6f31,
    SIM_EF_ACM_MAX              =   0x6f37,
    SIM_EF_SST                  =   0x6f38,
    SIM_EF_ACM                  =   0x6f39,
    SIM_EF_GID1                 =   0x6f3e,
    SIM_EF_GID2                 =   0x6f3f,
    SIM_EF_SPN                  =   0x6f46,
    SIM_EF_PUCT                 =   0x6f41,
    SIM_EF_CBMI                 =   0x6f45,
    SIM_EF_BCCH                 =   0x6f74,
    SIM_EF_ACC                  =   0x6f78,
    SIM_EF_FPLMN                =   0x6f7b,
    SIM_EF_LOCI                 =   0x6f7e,
    SIM_EF_AD                   =   0x6fad,
    SIM_EF_PHASE                =   0x6fae,
    SIM_EF_ADN                  =   0x6f3a,
    SIM_EF_FDN                  =   0x6f3b,
    SIM_EF_SMS                  =   0x6f3c,
    SIM_EF_CCP                  =   0x6f3d,
    SIM_EF_MSISDN               =   0x6f40,
    SIM_EF_SMSP                 =   0x6f42,
    SIM_EF_SMSS                 =   0x6f43,
    SIM_EF_LND                  =   0x6f44,
    SIM_EF_EXT1                 =   0x6f4a,
    SIM_EF_EXT2                 =   0x6f4b,


      
    SIM_EF_CPS                  =   0x6f3e,
    /* new files for Phase 2+ */

    SIM_EF_ELP                  =   0x2f05,
      
    SIM_EF_VGCS                 =   0x6fb1,
    SIM_EF_VGCSS                =   0x6fb2,
    SIM_EF_VBS                  =   0x6fb3,
    SIM_EF_VBSS                 =   0x6fb4,
    SIM_EF_EMLPP                =   0x6fb5,
    SIM_EF_AAEM                 =   0x6fb6,
    SIM_EF_CBMID                =   0x6f48,
    SIM_EF_ECC                  =   0x6fb7,
    SIM_EF_CBMIR                =   0x6f50,
    SIM_EF_DCK                  =   0x6f2c,
    SIM_EF_CNL                  =   0x6f32,
    SIM_EF_NIA                  =   0x6f51,
    SIM_EF_SDN                  =   0x6f49,
    SIM_EF_EXT3                 =   0x6f4c,
    SIM_EF_BDN                  =   0x6f4d,
    SIM_EF_EXT4                 =   0x6f4e,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -