FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/L1/include/l1_defty.h @ 534:fc789f72a7d1
gsm-fw/L1/include: l1_defty.h reconciled
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Sat, 02 Aug 2014 00:40:09 +0000 |
| parents | de635895e0be |
| children | e23796f8bd47 |
comparison
equal
deleted
inserted
replaced
| 533:bc3656cfe0d8 | 534:fc789f72a7d1 |
|---|---|
| 5 * Filename l1_defty.h | 5 * Filename l1_defty.h |
| 6 * Copyright 2003 (C) Texas Instruments | 6 * Copyright 2003 (C) Texas Instruments |
| 7 * | 7 * |
| 8 ************* Revision Controle System Header *************/ | 8 ************* Revision Controle System Header *************/ |
| 9 | 9 |
| 10 #include "sys.cfg" | |
| 11 #include "l1sw.cfg" | |
| 12 | |
| 13 #if (L1_RF_KBD_FIX == 1) | 10 #if (L1_RF_KBD_FIX == 1) |
| 14 #include "l1_macro.h" | 11 #include "l1_macro.h" |
| 15 | 12 |
| 16 #if(OP_L1_STANDALONE == 0) | 13 #if(OP_L1_STANDALONE == 0) |
| 17 #include "kpd/kpd_scan_functions.h" | 14 #include "kpd/kpd_scan_functions.h" |
| 19 | 16 |
| 20 #endif | 17 #endif |
| 21 | 18 |
| 22 #include "cust_os.h" | 19 #include "cust_os.h" |
| 23 #if(L1_DYN_DSP_DWNLD == 1) | 20 #if(L1_DYN_DSP_DWNLD == 1) |
| 24 #include "l1_dyn_dwl_defty.h" | 21 #include "../dyn_dwl_include/l1_dyn_dwl_defty.h" |
| 25 #endif | 22 #endif |
| 26 #if (L1_AAC == 1) //ADDED for AAC -sajal | 23 #if (L1_AAC == 1) //ADDED for AAC -sajal |
| 27 #include "l1aac_defty.h" | 24 #include "l1aac_defty.h" |
| 28 #endif | 25 #endif |
| 29 | 26 |
| 30 typedef struct | 27 typedef struct |
| 31 { | 28 { |
| 32 UWORD8 enable; // activation of FACCH test | 29 UWORD8 enable; // activation of FACCH test |
| 474 API d_task_d; // 0x0800 (0) Downlink task command. | 471 API d_task_d; // 0x0800 (0) Downlink task command. |
| 475 API d_burst_d; // 0x0801 (1) Downlink burst identifier. | 472 API d_burst_d; // 0x0801 (1) Downlink burst identifier. |
| 476 API d_task_u; // 0x0802 (2) Uplink task command. | 473 API d_task_u; // 0x0802 (2) Uplink task command. |
| 477 API d_burst_u; // 0x0803 (3) Uplink burst identifier. | 474 API d_burst_u; // 0x0803 (3) Uplink burst identifier. |
| 478 API d_task_md; // 0x0804 (4) Downlink Monitoring (FB/SB) command. | 475 API d_task_md; // 0x0804 (4) Downlink Monitoring (FB/SB) command. |
| 479 #if (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) | 476 #if (DSP >= 33) |
| 480 API d_background; // 0x0805 (5) Background tasks | 477 API d_background; // 0x0805 (5) Background tasks |
| 481 #else | 478 #else |
| 482 API d_reserved; // 0x0805 (5) Reserved | 479 API d_reserved; // 0x0805 (5) Reserved |
| 483 #endif | 480 #endif |
| 484 API d_debug; // 0x0806 (6) Debug/Acknowledge/general purpose word. | 481 API d_debug; // 0x0806 (6) Debug/Acknowledge/general purpose word. |
| 554 API d_task_d; // 0x0828 (0) Downlink task command. | 551 API d_task_d; // 0x0828 (0) Downlink task command. |
| 555 API d_burst_d; // 0x0829 (1) Downlink burst identifier. | 552 API d_burst_d; // 0x0829 (1) Downlink burst identifier. |
| 556 API d_task_u; // 0x082A (2) Uplink task command. | 553 API d_task_u; // 0x082A (2) Uplink task command. |
| 557 API d_burst_u; // 0x082B (3) Uplink burst identifier. | 554 API d_burst_u; // 0x082B (3) Uplink burst identifier. |
| 558 API d_task_md; // 0x082C (4) Downlink Monitoring (FB/SB) task command. | 555 API d_task_md; // 0x082C (4) Downlink Monitoring (FB/SB) task command. |
| 559 #if (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) | 556 #if (DSP >= 33) |
| 560 API d_background; // 0x082D (5) Background tasks | 557 API d_background; // 0x082D (5) Background tasks |
| 561 #else | 558 #else |
| 562 API d_reserved; // 0x082D (5) Reserved | 559 API d_reserved; // 0x082D (5) Reserved |
| 563 #endif | 560 #endif |
| 564 API d_debug; // 0x082E (6) Debug/Acknowledge/general purpose word. | 561 API d_debug; // 0x082E (6) Debug/Acknowledge/general purpose word. |
| 565 API d_task_ra; // 0x082F (7) RA task command. | 562 API d_task_ra; // 0x082F (7) RA task command. |
| 566 | 563 |
| 567 #if (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) | 564 #if (DSP >= 33) |
| 568 API a_serv_demod[4]; // 0x0830 ( 8..11) Serv. cell demod. result, array of 4 words (D_TOA,D_PM,D_ANGLE,D_SNR). | 565 API a_serv_demod[4]; // 0x0830 ( 8..11) Serv. cell demod. result, array of 4 words (D_TOA,D_PM,D_ANGLE,D_SNR). |
| 569 API a_pm[3]; // 0x0834 (12..14) Power measurement results, array of 3 words. | 566 API a_pm[3]; // 0x0834 (12..14) Power measurement results, array of 3 words. |
| 570 API a_sch[5]; // 0x0837 (15..19) Header + SB information, array of 5 words. | 567 API a_sch[5]; // 0x0837 (15..19) Header + SB information, array of 5 words. |
| 571 #else | 568 #else |
| 572 API a_pm[3]; // ( 8..10) Power measurement results, array of 3 words. | 569 API a_pm[3]; // ( 8..10) Power measurement results, array of 3 words. |
| 1654 API d_thr_sid_ahs; // thresh detection SID frames AHS | 1651 API d_thr_sid_ahs; // thresh detection SID frames AHS |
| 1655 API d_thr_ratscch_marker; // thresh detection RATSCCH MARKER | 1652 API d_thr_ratscch_marker; // thresh detection RATSCCH MARKER |
| 1656 API d_thr_sp_dgr; // thresh detection SPEECH DEGRADED/NO_DATA | 1653 API d_thr_sp_dgr; // thresh detection SPEECH DEGRADED/NO_DATA |
| 1657 API d_thr_soft_bits; | 1654 API d_thr_soft_bits; |
| 1658 | 1655 |
| 1659 #if ((CODE_VERSION == SIMULATION) || (DSP != 37)) | 1656 #if ((CODE_VERSION == SIMULATION) || (DSP != 37)) |
| 1660 #if (MELODY_E2) | 1657 #if (MELODY_E2) |
| 1661 API d_melody_e2_osc_stop; | 1658 API d_melody_e2_osc_stop; |
| 1662 API d_melody_e2_osc_active; | 1659 API d_melody_e2_osc_active; |
| 1663 API d_melody_e2_semaphore; | 1660 API d_melody_e2_semaphore; |
| 1664 API a_melody_e2_osc[16][3]; | 1661 API a_melody_e2_osc[16][3]; |
| 1780 | 1777 |
| 1781 #if (W_A_AMR_THRESHOLDS) | 1778 #if (W_A_AMR_THRESHOLDS) |
| 1782 API d_holes[492]; | 1779 API d_holes[492]; |
| 1783 #if (CODE_VERSION == SIMULATION) || (DSP != 37) | 1780 #if (CODE_VERSION == SIMULATION) || (DSP != 37) |
| 1784 API a_d_macc_thr_afs[8]; // In ROM37 this is moved from 0x17F1 to 0x151E | 1781 API a_d_macc_thr_afs[8]; // In ROM37 this is moved from 0x17F1 to 0x151E |
| 1785 API a_d_macc_thr_ahs[6]; | 1782 API a_d_macc_thr_ahs[6]; |
| 1786 #else | 1783 #else |
| 1787 API d_holes_rom37[14]; // In ROM37 this is moved from 0x17F1 to 0x151E | 1784 API d_holes_rom37[14]; // In ROM37 this is moved from 0x17F1 to 0x151E |
| 1788 #endif | 1785 #endif |
| 1789 API d_one_hole[1]; | 1786 API d_one_hole[1]; |
| 1790 #else | 1787 #else |
| 2504 #endif | 2501 #endif |
| 2505 } | 2502 } |
| 2506 T_NDB_MCU_DSP; | 2503 T_NDB_MCU_DSP; |
| 2507 #endif | 2504 #endif |
| 2508 | 2505 |
| 2509 #if (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) | 2506 #if (DSP >= 34) |
| 2510 typedef struct | 2507 typedef struct |
| 2511 { | 2508 { |
| 2512 API_SIGNED d_transfer_rate; // 0x0C31 | 2509 API_SIGNED d_transfer_rate; // 0x0C31 |
| 2513 | 2510 |
| 2514 // Common GSM/GPRS | 2511 // Common GSM/GPRS |
| 3300 BOOL pwrc; // Flag used to reject serving pwr meas. on beacon. | 3297 BOOL pwrc; // Flag used to reject serving pwr meas. on beacon. |
| 3301 | 3298 |
| 3302 BOOL handover_fail_mode; // Flag used to indicate that the L1 wait for an handover fail request | 3299 BOOL handover_fail_mode; // Flag used to indicate that the L1 wait for an handover fail request |
| 3303 #if (AMR == 1) | 3300 #if (AMR == 1) |
| 3304 BOOL sync_amr; // Flag used to tell to the DSP that a new AMR paramters is ready in the NDB. | 3301 BOOL sync_amr; // Flag used to tell to the DSP that a new AMR paramters is ready in the NDB. |
| 3305 #endif // (AMR == 1) | 3302 #endif // (AMR == 1) |
| 3306 | 3303 |
| 3307 #if ((REL99 == 1) && (FF_BHO == 1)) | 3304 #if ((REL99 == 1) && (FF_BHO == 1)) |
| 3308 // For blind handover... | 3305 // For blind handover... |
| 3309 BOOL handover_type; | 3306 BOOL handover_type; |
| 3310 BOOL long_rem_handover_type; | 3307 BOOL long_rem_handover_type; |
| 3626 typedef struct | 3623 typedef struct |
| 3627 { | 3624 { |
| 3628 BOOL enabled; // TRUE if enabled, FALSE if disabled | 3625 BOOL enabled; // TRUE if enabled, FALSE if disabled |
| 3629 BOOL automatic_disable; // TRUE if vocoders are automatically disabld via a MPHC_STOP_DEDICATED_REQ, FALSE otherwise. | 3626 BOOL automatic_disable; // TRUE if vocoders are automatically disabld via a MPHC_STOP_DEDICATED_REQ, FALSE otherwise. |
| 3630 } T_L1A_VOCODER_CFG_GLOBAL; | 3627 } T_L1A_VOCODER_CFG_GLOBAL; |
| 3631 #endif // AUDIO_TASK == 1 | 3628 #endif // L1_VOCODER_IF_CHANGE == 1 |
| 3632 typedef struct | 3629 typedef struct |
| 3633 { | 3630 { |
| 3634 UWORD8 outen1; | 3631 UWORD8 outen1; |
| 3635 UWORD8 outen2; | 3632 UWORD8 outen2; |
| 3636 UWORD8 outen3; | 3633 UWORD8 outen3; |
| 3637 UWORD8 classD; | 3634 UWORD8 classD; |
| 3638 UWORD8 command_requested; /* updated in L1a task context*/ | 3635 UWORD8 command_requested; /* updated in L1a task context*/ |
| 3639 UWORD8 command_commited; /* updated in I2c ISR callback context*/ | 3636 UWORD8 command_commited; /* updated in I2c ISR callback context*/ |
| 3640 } T_OUTEN_CFG_TASK; | 3637 } T_OUTEN_CFG_TASK; |
| 3641 | 3638 |
| 3642 #endif //L1_VOCODER_IF_CHANGE == 1 | 3639 #endif // AUDIO_TASK == 1 |
| 3643 /***************************************************************************************/ | 3640 /***************************************************************************************/ |
| 3644 /* L1A global variable structure... */ | 3641 /* L1A global variable structure... */ |
| 3645 /***************************************************************************************/ | 3642 /***************************************************************************************/ |
| 3646 typedef struct | 3643 typedef struct |
| 3647 { | 3644 { |
