|
|
|
@ -30,121 +30,6 @@
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
typedef uint32_t HANDLE;
|
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* typedef : GsmL1_RxBurst
|
|
|
|
|
************************************************************************//**
|
|
|
|
|
*
|
|
|
|
|
* Individual physical channel message received from the demodulator.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup gsml1_api_types
|
|
|
|
|
*
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
#ifdef QUAD_BAND__ // Quad-Band
|
|
|
|
|
typedef struct GsmL1_RxBurst_t
|
|
|
|
|
{
|
|
|
|
|
uint32_t u32Sync; ///< Synchronization word (Word 1)
|
|
|
|
|
|
|
|
|
|
uint32_t u22Fn : 24; ///< Frame number (Word 2 [0-23])
|
|
|
|
|
uint32_t u8Tn : 8; ///< Time slot number (Word 2 [24-32])
|
|
|
|
|
|
|
|
|
|
uint32_t u8DeviceId : 8; ///< Device Id ( Word 3 [0-7] )
|
|
|
|
|
uint32_t u8AgcScaleFactor : 8; ///< Agc Gain applied to the burst sample is 2^(AGC_SCALE_FACTOR) ( Word 3 [8 - 15] )
|
|
|
|
|
uint32_t u16RfAtten :16; ///< RF attenuator ( Word 3 [16 - 31] )
|
|
|
|
|
|
|
|
|
|
uint32_t u8BurstType : 8; ///< Burst type ( Word 4 [0-7] )
|
|
|
|
|
uint32_t u8RfSync : 8; ///< RF synchronization flag ( Word 4 [8 - 15] )
|
|
|
|
|
int32_t i16Offset : 16; ///< Burst offset ( Word 4 [16-31] )
|
|
|
|
|
|
|
|
|
|
float fRssi; ///< Received signal strength indicator in femtowatt( Word 5 )
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
{
|
|
|
|
|
float fLQ; ///< Link quality ( Word 6 [0 - 31] )
|
|
|
|
|
float fTsRssi; ///< Received training sequence signal strength indicator in femtowatt( Word 6 )
|
|
|
|
|
} u;
|
|
|
|
|
|
|
|
|
|
uint32_t u16XCorr : 16; ///< Correlation result ( Word 7 [0 - 15] )
|
|
|
|
|
uint32_t u16Arfcn : 16; ///< Arfcn (Set by the PhyRf layer ( Word 8 [0 - 15] )
|
|
|
|
|
|
|
|
|
|
GsmL1_Dir_t dir; ///< Direction ( Word 8 [0 - 31] )
|
|
|
|
|
//uint32_t u16Arfcn : 16; ///< Arfcn (Set by the PhyRf layer ( Word 8 [0 - 15] )
|
|
|
|
|
//uint32_t : 16; ///< Reserved bits ( Word 8, [16 - 31] )
|
|
|
|
|
|
|
|
|
|
int8_t pi8Burst[148]; ///< Burst data (148 bytes)
|
|
|
|
|
|
|
|
|
|
} GsmL1_RxBurst_t;
|
|
|
|
|
#else // DCS-1800
|
|
|
|
|
typedef struct GsmL1_RxBurst_t
|
|
|
|
|
{
|
|
|
|
|
uint32_t u32Sync; ///< Synchronization word (Word 1)
|
|
|
|
|
|
|
|
|
|
uint32_t u22Fn : 24; ///< Frame number (Word 2 [0-23])
|
|
|
|
|
uint32_t u8Tn : 8; ///< Time slot number (Word 2 [24-32])
|
|
|
|
|
|
|
|
|
|
uint32_t u16DeviceId :16; ///< Device Id ( Word 3 [0-15] )
|
|
|
|
|
uint32_t u8AgcScaleFactor : 8; ///< Agc Gain applied to the burst sample is 2^(AGC_SCALE_FACTOR) ( Word 3 [16 - 23] )
|
|
|
|
|
uint32_t u8RfAtten : 8; ///< RF attenuator ( Word 3 [24 - 31] )
|
|
|
|
|
|
|
|
|
|
uint32_t u8BurstType : 8; ///< Burst type ( Word 4 [0-7] )
|
|
|
|
|
uint32_t u8RfSync : 8; ///< RF synchronization flag ( Word 4 [8 - 15] )
|
|
|
|
|
int32_t i16Offset : 16; ///< Burst offset ( Word 4 [16-31] )
|
|
|
|
|
|
|
|
|
|
float fRssi; ///< Received signal strength indicator in femtowatt( Word 5 )
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
{
|
|
|
|
|
float fLQ; ///< Link quality ( Word 6 [0 - 31] )
|
|
|
|
|
float fTsRssi; ///< Received training sequence signal strength indicator in femtowatt( Word 6 )
|
|
|
|
|
} u;
|
|
|
|
|
|
|
|
|
|
uint32_t u16XCorr : 16; ///< Correlation result ( Word 7 [0 - 15] )
|
|
|
|
|
uint32_t u16Arfcn : 16; ///< Arfcn (Set by the PhyRf layer ( Word 8 [0 - 15] )
|
|
|
|
|
|
|
|
|
|
GsmL1_Dir_t dir; ///< Direction ( Word 8 [0 - 31] )
|
|
|
|
|
//uint32_t u16Arfcn : 16; ///< Arfcn (Set by the PhyRf layer ( Word 8 [0 - 15] )
|
|
|
|
|
//uint32_t : 16; ///< Reserved bits ( Word 8, [16 - 31] )
|
|
|
|
|
|
|
|
|
|
int8_t pi8Burst[148]; ///< Burst data (148 bytes)
|
|
|
|
|
|
|
|
|
|
} GsmL1_RxBurst_t;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* typedef : GsmL1_TxBurst
|
|
|
|
|
************************************************************************//**
|
|
|
|
|
*
|
|
|
|
|
* Individual physical channel message transmitted to the demodulator.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup gsml1_api_types
|
|
|
|
|
*
|
|
|
|
|
* @note The [LB] tag means that this field is set in Dsp/Fpga loopback only
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
typedef struct GsmL1_TxBurst_t
|
|
|
|
|
{
|
|
|
|
|
uint32_t u32Sync; ///< Synchronization word (Word 1 [0 - 31] )
|
|
|
|
|
|
|
|
|
|
uint32_t u22Fn : 24; ///< Frame number (Word 2 [0-23])
|
|
|
|
|
uint32_t u8Tn : 8; ///< Time slot number (Word 2 [24-32])
|
|
|
|
|
|
|
|
|
|
uint32_t u16DeviceId : 16; ///< Fpga device Id (Word 3 [0 - 15] )
|
|
|
|
|
uint32_t : 16; ///< Reserved bits ( Word 3 [16 - 31] )
|
|
|
|
|
|
|
|
|
|
uint32_t u8BurstType : 8; ///< Burst type ( Word 4 [0-7] )
|
|
|
|
|
uint32_t : 24; ///< Reserved bits ( Word 4 [8-31] )
|
|
|
|
|
|
|
|
|
|
uint32_t u32SubCh : 32; ///< Reserved bits ( Word 5 )
|
|
|
|
|
|
|
|
|
|
uint32_t : 32; ///< Reserved bits ( Word 6 )
|
|
|
|
|
|
|
|
|
|
uint32_t u16Arfcn : 16; ///< [LB] Absolute radio frequency channel number ( Word 8 [ 16-31 ] )
|
|
|
|
|
uint32_t : 16; ///< Reserved word ( Word 8 [ 0-15 ] )
|
|
|
|
|
|
|
|
|
|
GsmL1_Dir_t dir; ///< Direction ( Word 8 [0 - 31] )
|
|
|
|
|
|
|
|
|
|
int8_t pi8Burst[148]; ///< Burst data (148 bytes)
|
|
|
|
|
|
|
|
|
|
} GsmL1_TxBurst_t;
|
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* typedef : GsmL1_LogChParam_t
|
|
|
|
|
************************************************************************//**
|
|
|
|
@ -179,6 +64,7 @@ typedef union
|
|
|
|
|
// TCH
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
GsmL1_TchPlFmt_t tchPlFmt; ///< Payload format (RFC RTP, Etsi IF2)
|
|
|
|
|
GsmL1_TchPlType_t tchPlType; ///< Expected payload type (HR, FR, EFR or AMR)
|
|
|
|
|
GsmL1_AmrCmiPhase_t amrCmiPhase; ///< AMR Codec Mode Indication phase (downlink)
|
|
|
|
|
GsmL1_AmrCodecMode_t amrInitCodecMode; ///< AMR Initial Codec Mode
|
|
|
|
|