annotate gsm-fw/L1/audio_cust0/l1audio_cust.h @ 646:7310ce904148

gsm-fw/bsp/niq32.c: SIM hooked in
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 03 Sep 2014 22:27:24 +0000
parents d638de8cc6b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 /************* Revision Controle System Header *************
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 * GSM Layer 1 software
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 * L1AUDIO_CUST.H
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 *
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 * Filename l1audio_cust.h
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 * Copyright 2003 (C) Texas Instruments
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 *
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 ************* Revision Controle System Header *************/
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
10 #ifndef _L1AUDIO_CUST_H_
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
11 #define _L1AUDIO_CUST_H_
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
12
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 #if (AUDIO_TASK == 1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 #if (OP_RIV_AUDIO == 0)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 extern void vocoder_mute_dl (BOOL mute);
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 extern void vocoder_mute_ul (BOOL mute);
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 #if (MELODY_E1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 // Melody format E1 constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 // Number of oscillators (fixed value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 #define SC_NUMBER_OSCILLATOR 8
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 // Define the unit of the downloading time (fixed value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 #define SC_MELO_DOWNLOAD_TIME_UNIT 4 // unit = 20ms
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 #endif // MELODY_E1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 #if (VOICE_MEMO) || (SPEECH_RECO)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 // Voice memo constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 // Word to indicate the end of the speech data (fixed value).
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 #define SC_VM_END_MASK 0xFBFF
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41 #endif // VOICE_MEMO || SPEECH_RECO
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
42
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
43 #if (L1_VOICE_MEMO_AMR)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
44 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
45 // Voice memo amr constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
46 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
47
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
48 // Word to indicate the end of the speech data (fixed value).
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
49 #define SC_VM_AMR_END_MASK_SIZE 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
50 #define SC_VM_AMR_END_MASK 0xFF
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
51
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
52 #endif // L1_VOICE_MEMO_AMR
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
53
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
54 #if (SPEECH_RECO)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
55 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
56 // Speech recognition constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
57 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
58
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
59 // Error ID (fixed values)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
60 #define SC_NO_ERROR 0 // No error
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
61 #define SC_BAD_ACQUISITION 1 // Bad acquisition of the word. The word is too long or too short
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
62 #define SC_TIME_OUT 2 // The DSP task to acquire the word takes to much time
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
63 #define SC_BAD_UPDATE 3 // Bad update of the model. The model from the database is too different
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
64 // than the model built during the acquisition.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
65 #define SC_BAD_RECOGNITION 4 // This word is out of vocabulary or the best words are too close
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
66 #define SC_CTO_WORD 5 // A word generated by the CTO algorithm is the best word.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
67 #define SC_CHECK_ERROR 6 // The best word isn't the word to update.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
68
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
69 // Time out (fixed values)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
70 #define SC_SR_AQUISITION_TIME_OUT 867 // acquisition time out in fn unit (3s).
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71 #define SC_SR_UPDATE_TIME_OUT 500 // update time out in fn unit.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
72 #define SC_SR_PROCESSING_TIME_OUT 500 // processing time out in fn unit.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
73
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75 // CTO algorithm parameters (tuning value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76 #define SC_SR_MAX_WORDS_FOR_CTO 4 // Threshold to decide when the CTO algorithm is needed:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
77 // if the number of model is less 0r equal to this value, the CTO algo. is enabled.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
78
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
79 // model constant (fixed values)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
80 #define SC_SR_MODEL_FRAME_SIZE 16 // size of the model parameters per audio frames (20 ms).
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
81 #define SC_SR_MODEL_API_SIZE 1041 // size of the model corrsponding to the longest possible word (1,3 second):
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82 // 16 words frames* 1,3s/20ms + 1 = 1041
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
83 // the header word of the model gives the size of the model in model frame unit.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
84 #define SC_SR_MMI_DB_MODEL_SIZE SC_SR_MODEL_API_SIZE // maximum size of the model in the MMI database.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
85
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
86 // speech constant (fixed values)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
87 #define SC_SR_SPEECH_FRAME_SIZE 20 // size of the speech samples per audio frams (20ms)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
88
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
89 #define SC_SR_SPEECH_WORD_SIZE 65 // maximum size in speech frame size unit of the word to acquire
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
90 #define SC_SR_SPEECH_WORD_BEGIN_VAD_LATENCY 35 // time in speech frame size unit to detect that the word begins
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
91 #define SC_SR_SPEECH_WORD_END_VAD_LATENCY 35 // time in speech frame size unit to detect that the word is finished
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
92 #define SC_SR_SPEECH_WORD_BEGIN_MARGIN 5 // time in speech frame size unit to add a beginning margin of the word
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
93 #define SC_SR_SPEECH_WORD_END_MARGIN 5 // time in speech frame size unit to add a end margin of the word
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
94 #define SC_SR_SPEECH_ENDING_DONE_MARGING 20 // time in speech frame size unit to have the word done status after the word ending status.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
96 #define SC_SR_MMI_2_L1_SPEECH_SIZE (SC_SR_SPEECH_WORD_BEGIN_MARGIN + SC_SR_SPEECH_WORD_SIZE + SC_SR_SPEECH_WORD_END_VAD_LATENCY + SC_SR_SPEECH_ENDING_DONE_MARGING) * SC_SR_SPEECH_FRAME_SIZE
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 // size of the speech buffer allocated by MMI to acquire the speech.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 #define SC_SR_MMI_DB_SPEECH_SIZE (SC_SR_SPEECH_WORD_BEGIN_MARGIN + SC_SR_SPEECH_WORD_SIZE + SC_SR_SPEECH_WORD_END_MARGIN) * SC_SR_SPEECH_FRAME_SIZE + 1 // size of the speech buffer included in a MMI database
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99 // "+1" is for the END voice memo mask.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
100
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
101 // DSP Out-Of-Vocabulary constant (tuning value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
102 #define SC_SR_OOV_SFT_THR 10 // OOV rejection threhold (the lower more rejection)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
103 // if this value is equal to 0, ther's no rejection
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
104
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
105 #endif // SPEECH_RECO
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
106
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
107 #if (L1_NEW_AEC)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
108 // time interval between 2 AEC debug traces (in TDMA). Must be <= 127
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
109 #define SC_AEC_VISIBILITY_INTERVAL 52
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
110 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
111
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
112 #if (FIR)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
113 // FIR indication (fixed values)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
114 #define DL_FIR 1 // The DL FIR must be updated
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
115 #define UL_FIR 2 // The UL FIR must be updated
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
116 #define UL_DL_FIR 3 // The UL&DL FIR must be updated
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
117
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
118 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
119
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
120 // List of the error returned by the Cust_get_pointer function
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
121 #define DATA_AVAILABLE 0 // No error is occured
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
122 #define SESSION_ERROR 1 // Wrong session id
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
123 #define POINTER_ERROR 2 // Wrong ptr argument
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
124 #define DATA_AVAIL_ERROR 3 // No more data available
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
125 #define DATA_LAST 4 // Last buffer, no more data available after
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
126 #define WAIT_FOR_DATA 6
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
127
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
128 #if (AUDIO_MODE)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
129 #define GSM_ONLY 0 // GSM normal mode
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
130 #define BT_CORDLESS 1 // Bluetooth cordless mode
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
131 #define BT_HEADSET 2 // Bluetooth headset mode
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
132 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
133
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
134 #if (MELODY_E2)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
135 #define SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT 8 // Maximum number of instruments allowed to play in thesame time
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
136 // (Fixed value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
137 #define SC_AUDIO_MELODY_E2_MAX_SIZE_OF_INSTRUMENT (3807 - C_DEBUG_BUFFER_SIZE)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
138 // Melody E2 instrument wave table size in the API memory
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
139 // (fixed value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
140 #define SC_AUDIO_MELODY_E2_MAX_SIZE_OF_DSP_TRACE (C_DEBUG_BUFFER_SIZE + 1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
141 // DSP API buffer trace size (fixed value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
142
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
143 // Note :the melody E2 instrument are overlayed with the DSP buffer trace. The size ofthe trace buffer can
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
144 // change in order to increase the DSP tracability. In all case, the following rules need to be followed
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
145 // (when melody E2 is activated):
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
146 // size of the E2 instruments buffer + size of DSP trace buffer = 2049
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
147 // size of the E2 instrument buffers > 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
148 // size of DSP trace buffer > 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
149 #endif
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
150
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
151 #endif // AUDIO_TASK
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
152
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
153 // Number of coefficient for each FIR (fixed value)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
154 #define MAX_FIR_COEF 31
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
155
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
156 // Triton Audio ON/OFF Changes
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
157 #if (L1_AUDIO_MCU_ONOFF == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
158 // Num of radio frames the audio path is kept on after all
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
159 // users have requested turn off
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
160 // 0..255
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
161 #define L1_AUDIO_ON2OFF_UL_HOLD_TIME 20 //127
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
162 #define L1_AUDIO_ON2OFF_DL_HOLD_TIME 20 //127
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
163 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
164
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
165
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
166 #endif // _L1AUDIO_CUST_H_