l1_defty.h
来自「是一个手机功能的模拟程序」· C头文件 代码 · 共 2,168 行 · 第 1/5 页
H
2,168 行
API sr_hole1; // hole
API d_sr_bit_exact_test; // bit exact test
API d_sr_nb_words; // number of words used in the speech recognition task
API d_sr_db_level; // estimate voice level in dB
API d_sr_db_noise; // estimate noise in dB
API d_sr_mod_size; // size of the model
API sr_holes_1[4]; // hole
#else
// FACCH downlink information........(!!)
API a_fu[15]; // Header + FACCH uplink information
#endif
// Traffic uplink data frames........(!!)
#if (DATA14_4 == 0)
API a_du_0[20]; // Header + DATA traffic uplink information, sub. chan. 0.
API a_du_1[20]; // Header + DATA traffic uplink information, sub. chan. 1.
#endif
#if (DATA14_4 == 1)
API a_du_0[22]; // Header + DATA traffic uplink information, sub. chan. 0.
API a_du_1[22]; // Header + DATA traffic uplink information, sub. chan. 1.
#endif
// Random access.....................(MCU -> DSP).
API d_rach; // RACH information.
//...................................(MCU -> DSP).
API d_a5mode; // Encryption Mode.
API a_kc[4]; // Encryption Key Code.
API d_tch_mode; // TCH mode register.
// bit [0..1] -> b_dai_mode.
// bit [2] -> b_dtx.
// OMEGA...........................(MCU -> DSP).
#if ((ANALOG == 1) || (ANALOG == 2))
API a_ramp[16];
#if (MELODY_E1)
API d_melo_osc_used;
API d_melo_osc_active;
API a_melo_note0[4];
API a_melo_note1[4];
API a_melo_note2[4];
API a_melo_note3[4];
API a_melo_note4[4];
API a_melo_note5[4];
API a_melo_note6[4];
API a_melo_note7[4];
#if (DSP == 17)
// selection of the melody format
API d_dco_type; // Tide
API p_start_IQ;
API d_level_off;
API d_dco_dbg;
API d_tide_resa;
API d_asynch_margin; // Perseus Asynch Audio Workaround
API hole[4];
#else
API d_melody_selection;
API holes[9];
#endif
#else // NO MELODY E1
// selection of the melody format
#if (DSP == 17)
API holes[34]; // 34 unused holes.
API d_dco_type; // Tide
API p_start_IQ;
API d_level_off;
API d_dco_dbg;
API d_tide_resa;
API d_asynch_margin; // Perseus Asynch Audio Workaround
API hole[4]
#else
// selection of the melody format
API d_melody_selection;
API holes[43]; // 43 unused holes.
#endif
#endif
API d_debug3;
API d_debug2;
API d_debug1; // bit 0 at 1 enable dsp f_tx delay for Omega
API d_afcctladd;
API d_vbur;
API d_vbdr;
API d_apcdel;
API d_aec_ctrl;
API d_apcoff;
API d_bulioff;
API d_bulqoff;
API d_dai_onoff;
API d_auxdac;
API d_vbcr;
API d_bbctl;
#endif
//...................................(MCU -> DSP).
API a_sch26[5]; // Header + SB information, array of 5 words.
// TONES.............................(MCU -> DSP)
API d_toneskb_init;
API d_toneskb_status;
API d_k_x1_t0;
API d_k_x1_t1;
API d_k_x1_t2;
API d_pe_rep;
API d_pe_off;
API d_se_off;
API d_bu_off;
API d_t0_on;
API d_t0_off;
API d_t1_on;
API d_t1_off;
API d_t2_on;
API d_t2_off;
API d_k_x1_kt0;
API d_k_x1_kt1;
API d_dur_kb;
// PLL...............................(MCU -> DSP).
API d_pll_clkmod1;
API d_pll_clkmod2;
// DSP status returned..........(DSP --> MCU).
API d_error_status;
// RIF control.......................(MCU -> DSP).
API d_spcx_rif;
API d_shiftdl;
API d_shiftul;
#if (AEC == 1)
// AEC control.......................(MCU -> DSP).
#if (VOC == FR_EFR)
API p_aec_init;
API p_aec_prog;
API p_spenh_init;
API p_spenh_prog;
#endif
#if (VOC == FR_HR_EFR)
API p_saec_prog;
API p_aec_prog;
API p_spenh_prog;
#endif
#endif
API a_ovly[75];
API d_ra_conf;
API d_ra_act;
API d_ra_test;
API d_ra_statu;
API d_ra_statd;
API d_fax;
#if (SPEECH_RECO)
API a_data_buf_ul[3];
API a_n_best_words[4]; // array of the 4 best words
API a_n_best_score[8]; // array of the 4 best scores (each score is 32 bits length)
API sr_holes_2[6];
API a_data_buf_dl[37];
API fir_holes1[409];
API a_fir31_uplink[31];
API a_fir31_downlink[31];
API d_audio_init;
API d_audio_status;
API a_model[1041]; // array of the speech reco model
#else
API a_data_buf_ul[21];
API a_data_buf_dl[37];
API fir_holes1[409];
API a_fir31_uplink[31];
API a_fir31_downlink[31];
API d_audio_init;
API d_audio_status;
#endif
}
T_NDB_MCU_DSP;
#endif
#if (DSP == 34) || (DSP == 35) || (DSP == 36)
typedef struct
{
API_SIGNED d_transfer_rate;
// Common GSM/GPRS
// These words specified the latencies to applies on some peripherics
API_SIGNED d_lat_mcu_bridge;
API_SIGNED d_lat_mcu_hom2sam;
API_SIGNED d_lat_mcu_bef_fast_access;
API_SIGNED d_lat_dsp_after_sam;
// DSP Start address
API_SIGNED d_gprs_install_address;
API_SIGNED d_misc_config;
API_SIGNED d_cn_sw_workaround;
API_SIGNED d_hole2_param[4];
//...................................Frequency Burst.
API_SIGNED d_fb_margin_beg;
API_SIGNED d_fb_margin_end;
API_SIGNED d_nsubb_idle;
API_SIGNED d_nsubb_dedic;
API_SIGNED d_fb_thr_det_iacq;
API_SIGNED d_fb_thr_det_track;
//...................................Demodulation.
API_SIGNED d_dc_off_thres;
API_SIGNED d_dummy_thres;
API_SIGNED d_dem_pond_gewl;
API_SIGNED d_dem_pond_red;
//...................................TCH Full Speech.
API_SIGNED d_maccthresh1;
API_SIGNED d_mldt;
API_SIGNED d_maccthresh;
API_SIGNED d_gu;
API_SIGNED d_go;
API_SIGNED d_attmax;
API_SIGNED d_sm;
API_SIGNED d_b;
// V42Bis module
API_SIGNED d_v42b_switch_hyst;
API_SIGNED d_v42b_switch_min;
API_SIGNED d_v42b_switch_max;
API_SIGNED d_v42b_reset_delay;
//...................................TCH Half Speech.
API_SIGNED d_ldT_hr;
API_SIGNED d_maccthresh_hr;
API_SIGNED d_maccthresh1_hr;
API_SIGNED d_gu_hr;
API_SIGNED d_go_hr;
API_SIGNED d_b_hr;
API_SIGNED d_sm_hr;
API_SIGNED d_attmax_hr;
//...................................TCH Enhanced FR Speech.
API_SIGNED c_mldt_efr;
API_SIGNED c_maccthresh_efr;
API_SIGNED c_maccthresh1_efr;
API_SIGNED c_gu_efr;
API_SIGNED c_go_efr;
API_SIGNED c_b_efr;
API_SIGNED c_sm_efr;
API_SIGNED c_attmax_efr;
//...................................CHED
API_SIGNED d_sd_min_thr_tchfs;
API_SIGNED d_ma_min_thr_tchfs;
API_SIGNED d_md_max_thr_tchfs;
API_SIGNED d_md1_max_thr_tchfs;
API_SIGNED d_sd_min_thr_tchhs;
API_SIGNED d_ma_min_thr_tchhs;
API_SIGNED d_sd_av_thr_tchhs;
API_SIGNED d_md_max_thr_tchhs;
API_SIGNED d_md1_max_thr_tchhs;
API_SIGNED d_sd_min_thr_tchefs;
API_SIGNED d_ma_min_thr_tchefs;
API_SIGNED d_md_max_thr_tchefs;
API_SIGNED d_md1_max_thr_tchefs;
API_SIGNED d_wed_fil_ini;
API_SIGNED d_wed_fil_tc;
API_SIGNED d_x_min;
API_SIGNED d_x_max;
API_SIGNED d_slope;
API_SIGNED d_y_min;
API_SIGNED d_y_max;
API_SIGNED d_wed_diff_threshold;
API_SIGNED d_mabfi_min_thr_tchhs;
// FACCH module
API_SIGNED d_facch_thr;
// IDS module
API_SIGNED d_max_ovsp_ul;
API_SIGNED d_sync_thres;
API_SIGNED d_idle_thres;
API_SIGNED d_m1_thres;
API_SIGNED d_max_ovsp_dl;
API_SIGNED d_gsm_bgd_mgt;
// FIR coefficients
API a_fir_holes[4];
API a_fir31_uplink[31];
API a_fir31_downlink[31];
}
T_PARAM_MCU_DSP;
#elif (DSP == 33)
typedef struct
{
API_SIGNED d_transfer_rate;
// Common GSM/GPRS
// These words specified the latencies to applies on some peripherics
API_SIGNED d_lat_mcu_bridge;
API_SIGNED d_lat_mcu_hom2sam;
API_SIGNED d_lat_mcu_bef_fast_access;
API_SIGNED d_lat_dsp_after_sam;
// DSP Start address
API_SIGNED d_gprs_install_address;
API_SIGNED d_misc_config;
API_SIGNED d_cn_sw_workaround;
#if DCO_ALGO
API_SIGNED d_cn_dco_param;
API_SIGNED d_hole2_param[3];
#else
API_SIGNED d_hole2_param[4];
#endif
//...................................Frequency Burst.
API_SIGNED d_fb_margin_beg;
API_SIGNED d_fb_margin_end;
API_SIGNED d_nsubb_idle;
API_SIGNED d_nsubb_dedic;
API_SIGNED d_fb_thr_det_iacq;
API_SIGNED d_fb_thr_det_track;
//...................................Demodulation.
API_SIGNED d_dc_off_thres;
API_SIGNED d_dummy_thres;
API_SIGNED d_dem_pond_gewl;
API_SIGNED d_dem_pond_red;
//...................................TCH Full Speech.
API_SIGNED d_maccthresh1;
API_SIGNED d_mldt;
API_SIGNED d_maccthresh;
API_SIGNED d_gu;
API_SIGNED d_go;
API_SIGNED d_attmax;
API_SIGNED d_sm;
API_SIGNED d_b;
// V42Bis module
API_SIGNED d_v42b_switch_hyst;
API_SIGNED d_v42b_switch_min;
API_SIGNED d_v42b_switch_max;
API_SIGNED d_v42b_reset_delay;
//...................................TCH Half Speech.
API_SIGNED d_ldT_hr;
API_SIGNED d_maccthresh_hr;
API_SIGNED d_maccthresh1_hr;
API_SIGNED d_gu_hr;
API_SIGNED d_go_hr;
API_SIGNED d_b_hr;
API_SIGNED d_sm_hr;
API_SIGNED d_attmax_hr;
//...................................TCH Enhanced FR Speech.
API_SIGNED c_mldt_efr;
API_SIGNED c_maccthresh_efr;
API_SIGNED c_maccthresh1_efr;
API_SIGNED c_gu_efr;
API_SIGNED c_go_efr;
API_SIGNED c_b_efr;
API_SIGNED c_sm_efr;
API_SIGNED c_attmax_efr;
//...................................CHED
API_SIGNED d_sd_min_thr_tchfs;
API_SIGNED d_ma_min_thr_tchfs;
API_SIGNED d_md_max_thr_tchfs;
API_SIGNED d_md1_max_thr_tchfs;
API_SIGNED d_sd_min_thr_tchhs;
API_SIGNED d_ma_min_thr_tchhs;
API_SIGNED d_sd_av_thr_tchhs;
API_SIGNED d_md_max_thr_tchhs;
API_SIGNED d_md1_max_thr_tchhs;
API_SIGNED d_sd_min_thr_tchefs;
API_SIGNED d_ma_min_thr_tchefs;
API_SIGNED d_md_max_thr_tchefs;
API_SIGNED d_md1_max_thr_tchefs;
API_SIGNED d_wed_fil_ini;
API_SIGNED d_wed_fil_tc;
API_SIGNED d_x_min;
API_SIGNED d_x_max;
API_SIGNED d_slope;
API_SIGNED d_y_min;
API_SIGNED d_y_max;
API_SIGNED d_wed_diff_threshold;
API_SIGNED d_mabfi_min_thr_tchhs;
// FACCH module
API_SIGNED d_facch_thr;
// IDS module
API_SIGNED d_max_ovsp_ul;
API_SIGNED d_sync_thres;
API_SIGNED d_idle_thres;
API_SIGNED d_m1_thres;
API_SIGNED d_max_ovsp_dl;
API_SIGNED d_gsm_bgd_mgt;
// FIR coefficients
API a_fir_holes[4];
API a_fir31_uplink[31];
API a_fir31_downlink[31];
}
T_PARAM_MCU_DSP;
#else
typedef struct
{
//...................................Frequency Burst.
API_SIGNED d_nsubb_idle;
API_SIGNED d_nsubb_dedic;
API_SIGNED d_fb_thr_det_iacq;
API_SIGNED d_fb_thr_det_track;
//...................................Demodulation.
API_SIGNED d_dc_off_thres;
API_SIGNED d_dummy_thres;
API_SIGNED d_dem_pond_gewl;
API_SIGNED d_dem_pond_red;
API_SIGNED hole[1];
API_SIGNED d_transfer_rate;
//...................................TCH Full Speech.
API_SIGNED d_maccthresh1;
API_SIGNED d_mldt;
API_SIGNED d_maccthresh;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?