FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/gtt_include/l1gtt_varex.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 * L1GTT_VAREX.H | |
4 * | |
5 * Filename %M% | |
6 * Copyright 2003 (C) Texas Instruments | |
7 * | |
8 ************* Revision Controle System Header *************/ | |
9 | |
10 | |
11 #if (L1_GTT == 1) | |
12 | |
13 #ifdef L1GTT_ASYNC_C | |
14 // Every BUFFER are associated with a variable | |
15 T_TTY_FIFO_struct *TTY_FIFO_1; | |
16 T_TTY_FIFO_struct *TTY_FIFO_2; | |
17 T_TTY_FIFO_struct *TTY_FIFO_3; | |
18 T_TTY_FIFO_struct *TTY_FIFO_4; | |
19 | |
20 /* state variables for CTM transmitter and CTM receiver,respectively */ | |
21 tx_state_t tx_state; | |
22 rx_state_t rx_state; | |
23 | |
24 /* State variables for the Baudot decoder and encoder,respectively. */ | |
25 baudot_decode_state_t baudot_decode_state; | |
26 baudot_encode_state_t baudot_encode_state; | |
27 | |
28 | |
29 /* Define fifo state variables */ | |
30 WORD16 baudotOutTTYCodeFifoLength = 50; | |
31 fifo_state_t baudotOutTTYCodeFifoState; | |
32 fifo_state_t signalFifoState; | |
33 fifo_state_t ctmOutTTYCodeFifoState; | |
34 fifo_state_t baudotToCtmFifoState; | |
35 fifo_state_t ctmToBaudotFifoState; | |
36 | |
37 WORD16 cntFramesSinceBurstInit = 0; | |
38 WORD16 cntSamplesSinceLastBypassFromCTM = 0; | |
39 WORD16 cntTransmittedEnquiries = 0; | |
40 BOOL ctmFromFarEndDetected = false; | |
41 BOOL ctmCharacterTransmitted = false; | |
42 BOOL enquiryFromFarEndDetected = false; | |
43 BOOL ctmTransmitterIsIdle = true; | |
44 BOOL earlyMutingRequired = false; | |
45 BOOL transparentMode = false; | |
46 | |
47 /* Used to keep track of time since last Enquiry burst. | |
48 * Currently 1 cycle == 120 ms */ | |
49 WORD16 cyclesSinceLastEnquiryBurst = 0; | |
50 | |
51 /* Stores the output from baudot encoder in downlink */ | |
52 fifo_state_t baudotCodeFifoState; | |
53 /* Store the output from CTM transmitter in uplink */ | |
54 fifo_state_t ctmCodeULFifoState; | |
55 | |
56 WORD16 cntSamplesSinceEnquiryDetected = 0; | |
57 | |
58 /* Shared global buffers between L1S and l1gtt_main_processing. */ | |
59 fifo_state_t global_ul; | |
60 fifo_state_t global_dl; | |
61 | |
62 int init_complete = 0; | |
63 | |
64 /* Array containing silence data for muting uplink bypass path. */ | |
65 WORD16 silence_data[]={0,0,0,0,0,0,0,0}; | |
66 | |
67 /* Global flag to indicate that uplink bypass path is to be muted */ | |
68 int begin_ul_bypasspath_mute = 0; | |
69 | |
70 /* Counter for keeping track of amount of silence written to DSP task 2. */ | |
71 int silence_pad_time = 0; | |
72 | |
73 #else | |
74 extern T_TTY_FIFO_struct *TTY_FIFO_1; | |
75 extern T_TTY_FIFO_struct *TTY_FIFO_2; | |
76 extern T_TTY_FIFO_struct *TTY_FIFO_3; | |
77 extern T_TTY_FIFO_struct *TTY_FIFO_4; | |
78 extern tx_state_t tx_state; | |
79 extern rx_state_t rx_state; | |
80 extern baudot_decode_state_t baudot_decode_state; | |
81 extern baudot_encode_state_t baudot_encode_state; | |
82 extern WORD16 baudotOutTTYCodeFifoLength; | |
83 extern fifo_state_t baudotOutTTYCodeFifoState; | |
84 extern fifo_state_t signalFifoState; | |
85 extern fifo_state_t ctmOutTTYCodeFifoState; | |
86 extern fifo_state_t baudotToCtmFifoState; | |
87 extern fifo_state_t ctmToBaudotFifoState; | |
88 extern WORD16 cntFramesSinceBurstInit; | |
89 extern WORD16 cntSamplesSinceLastBypassFromCTM; | |
90 extern WORD16 cntTransmittedEnquiries; | |
91 extern BOOL ctmFromFarEndDetected; | |
92 extern BOOL ctmCharacterTransmitted; | |
93 extern BOOL enquiryFromFarEndDetected; | |
94 extern BOOL ctmTransmitterIsIdle; | |
95 extern BOOL earlyMutingRequired; | |
96 extern BOOL transparentMode; | |
97 extern WORD16 cyclesSinceLastEnquiryBurst; | |
98 extern fifo_state_t baudotCodeFifoState; | |
99 extern fifo_state_t ctmCodeULFifoState; | |
100 extern WORD16 cntSamplesSinceEnquiryDetected; | |
101 extern fifo_state_t global_ul; | |
102 extern fifo_state_t global_dl; | |
103 extern int init_complete; | |
104 extern WORD16 silence_data[]; | |
105 extern int begin_ul_bypasspath_mute; | |
106 extern int silence_pad_time; | |
107 #endif | |
108 | |
109 #endif |