123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef __STRUCT_BTS_H__
- #define __STRUCT_BTS_H__
- #include "./datatype.h"
- #include "./sysmacro.h"
- #define BTS_AMPL_MIRROR_SECONDS 4 // 镜像秒数,几秒计算一次最强频点
- #define BTS_AMPL_MIRROR_FRAMES (4 * BTS_AMPL_MIRROR_SECONDS) // 镜像帧数,每秒4帧
- #define BTS_AMPL_MAIN_BTS_AMPL_VALID_THRESHOLD 1500 // 主站幅度有效门限(用户在某个时刻一定会更靠近某个基站,所以该基站幅度至少要大于该门限值)
- #define BTS_AMPL_BTS_AMPL_VALID_THRESHOLD 350 // 基站幅度有效门限
- #define BTS_AMPL_BTS_SNR_VALID_THRESHOLD 5 // 基站SNR有效门限
- #define BTS_SYNC_STABLE_SYNC_FRAMES BTS_AMPL_MIRROR_FRAMES // 同步帧数,即几帧进行一次同步
- #define BTS_BTS_NUM 5000 // 基站最大规模数量
- typedef struct
- {
-
- int32 dwValidAmplThres;
- int32 dwValidSnrThres;
- int32 dwAmplRatioThres;
- int32 dwBtsAmplValidTimes;
-
- int32 dwMainBtsValidAmplThres;
- } BTS_AMPL_PARAM_T;
- typedef struct
- {
- uint8 byFreqIndex;
- flt32 afOneSecondData[PUB_SYS_SLOT_NUM * PUB_SLOT_FRAME_LEN];
- flt32 fOneSecondMaxValue;
- uint16 wOneSecondMaxValueIndex;
- flt32 afMultiSecondData[PUB_SYS_SLOT_NUM * PUB_SLOT_FRAME_LEN];
- uint8 byAmplValidTimes;
- } BTS_AMPL_MIRROR_DATA_T;
- typedef struct
- {
- uint8 byFreqIndex;
- flt32 fMaxValue;
- uint16 wMaxValueIndex;
- } BTS_MAX_AMPL_DATA_T;
- typedef struct
- {
- uint8 byBitIndex;
- flt32 afBitMaxAmplitude[PUBLIC_BTS_ID_BITS_NUM];
- flt32 fAvarageValue;
- } BTS_ID_MIRROR_DATA_T;
- typedef struct
- {
- uint32 dwBtsId;
- uint8 byFreqIndex;
- uint8 bySlot;
- uint8 byShiftTimes;
- } BTS_ID_MAIN_BTS_T;
- #define BTS_ID_CAL_MAIN_BTS_NUM 3 // 计算主站数量
- typedef struct
- {
- uint8 byBtsNum;
- BTS_ID_MAIN_BTS_T astBtsList[BTS_ID_CAL_MAIN_BTS_NUM];
- } BTS_ID_JUDGEMENT_MAIN_BTS_T;
- typedef struct
- {
- uint32 dwBuildId;
- uint32 dwLayerId;
- uint32 dwBtsId;
- uint32 dwFreqIndex;
- uint32 dwSlot;
- int32 dwCoordX;
- int32 dwCoordY;
- int32 dwCoordZ;
- uint32 dwLctType;
- uint32 dwTwoBtsNum;
- uint32 adwTwoBtsList[PUB_TWO_BTS_MAX_NUM];
- uint32 adwBluetoothMac[PUB_MAC_ADDRESS_LEN];
- uint32 adwWifiMac[PUB_MAC_ADDRESS_LEN];
- } BTS_INSTALL_BTS_T;
- typedef struct
- {
- uint32 dwBtsNum;
- BTS_INSTALL_BTS_T astLocalBtsList[BTS_BTS_NUM];
- } BTS_INSTALL_BTS_LIST_T;
- #endif
|