FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/layer1/include/l1_ctl.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:509db1a7b7b8 |
|---|---|
| 1 /************* Revision Controle System Header ************* | |
| 2 * GSM Layer 1 software | |
| 3 * L1_CTL.H | |
| 4 * | |
| 5 * Filename l1_ctl.h | |
| 6 * Copyright 2003 (C) Texas Instruments | |
| 7 * | |
| 8 ************* Revision Controle System Header *************/ | |
| 9 | |
| 10 /************************************/ | |
| 11 /* Automatic timing control (TOA) */ | |
| 12 /************************************/ | |
| 13 #define C_RED 1 // Factor used to reduce the maximum accumulated values. | |
| 14 // Default : 1/2 | |
| 15 #define C_GEW 1 // Weighting factor. Default : 1/2 | |
| 16 | |
| 17 #define C_SNRGR 2560 // 2.5 F6.10 | |
| 18 #define C_SNR_THR 8192 // 8 F6.10 | |
| 19 #define TOA_HISTO_LEN 11 // Histogram length | |
| 20 | |
| 21 /************************************/ | |
| 22 /* Automatic Gain Control (AGC) */ | |
| 23 /************************************/ | |
| 24 | |
| 25 #define INDEX_MIN 0 | |
| 26 #define INDEX_MAX 240 // 120 | |
| 27 | |
| 28 /************************************/ | |
| 29 /* Automatic frequency compensation */ | |
| 30 /************************************/ | |
| 31 #define C_thr_snr 2560 // 1/0.4 * 2**10 | |
| 32 #define C_thr_P 524288L // 0.5 * 2**20 | |
| 33 #define C_cov_start 838861L // 0.8 * 2**20 | |
| 34 #define C_a0_kalman 10486L // 0.01 * 2**20 | |
| 35 #define C_g_kalman 53687091L// 0.05 * 2**30 | |
| 36 #define C_N_del 2 // delay of frequency control loop | |
| 37 // due to C W R pipeline | |
| 38 #define C_Q 3L // 0.000003 * 2**20 | |
| 39 #define C_thr_K 209715L // 0.2 * 2**20 | |
| 40 #define C_thr_phi 328 // 0.01 * 2**15 | |
| 41 | |
| 42 #if (VCXO_ALGO == 1) | |
| 43 #define C_WIN_AVG_SIZE_M 64 // average size M | |
| 44 #define C_PSI_AVG_SIZE_D 32 // distance size D | |
| 45 #define C_MSIZE (C_WIN_AVG_SIZE_M * C_PSI_AVG_SIZE_D) // Data history for predictor | |
| 46 #define C_RGAP_BAD_SNR_COUNT_B 32 // bad SNR count B | |
| 47 #define ALGO_AFC_RXGAP 1 // reception gap algo | |
| 48 #define ALGO_AFC_KALMAN 1 // Kalman filter | |
| 49 #define ALGO_AFC_LQG_PREDICTOR 2 // LQG filter + rgap predictor | |
| 50 #define ALGO_AFC_KALMAN_PREDICTOR 3 // Kalman filter + rgap predictor | |
| 51 #endif | |
| 52 | |
| 53 #if ((ANLG_FAM == 1) || (ANLG_FAM == 2) || (ANLG_FAM == 3)) | |
| 54 // clipping related to AFC DAC linearity range | |
| 55 #define C_max_step 32000 // 4000 * 2**3 | |
| 56 #define C_min_step -32000 // -4000 * 2**3 | |
| 57 #endif | |
| 58 | |
| 59 |
