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

📄 cdmg_sig.h

📁 一个通过串口连接手机发短信的程序。
💻 H
字号:
/****************************************************************************
 *
 *                         TTPCom Layer 1 software
 *
 *               Copyright (c) 1999 TTP Communications Ltd.
 *
 ****************************************************************************
 *
 *   $Id: //central/releases/Branch_release_9/tplgsm/l1inc/cdmg_sig.h#2 $
 *   $Revision: #2 $
 *   $DateTime: 2004/01/14 14:10:56 $
 *
 ****************************************************************************
 *
 *  File Description : Cal dev definitions for GSM
 *
 *
 ****************************************************************************
 *
 ****************************************************************************/
#if !defined (CDMG_SIG_H)
#define       CDMG_SIG_H


/****************************************************************************
 * Nested Include Files
 ****************************************************************************/
#include <cdmg_typ.h>

/***************************************************************************
 * Manifest Constants
 **************************************************************************/

/****************************************************************************
 * Types used in Prototypes and Globals
 ****************************************************************************/
typedef TaskId Int16;
/*
** Sent to move L1 into the Test state where it can action CalDevGsm signals.
** A command reference is used by the caller, for their reference. Layer1
** returns this command reference in a confirm signal when the transition
** has been made. The confirm signal is sent to the 'taskId' specified in
** the request.
*/
typedef struct CalDevGsmReqTag
{
    Int16               commandRef;
    TaskId              taskId;
}
CalDevGsmReq;

typedef struct CalDevGsmCnfTag
{
    Boolean             success;
    Int16               commandRef;
}
CalDevGsmCnf;


/*
** Sent to move L1 from the Test state to the Null state, ie CalDev functionality
** is no longer required. A confirm signal is sent to 'taskId' which returns
** the command reference of the request. The confirm indicated a sucessful
** transition to NULL.
*/
typedef struct CalDevGsmFinishReqTag
{
    Int16               commandRef;
    TaskId              taskId;
}
CalDevGsmFinishReq;

typedef struct CalDevGsmFinishCnfTag
{
    Int16               commandRef;
    Boolean             success;
}
CalDevGsmFinishCnf;


/*
** Confirm and reference returned to 'taskId'. Causes the system to perform
** and RSSI measurement on rf channel 'arfcn' using gain number 'gain'.
*/
typedef struct CalDevGsmRssiReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Arfcn               arfcn;
    Int8                gain;
    RssiMode            mode;
}
CalDevGsmRssiReq;

typedef struct CalDevGsmRssiCnfTag
{
    Int16               commandRef;
    Arfcn               arfcn;
    L1Rssi              rssiLevel;
}
CalDevGsmRssiCnf;


/*
** Attempts to perform a Frequency Burst detection for channel 'arfcn' with
** the afc DAC set to value 'dacValue' in order that it can be used to measure
** frequency offset.
*/
typedef struct CalDevGsmFreqOffsetMeasReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Arfcn               arfcn;
    Int16               dacValue;
}
CalDevGsmFreqOffsetMeasReq;


/*
** Confirmation signal after freqeuncy offset measure request. Returns 'success'
** if the measurement is valid.
*/
typedef struct CalDevGsmFreqOffsetMeasCnfTag
{
    Int16               commandRef;
    SignedInt16         freqOffset;
    FreqOffResult       status;
}
CalDevGsmFreqOffsetMeasCnf;


/*
** Start-Stop Burst Mode. Up to 4 rx bursts per frame are possible. Each
** burst can specify a separate channel and gain. If Tx is required, it is
** always placed 3 Ts from the 1st Rx and only 3 Rx bursts can accompany it.
** In this case, burst 4 information is discarded.
** The Tx can be Rach or Normal Burst. The Time from the 1st Rx to the Tx can
** be varied by up to 63 bits to simulate timing advance.
*/
typedef struct CalDevGsmBurstReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    BurstMode           bursting;
    Boolean             burstOn[4];
    Arfcn               arfcn[4];
    Int8                rxGain[4];
    Burst2Type          burst2Type;
    Int8                timingAdvance;
    Int8                rachData;
    Int8                txPowerLevel;
}
CalDevGsmBurstReq;



/*
** Burst Tx/Rx Mode confirmation
*/
typedef struct CalDevGsmBurstCnfTag
{
    Int16               commandRef;
    BurstMode           bursting;
}
CalDevGsmBurstCnf;

/*
** Sets the AFC DAC to Dac Value
*/
typedef struct CalDevGsmSetAfcDacReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Int16               dacValue;
}
CalDevGsmSetAfcDacReq;


/*
** Confirmation signal after an AFC set DAC request. Returns 'success'
** if the measurement is valid.
*/
typedef struct CalDevGsmSetAfcDacCnfTag
{
    Int16               commandRef;
}
CalDevGsmSetAfcDacCnf;

/*
** Sets up an internal CalDev buffer for PowerRamp data (scaled for level)
*/

typedef struct CalDevGsmSetPowerRampTag
{
    Int16               commandRef;
    TaskId              taskId;
    TestRampData        rampData;
}
CalDevGsmSetPowerRampReq;

/*
** Confirms the setting up of the Power Ramp
*/
typedef struct CalDevGsmSetPowerRampCnfTag
{
    Int16               commandRef;
}
CalDevGsmSetPowerRampCnf;

/*
** Sets up an internal CalDev buffer for NB TX data
*/
typedef struct CalDevGsmSetBurstDataTag
{
    Int16               commandRef;
    TaskId              taskId;
    BurstData           burstData;
}
CalDevGsmSetBurstDataReq;

/*
** Confirms the setting up of the NB Burst Data
*/
typedef struct CalDevGsmSetBurstDataCnfTag
{
    Int16               commandRef;
}
CalDevGsmSetBurstDataCnf;

/*
** Requests the BBC stored DC offsets
*/
typedef struct CalDevGsmDcOffsetReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Boolean             measure;
}
CalDevGsmDcOffsetReq;


/*
** DC Offset Request Signal
*/
typedef struct CalDevGsmDcOffsetCnfTag
{
    Int16               commandRef;
    Int16               iTxOffset;
    Int16               qTxOffset;
    Int16               iRxOffset;
    Int16               qRxOffset;
}
CalDevGsmDcOffsetCnf;

/*
** Sets Gain Code/Accurate Gain
*/
typedef struct CalDevGsmGainProgramReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Int16               gain;
    Int8                gainNumber;
    GainProgramMode     mode;
}
CalDevGsmGainProgramReq;

/*
** Gain Code/Accurate Gain Confirm
*/
typedef struct CalDevGsmGainProgramCnfTag
{
    Int16               commandRef;
    Int16               gain;
}
CalDevGsmGainProgramCnf;

/*
** Development Control of receiver
*/
typedef struct CalDevGsmRxControlTag
{
    Int16               commandRef;
    TaskId              taskId;
    RxControlMode       command;
    Int32               parameter;
    Int8                index;
}
CalDevGsmRxControlReq;

/*
** Rx Control Confirm
*/
typedef struct CalDevGsmRxControlCnfTag
{
    Int16               commandRef;
    RxControlMode       command;
}
CalDevGsmRxControlCnf;

/*
** Alters dymanic power ramp scale factors for calibration
*/

typedef struct CalDevGsmRampScaleReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Int16               rampScale;
}
CalDevGsmRampScaleReq;

/*
** Confirms the setting up of the Power Ramp Scale factor
*/
typedef struct CalDevGsmRampScaleCnfTag
{
    Int16               commandRef;
}
CalDevGsmRampScaleCnf;

/*
 ** Changes BandMode
 */

typedef struct CalDevGsmSetBandModeReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    BandMode            bandMode;
}
CalDevGsmSetBandModeReq;

/*
 ** Confirms the BandMode change
 */

typedef struct CalDevGsmSetBandModeCnfTag
{
    Int16               commandRef;
}
CalDevGsmSetBandModeCnf;

/*
 ** Starts Synchronisation From CalDev
 */

typedef struct CalDevGsmLoopBackReqTag
{
    Int16               commandRef;
    TaskId              taskId;
    Arfcn               bchArfcn;
    Arfcn               tchArfcn;
    Int8                timeSlot;
    Int8                tsc;
    Int8                powerLevel;
    LoopBackMode        mode;
}
CalDevGsmLoopBackReq;

/*
 ** Confirms Synchronisation In CalDev
 */

typedef struct CalDevGsmLoopBackCnfTag
{
    Int16               commandRef;
    Boolean             success;
}
CalDevGsmLoopBackCnf;

/*
 ** Requests Data from the EqTask when in Loop Back
 */

typedef struct CalDevGsmLoopBackDataReqTag
{
    Int16               commandRef;
    TaskId              taskId;
}
CalDevGsmLoopBackDataReq;

/*
 ** Contains Data from the EqTask when in Loop Back
 */

typedef struct CalDevGsmLoopBackDataCnfTag
{
    Int16               commandRef;
    SignedInt16         timingOffsetQbits;
    SignedInt16         freqOffsetHz;
    Int16               bitErrors;
    Int16               softDecisionTotal;
    SignedInt16         rssi;
    Boolean             success;
}
CalDevGsmLoopBackDataCnf;





































































       /* UPGRADE_GPRS */

#endif
/* END OF FILE */

⌨️ 快捷键说明

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