annotate gsm-fw/L1/audio_include/l1audio_const.h @ 631:7cf154cd3891

gsm-fw/sysglue: prep for building flashable images
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 01 Sep 2014 17:04:19 +0000
parents 45bf440cc677
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_CONST.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_const.h
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
6 * Copyright 2003 (C) Texas Instruments
519
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
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 #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
11
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
12 // DRC API base address
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
13 #define C_DRC_API_BASE_ADDRESS 0x161E
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
14
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 // LAYER 1 Synchronous audio process name.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
19 #define NBR_AUDIO_MANAGER 37 // Number of L1S audio managers
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 #define L1S_KEYBEEP_STATE 0 // l1s_keybeep_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 #define L1S_TONE_STATE 1 // l1s_tone_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 #define L1S_MELODY0_STATE 2 // l1s_melody0_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 #define L1S_MELODY1_STATE 3 // l1s_melody1_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 #define L1S_VM_PLAY_STATE 4 // l1s_vm_play_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 #define L1S_VM_RECORD_STATE 5 // l1s_vm_record_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 #define L1S_TONE_UL_STATE 6 // l1s_tone_ul_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 #define L1S_SR_ENROLL_STATE 7 // l1s_sr_enroll_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 #define L1S_SR_UPDATE_STATE 8 // l1s_sr_update_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30 #define L1S_SR_RECO_STATE 9 // l1s_sr_reco_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 #define L1S_SR_PROCESSING_STATE 10 // l1s_sr_processing_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32 #define L1S_SR_SPEECH_STATE 11 // l1s_sr_speech_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 #define L1S_AEC_STATE 12 // l1s_aec_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 #define L1S_AUDIO_MODE_STATE 13 // l1s_audio_mode_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 #define L1S_MELODY0_E2_STATE 14 // l1s_melody0_e2_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 #define L1S_MELODY1_E2_STATE 15 // l1s_melody1_e2_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37 #define L1S_VM_AMR_PLAY_STATE 16 // l1s_vm_amr_play_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 #define L1S_VM_AMR_RECORD_STATE 17 // l1s_vm_amr_record_manager()
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 #define L1S_CPORT_STATE 18 // l1s_cport_manager()
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
40 #define L1S_AUDIO_ONOFF_STATE 19 // l1s_audio_onoff_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
41 #define L1S_STEREOPATH_DRV_STATE 20 // l1s_stereopath_drv_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
42 #define L1S_MP3_STATE 21 // l1s_mp3_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
43 #define L1S_ANR_STATE 22 // l1s_anr_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
44 #define L1S_IIR_STATE 23 // l1s_iir_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
45 #define L1S_LIMITER_STATE 24 // l1s_limiter_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
46 #define L1S_ES_STATE 25 // l1s_es_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
47 #define L1S_MIDI_STATE 26 // l1s_midi_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
48 #define L1S_AGC_UL_STATE 27 // l1s_agc_ul_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
49 #define L1S_AGC_DL_STATE 28 // l1s_agc_dl_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
50 #define L1S_WCM_STATE 29 // l1s_wcm_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
51 #define L1S_DRC_STATE 30 // l1s_drc_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
52 #if (L1_AAC == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
53
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
54 //added from e-sample for AAC
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
55 #define L1S_AAC_STATE 31 // l1s_aac_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
56 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
57 #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
58 #define L1S_AUDIO_UL_ONOFF_STATE 32 // l1s_audio_ul_onoff_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
59 #define L1S_AUDIO_DL_ONOFF_STATE 33 // l1s_audio_dl_onoff_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
60 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
61 #define L1S_PCM_DOWNLOAD_STATE 34 // l1s_pcm_download_manager()
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
62 #define L1S_PCM_UPLOAD_STATE 35 // l1s_pcm_upload_manager()
604
45bf440cc677 gsm-fw/L1/audio_include: initial preen over the imported LoCosto headers
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 603
diff changeset
63 #define L1S_FIR_STATE 36 // l1s_fir_manager()
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
64
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
65
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
66 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
67 // MCU<->DSP communication bit field.
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
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
70 // bit in d_tch_mode for audio features
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71 #define B_VOICE_MEMO_DTX (TRUE_L << 5)
604
45bf440cc677 gsm-fw/L1/audio_include: initial preen over the imported LoCosto headers
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 603
diff changeset
72 #if (DSP >= 34)
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
73 #define B_VM_VOCODER_SELECT (TRUE_L << 6)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76 // bits in d_toneskb_status
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
77 #define B_TONE (TRUE_L << 0) // Indicate if the DSP tone task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
78 #define B_KEYBEEP (TRUE_L << 1) // Indicate if the DSP Keybeep task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
79 #define B_VM_RECORD_ON_GOING (TRUE_L << 2) // Indicate if the DSP recording speech task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
80 #define B_VM_PLAY_ON_GOING (TRUE_L << 3) // Indicate if the DSP playing task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
81 #define B_VM_AMR_RECORD_ON_GOING (TRUE_L << 2) // Indicate if the DSP recording speech amr task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82 #define B_VM_AMR_PLAY_ON_GOING (TRUE_L << 3) // Indicate if the DSP playing amr task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
83 #define B_SR_ENROLL_TASK (TRUE_L << 4) // Indicate if the DSP enroll task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
84 #define B_SR_UPDATE_TASK (TRUE_L << 5) // Indicate if the DSP update task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
85 #define B_SR_RECO_TASK (TRUE_L << 6) // Indicate if the DSP reco task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
86 #define B_SR_PROCESSING_TASK (TRUE_L << 7) // Indicate if the DSP processing task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
87 #define B_SR_ALIGNMENT_TASK (TRUE_L << 8) // Indicate if the DSP alignment task is running
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
88 #define B_IT_COM_REQ (TRUE_L << 9) // Indicate that the DSP requests an IT com for the next TDMA
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
89 #define B_AUDIO_ON_STATUS (TRUE_L << 14) // Set to 1 if DSP doesn'tpower OFF audio ABB if no DSP audio activity
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
90
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
91 #if(L1_PCM_EXTRACTION)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
92 #define B_PCM_UPLOAD_ON_GOING (TRUE_L << 4)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
93 #define B_PCM_DOWNLOAD_ON_GOING (TRUE_L << 5)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
94 #endif
519
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 // bits in d_toneskb_init
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 #define B_VM_RECORD_START (TRUE_L << 2) // Start the DSP voice memo recording task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 #define B_VM_RECORD_STOP (TRUE_L << 3) // Stop the DSP voice memo recording task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99 #define B_VM_PLAY_START (TRUE_L << 4) // Start the DSP voice memo playing task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
100 #define B_VM_PLAY_STOP (TRUE_L << 5) // Stop the DSP voice memo playing task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
101 #define B_VM_TONE_UL (TRUE_L << 6) // Generate the tone on the UL path
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
102 #define B_VM_AMR_RECORD_START (TRUE_L << 2)// Start the DSP voice memo amr recording task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
103 #define B_VM_AMR_RECORD_STOP (TRUE_L << 3)// Stop the DSP voice memo amr recording task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
104 #define B_VM_AMR_PLAY_START (TRUE_L << 4)// Start the DSP voice memo amr playing task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
105 #define B_VM_AMR_PLAY_STOP (TRUE_L << 5)// Stop the DSP voice memo amr playing task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
106 #define B_SR_ENROLL (TRUE_L << 7) // Start the DSP speech reco enroll task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
107 #define B_SR_UPDATE (TRUE_L << 8) // Start the DSP speech reco update task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
108 #define B_SR_RECO (TRUE_L << 9) // Start the DSP speech reco task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
109 #define B_SR_PROCESSING (TRUE_L << 10) // Start the DSP speech reco processing task
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
110 #define B_SR_STOP (TRUE_L << 11) // Stop the current DSP speech reco task
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 #define B_MELO (TRUE_L << 13) // Start the DSP melody module if it's not started
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
113 #define B_AUDIO_ON_START (TRUE_L << 14) // Use to start ABB audio and to not stop it when
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
114 // no audio activity on DSP side
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
115 #define B_AUDIO_OFF_STOP (TRUE_L << 15) // Use to stop ABB audio when no audio activity
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
116
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
117 #if(L1_PCM_EXTRACTION)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
118 #define B_PCM_UPLOAD_START (TRUE_L << 7)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
119 #define B_PCM_UPLOAD_STOP (TRUE_L << 8)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
120 #define B_PCM_DOWNLOAD_START (TRUE_L << 9)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
121 #define B_PCM_DOWNLOAD_STOP (TRUE_L << 10)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
122 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
123
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
124 #if (L1_CPORT == 1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
125 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
126 // C_PORT constant.
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
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
129 #define CPORT_READ_FLAG_OFFSET 11 // offset in configuration field of the "read register" bit
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
130 #define CPORT_REG_NB_OFFSET 12 // offset in configuration field of the register number
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
131 #define CPORT_READ_MASK 0xF800 // mask to get the read flag and the read reg id in the d_cport_status field
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
132
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
133 // write register defines
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
134 #define CPORT_W_NONE 0 // do not write anything
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
135 #define CPORT_W_CTRL 1 // write CTRL, set bit 0 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
136 #define CPORT_W_CPCFR1 1 << 1 // write CPCFR1, set bit 1 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
137 #define CPORT_W_CPCFR2 1 << 2 // write CPCFR2, set bit 2 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
138 #define CPORT_W_CPCFR3 1 << 3 // write CPCFR3, set bit 3 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
139 #define CPORT_W_CPCFR4 1 << 4 // write CPCFR4, set bit 4 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
140 #define CPORT_W_CPTCTL 1 << 5 // write CPTCTL, set bit 5 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
141 #define CPORT_W_CPTTADDR 1 << 6 // write CPTTADDR, set bit 6 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
142 #define CPORT_W_CPTDAT 1 << 7 // write CPTDAT, set bit 7 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
143 #define CPORT_W_CPTVS 1 << 8 // write CPTVS, set bit 8 of configuration to 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
144
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
145 // read register defines
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
146 #define CPORT_R_NONE 0 // do not read anything
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
147 // for each of the following defines, set read flag (bit 11) to 1 and set reg_nb (bits 12..15)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
148 #define CPORT_R_CTRL (0 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
149 #define CPORT_R_CPCFR1 (1 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
150 #define CPORT_R_CPCFR2 (2 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
151 #define CPORT_R_CPCFR3 (3 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
152 #define CPORT_R_CPCFR4 (4 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
153 #define CPORT_R_CPTCTL (5 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
154 #define CPORT_R_CPTTADDR (6 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
155 #define CPORT_R_CPTDAT (7 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
156 #define CPORT_R_CPTVS (8 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
157 #define CPORT_R_STATUS (9 << CPORT_REG_NB_OFFSET) | (1 << CPORT_READ_FLAG_OFFSET)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
158
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
159 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
160
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
161
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
162 #if (MELODY_E1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
163 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
164 // Melody constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
165 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
166
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
167 // Word to indicate that the oscillator must be stopped ASAP
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
168 #define SC_END_OSCILLATOR_MASK 0xfffe
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
169
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
170 // Description of the ml_ocscil_x field (x= 0...SC_NUMBER_OSCILLATOR)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
171 #define SC_MELO_OSCILLATOR_USED_MASK 0xff00
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
172 #define SC_MELO_OSCILLATOR_USED_SHIFT SC_NUMBER_OSCILLATOR
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
173
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
174 // Description of the ml_time_offset field
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
175 #define SC_MELO_TIME_OFFSET_MASK 0x00ff
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
176 #define SC_MELO_TIME_OFFSET_SHIFT 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
177
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
178 // Description of the ml_load1 bit
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
179 #define SC_MELO_LOAD1_MASK 0x0010
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
180 #define SC_MELO_LOAD1_SHIFT 4
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
181
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
182 // Description of the ml_load2 bit
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
183 #define SC_MELO_LOAD2_MASK 0x0020
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
184 #define SC_MELO_LOAD2_SHIFT 5
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
185
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
186 // Description of the ml_synchro bit
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
187 #define SC_MELO_SYNCHRO_MASK 0x0001
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
188 #define SC_MELO_SYNCHRO_SHIFT 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
189
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
190 // Description of the ml_length field
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
191 #define SC_MELO_LENGTH_MASK 0xffc0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
192 #define SC_MELO_LENGTH_SHIFT 6
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
193 #endif // MELODY_E1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
194
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
195 #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
196 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
197 // Voice memo constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
198 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
199
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
200 // Communication DSP<->MCU via the a_du_x buffer:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
201
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
202 // Mask for the bit to indicate:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
203 // in VM play: if the DSP requests a new block
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
204 // in VM record: if the DSP has a new block
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
205 #define B_BLOCK_READY (TRUE_L<<10)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
206
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
207 // Mask for the bit of the a_du_x buffer to indicate if the block is the speech or noise
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
208 #define B_VM_SPEECH (TRUE_L<<15)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
209
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
210 // Size of the a_du_x buffer when the sample is a noise:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
211 #define SC_VM_NOISE_SAMPLE 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
212
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
213 // Size of the a_du_x buffer when the sample is a speech:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
214 #define SC_VM_SPEECH_SAMPLE 20
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
215 #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
216
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
217 #if (L1_PCM_EXTRACTION)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
218 #define B_PCM_DOWNLOAD_READY (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
219 #define B_PCM_UPLOAD_READY (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
220 #define SC_PCM_DOWNLOAD_SAMPLE 160
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
221 #define SC_PCM_UPLOAD_SAMPLE 160
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
222 #define B_PCM_UPLOAD_ERROR (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
223 #define B_PCM_DOWNLOAD_ERROR (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
224 #endif /* L1_PCM_EXTRACTION */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
225
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
226 #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
227 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
228 // 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
229 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
230
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
231 #define SC_VM_AMR_HEADER_SIZE 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
232
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
233 // Communication DSP<->MCU via the a_du_x buffer:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
234 #define SC_RX_TX_TYPE_MASK (7<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
235
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
236 // Communication DSP<->MCU via d_amms_ul_voc and b_amms_channel_type
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
237 #define SC_CHAN_TYPE_MASK 7
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
238
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
239 // RX_TYPE or TX_TYPE (See 06.93)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
240 #define SC_VM_AMR_RXTX_SPEECH_GOOD (0<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
241 #define SC_VM_AMR_RXTX_SPEECH_DEGRADED (1<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
242 #define SC_VM_AMR_RXTX_ONSET (2<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
243 #define SC_VM_AMR_RXTX_SPEECH_BAD (3<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
244 #define SC_VM_AMR_RXTX_SID_FIRST (4<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
245 #define SC_VM_AMR_RXTX_SID_UPDATE (5<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
246 #define SC_VM_AMR_RXTX_SID_BAD (6<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
247 #define SC_VM_AMR_RXTX_NO_DATA (7<<3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
248
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
249 // sample type for ONSET insertion in NO_SPEECH to SPEECH transition
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
250 #define SC_VM_AMR_SPEECH 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
251 #define SC_VM_AMR_NOISE 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
252 #define SC_VM_AMR_NO_DATA 2
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
253 #define SC_VM_AMR_ONSET 3
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
254
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
255 // Speech channel type
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
256 #define SC_VM_AMR_SPEECH_475 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
257 #define SC_VM_AMR_SPEECH_515 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
258 #define SC_VM_AMR_SPEECH_59 2
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
259 #define SC_VM_AMR_SPEECH_67 3
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
260 #define SC_VM_AMR_SPEECH_74 4
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
261 #define SC_VM_AMR_SPEECH_795 5
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
262 #define SC_VM_AMR_SPEECH_102 6
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
263 #define SC_VM_AMR_SPEECH_122 7
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
264
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
265 // Size of data bits in the a_du_x buffer when the sample is SPEECH
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
266 // a_du_x buffer contains header + 2 non-used words after header + data_bits => recorded size is DATA_SIZE + 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
267 #define SC_VM_AMR_SPEECH_475_DATA_SIZE 12
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
268 #define SC_VM_AMR_SPEECH_515_DATA_SIZE 13
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
269 #define SC_VM_AMR_SPEECH_59_DATA_SIZE 15
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
270 #define SC_VM_AMR_SPEECH_67_DATA_SIZE 17
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
271 #define SC_VM_AMR_SPEECH_74_DATA_SIZE 19
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
272 #define SC_VM_AMR_SPEECH_795_DATA_SIZE 20
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
273 #define SC_VM_AMR_SPEECH_102_DATA_SIZE 26
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
274 #define SC_VM_AMR_SPEECH_122_DATA_SIZE 31
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
275
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
276 // Size of the a_du_x buffer when the sample is SID_FIRST:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
277 #define SC_VM_AMR_SID_FIRST_DATA_SIZE 5
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
278
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
279 // Size of the a_du_x buffer when the sample is SID_UPDATE:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
280 #define SC_VM_AMR_SID_UPDATE_DATA_SIZE 5
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
281
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
282 // Size of the a_du_x buffer when the sample is SID_BAD:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
283 #define SC_VM_AMR_SID_BAD_DATA_SIZE 5
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
284
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
285 // Size of the a_du_x buffer when the sample is NO_DATA:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
286 #define SC_VM_AMR_NO_DATA_DATA_SIZE 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
287
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
288 // Size of the a_du_x buffer when the sample is ONSET:
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
289 #define SC_VM_AMR_ONSET_DATA_SIZE 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
290
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
291 #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
292
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
293 #if (SPEECH_RECO)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
294 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
295 // Speech recognition constant.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
296 //----------------------------------------
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
297
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
298 // d_sr_status bit field
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
299 #define B_BAD_ACQUISITION (TRUE_L << 8)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
300 #define B_GOOD_ACQUISITION (TRUE_L << 9)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
301 #define B_BAD_UPDATE (TRUE_L << 10)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
302 #define B_GOOD_UPDATE (TRUE_L << 11)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
303
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
304 // d_sr_status VAD indication
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
305 #define SC_SR_WORD_MASK 0x00FF
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
306 #define SC_SR_WORD_SEARCHING 0
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
307 #define SC_SR_WORD_BEGINNING 1
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
308 #define SC_SR_WORD_ON_GOING 2
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
309 #define SC_SR_WORD_ENDING 3
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
310 #define SC_SR_WORD_DONE 4
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
311
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
312 #endif // SPEECH_RECO
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
313
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
314 #if (L1_AEC == 1)
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
315 #define B_AEC_ACK (TRUE_L << 0) // Bit set by the MCU to indicate a new AEC settings and
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
316 // clear by the DSP to confirm the new settings.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
317 #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
318 #define B_AEC_VISIBILITY (TRUE_L << 9) // Bit set by the MCU to have internal output values of AEC copied in API
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
319 #define SC_AEC_VISIBILITY_SHIFT (9)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
320 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
321
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
322 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
323
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
324
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
325 #if (W_A_DSP_SR_BGD)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
326 #define C_BGD_RECOGN 5 // TEMPORARY: DSP Background recognition task code (also used for bitmaps).
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
327 #define C_BGD_ALIGN 6 // TEMPORARY: DSP Background alignement
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
328 // bits in d_gsm_bgd_mgt - background task management
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
329 #define B_DSPBGD_RECO 1 // start of reco in dsp background
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
330 #define B_DSPBGD_UPD 2 // start of alignement update in dsp background
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
331 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
332 #if (AUDIO_MODE)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
333 #define B_GSM_ONLY ((TRUE_L << 13) | (TRUE_L << 11)) // GSM normal mode
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
334 #define B_BT_CORDLESS (TRUE_L << 12) // Bluetooth cordless mode
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
335 #define B_BT_HEADSET (TRUE_L << 14) // Bluetooth headset mode
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
336 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
337
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
338 #define SC_AUDIO_MCU_API_BEGIN_ADDRESS (0xFFD00000) // Start address of the API memory in MCU side
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
339 #define SC_AUDIO_DSP_API_BEGIN_ADDRESS (0x0800) // Start address o fthe API memory in DSP side
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
340
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
341 #if (MELODY_E2)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
342 // Number of oscillator available in the melody E2
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
343 #define SC_MELODY_E2_NUMBER_OF_OSCILLATOR (16)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
344
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
345 // Code of extension for data=time
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
346 #define SC_TIME_CODE_OF_EXTENSION (1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
347
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
348 // Position of the GlobalTimeFactor parameter
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
349 #define SC_MELODY_E2_GLOBALTIMEFACTOR_MASK (0xFF)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
350 #define SC_MELODY_E2_GLOBALTIMEFACTOR_SHIFT (0)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
351
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
352 // Position of the Number of instrument parameter
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
353 #define SC_MELODY_E2_NUMBEROFINSTRUMENT_MASK (0xFF)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
354 #define SC_MELODY_E2_NUMBEROFINSTRUMENT_SHIFT (0)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
355
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
356 // Position of the extension flag
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
357 #define SC_MELODY_E2_EXTENSION_FLAG_MASK (0x80)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
358 #define SC_MELODY_E2_EXTENSION_FLAG_SHIFT (7)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
359
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
360 // Position of the code of extension
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
361 #define SC_MELODY_E2_CODE_OF_EXTENSION_MASK (0x70)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
362 #define SC_MELODY_E2_CODE_OF_EXTENSION_SHIFT (4)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
363
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
364 // Position of data time
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
365 #define SC_MELODY_E2_DATA_TIME_MSB_MASK (0x07)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
366 #define SC_MELODY_E2_DATA_TIME_MSB_SHIFT (0)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
367
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
368 // Position of data time
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
369 #define SC_MELODY_E2_DATA_TIME_LSB_MASK (0xFF00)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
370 #define SC_MELODY_E2_DATA_TIME_LSB_SHIFT (8)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
371
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
372 // Position of the Delta Time
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
373 #define SC_MELODY_E2_DELTA_TIME_MASK (0x7F)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
374 #define SC_MELODY_E2_DELTA_TIME_SHIFT (0)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
375
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
376 // Mask of the semaphore
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
377 #define SC_MELODY_E2_SEMAPHORE_MASK (0x0001)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
378
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
379 // Maximum size of the header of the melody E2
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
380 #define SC_MELODY_E2_MAXIMUM_HEADER_SIZE (3 + SC_AUDIO_MELODY_E2_MAX_NUMBER_OF_INSTRUMENT)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
381
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
382 // Maximum number of extension
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
383 #define SC_MELODY_E2_MAXIMUM_NUMBER_OF_EXTENSION (2)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
384 #endif // MELODY_E2
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
385
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
386 // Selection of the melody format
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
387 #define NO_MELODY_SELECTED (0)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
388 #define MELODY_E0_SELECTED (1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
389 #define MELODY_E1_SELECTED (2)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
390 #define MELODY_E2_SELECTED (3)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
391
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
392 #if (L1_STEREOPATH == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
393 // configuration
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
394 #define AUDIO_SP_SELF_CONF 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
395 #define AUDIO_SP_MIDI_CONF 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
396 #define AUDIO_SP_MP3_CONF 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
397 #define AUDIO_SP_EXTAUDIO_CONF 3
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
398
604
45bf440cc677 gsm-fw/L1/audio_include: initial preen over the imported LoCosto headers
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 603
diff changeset
399 #if (ANALOG == 3)
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
400 // sampling frequency
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
401 #define AUDIO_SP_FREQ_8 7
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
402 #define AUDIO_SP_FREQ_11 6
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
403 #define AUDIO_SP_FREQ_16 5
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
404 #define AUDIO_SP_FREQ_22 4
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
405 #define AUDIO_SP_FREQ_32 3
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
406 #define AUDIO_SP_FREQ_44 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
407 #define AUDIO_SP_FREQ_48 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
408 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
409
604
45bf440cc677 gsm-fw/L1/audio_include: initial preen over the imported LoCosto headers
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 603
diff changeset
410 #if (ANALOG == 11 || CODE_VERSION == SIMULATION)
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
411 // sampling frequency index for Triton. This would be set in the
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
412 //SRW[0:3] bits of the CTRL5 register.
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
413 #define AUDIO_SP_FREQ_8 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
414 #define AUDIO_SP_FREQ_11 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
415 #define AUDIO_SP_FREQ_12 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
416 #define AUDIO_SP_FREQ_16 3
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
417 #define AUDIO_SP_FREQ_22 4
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
418 #define AUDIO_SP_FREQ_24 5
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
419 #define AUDIO_SP_FREQ_32 6
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
420 #define AUDIO_SP_FREQ_44 7
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
421 #define AUDIO_SP_FREQ_48 8
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
422 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
423
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
424 // DMA allocation
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
425 #define AUDIO_SP_DMA_ALLOC_MCU 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
426 #define AUDIO_SP_DMA_ALLOC_DSP 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
427
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
428 // Data type
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
429 #define AUDIO_SP_DATA_S8 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
430 #define AUDIO_SP_DATA_S16 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
431 #define AUDIO_SP_DATA_S32 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
432
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
433 // Source port
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
434 #define AUDIO_SP_SOURCE_IMIF 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
435 #define AUDIO_SP_SOURCE_API 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
436 #if (CHIPSET == 15)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
437 //In Locosto, EMIF is also a source port for the audio
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
438 #define AUDIO_SP_SOURCE_EMIF 4
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
439 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
440
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
441 // output type
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
442 #define AUDIO_SP_MONO_OUTPUT 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
443 #define AUDIO_SP_STEREO_OUTPUT 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
444
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
445 // feature identifier
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
446 #define AUDIO_SP_MIDI_ID 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
447 #define AUDIO_SP_EXT_AUDIO_ID 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
448 #define AUDIO_SP_MP3_ID 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
449 #define AUDIO_SP_TESTS_ID 3
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
450 #if (L1_AAC == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
451 #define AUDIO_SP_AAC_ID 4 //added for AAC
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
452 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
453
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
454 // Pattern
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
455 #define AUDIO_SP_SILENCE_PATTERN 0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
456 #define AUDIO_SP_SINUS1_PATTERN 1
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
457 #define AUDIO_SP_SINUS2_PATTERN 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
458 #define AUDIO_SP_SINUS3_PATTERN 3
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
459
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
460 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
461
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
462 #endif // AUDIO_TASK
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
463
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
464 #if (DSP == 17) || (DSP == 32)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
465 #define B_FIR_START (TRUE_L << 0) // Bit set by the MCU to start the FIR task for the DSP code 32 and 17.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
466 #endif
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
467
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
468 #define B_FIR_LOOP (TRUE_L << 1) // Bit set by the MCU to close the loop between the audio UL and DL path.
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
469 // This features is used to find the FIR coefficient.
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
470
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
471 /*************************************/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
472 /* ACOUSTIC interface */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
473 /*************************************/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
474
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
475 /* Control values */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
476 /*----------------*/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
477
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
478 #define B_ANR_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
479 #define B_ANR_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
480 #define B_ANR_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
481
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
482 #define B_IIR_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
483 #define B_IIR_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
484 #define B_IIR_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
485
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
486 #define B_AGC_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
487 #define B_AGC_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
488 #define B_AGC_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
489
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
490 #define B_WCM_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
491 #define B_WCM_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
492 #define B_WCM_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
493
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
494 #if (L1_DRC == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
495 #define DRC_LPF_LENGTH 17
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
496 #define DRC_BPF_LENGTH 17
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
497 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
498
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
499 #define B_DRC_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
500 #define B_DRC_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
501 #define B_DRC_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
502
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
503 #define B_LIM_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
504 #define B_LIM_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
505 #define B_LIM_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
506 #define B_LIM_UPDATE (TRUE_L << 3)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
507
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
508 #define B_ES_ENABLE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
509 #define B_ES_DISABLE (TRUE_L << 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
510 #define B_ES_FULL_UPDATE (TRUE_L << 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
511
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
512 #if (L1_IIR == 2)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
513 #define IIR_4X_ORDER_OF_SECTION 2
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
514 #define IIR_4X_FIR_MAX_LENGTH 40
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
515 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
516
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
517 #if (L1_WCM == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
518 #define WCM_1X_GAIN_TABLE_LENGTH 16
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
519 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
520
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
521 /* d_aqi_status bits */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
522 /*-------------------*/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
523 #if (DSP == 38) || (DSP == 39)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
524 #define B_DRC_DL_STATE (TRUE_L << 3)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
525 #define B_IIR_DL_STATE (TRUE_L << 4)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
526 #define B_LIM_STATE (TRUE_L << 5)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
527 #define B_AGC_DL_STATE (TRUE_L << 6)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
528 #define B_AEC_STATE (TRUE_L << 11)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
529 #define B_ANR_UL_STATE (TRUE_L << 12)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
530 #define B_ES_STATE (TRUE_L << 13)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
531 #define B_AGC_UL_STATE (TRUE_L << 14)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
532 #else
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
533 #define B_IIR_STATE (TRUE_L << 4)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
534 #define B_LIM_STATE (TRUE_L << 5)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
535 #define B_ANR_STATE (TRUE_L << 12)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
536 #define B_ES_STATE (TRUE_L << 13)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
537 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
538
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
539 /* d_audio_apps_status bits */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
540 /*-------------------*/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
541 #if (DSP == 38) || (DSP == 39)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
542 #define B_WCM_STATE (TRUE_L << 0)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
543 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
544
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
545 /*****************/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
546 /* ANR constants */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
547 /*****************/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
548 #if (L1_ANR == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
549 #define C_ANR_VAD_THR 0x1333
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
550 #define C_ANR_GAMMA_SLOW 0x7F1B
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
551 #define C_ANR_GAMMA_FAST 0x75C3
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
552 #define C_ANR_GAMMA_GAIN_SLOW 28836
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
553 #define C_ANR_GAMMA_GAIN_FAST 32113
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
554 #define C_ANR_THR2 0x01E0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
555 #define C_ANR_THR4 0x03DE
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
556 #define C_ANR_THR5 0x012C
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
557 #define C_ANR_MEAN_RATIO_THR1 10000
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
558 #define C_ANR_MEAN_RATIO_THR2 6000
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
559 #define C_ANR_MEAN_RATIO_THR3 5000
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
560 #define C_ANR_MEAN_RATIO_THR4 4000
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
561 #endif
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
562
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
563
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
564 #if (L1_ES == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
565
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
566 /*******************/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
567 /* ES constants */
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
568 /*******************/
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
569
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
570 // ES custom mode
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
571 #define ES_CUSTOM_PARAM 0xFF
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
572
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
573 // ES mode definition
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
574 #define B_ES_UL (0x1 << 0) // ES UL enable
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
575 #define B_ES_DL (0x1 << 1) // ES DL enable
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
576 #define B_ES_CNG (0x1 << 2) // CNG enable
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
577 #define B_ES_NSF (0x1 << 3) // NSF enable
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
578 #define B_ES_ALS_UL (0x1 << 4) // ALS UL enable
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
579 #define B_ES_ALS_DL (0x1 << 5) // ALS DL enable
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
580
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
581 // ES parameter values
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
582 #define C_ES_GAIN_DL_OFF 0x0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
583 #define C_ES_GAIN_UL_1_OFF 0x0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
584 #define C_ES_GAIN_UL_2_OFF 0x0
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
585
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
586 #define C_ES_TCL_M23DB 0x005E // ref. -23dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
587 #define C_ES_TCL_M6DB 0x0176 // ref. -6dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
588 #define C_ES_TCL_M3DB 0x02EA // ref. -6dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
589 #define C_ES_TCL_0DB 0x05D1 // ref. 0dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
590 #define C_ES_TCL_4DB 0x0E9D // ref. 4dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
591 #define C_ES_TCL_6DB 0x1729 // ref. 6dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
592 #define C_ES_TCL_10DB 0x3A2F // ref. 10dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
593 #define C_ES_TCL_12DB 0x5C36 // ref. 12dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
594 #define C_ES_TCL_B3_FE_LS 0x0004 // ref. -10dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
595 #define C_ES_TCL_B3_DT_LS 0x0001 // ref. -16dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
596 #define C_ES_TCL_B3_FE_NS 0x000F // ref. -10dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
597 #define C_ES_TCL_B3_DT_NS 0x0004 // ref. -16dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
598 #define C_ES_TCL_B3_NE 0x000F // ref. 0dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
599
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
600 #define C_ES_TCL_FE_0 0x05D1 // ref. 0dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
601 #define C_ES_TCL_DT_0 0x05D1 // ref. 0dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
602 #define C_ES_TCL_NE_0 0x05D1 // ref. 0dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
603
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
604 #define C_ES_TCL_LOUD 0x00BF // ref. 70dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
605
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
606 #define C_ES_SW_CNT 5 // ref. switching time 100ms
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
607 #define C_ES_DT_CNT 5 // ref. double-talk time 100ms
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
608
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
609 #define C_ES_HG_CNT_1 8 // ref. hangover time 150ms, A_S(IDLE) = -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
610 #define C_ES_HG_CNT_1A 8 // ref. hangover time 150ms, A_S(IDLE) = -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
611 #define C_ES_HG_CNT_2A 10 // ref. hangover time 200ms, A_S(IDLE) = -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
612 #define C_ES_HG_CNT_2B 13 // ref. hangover time 250ms, A_S(IDLE) = -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
613 #define C_ES_HG_CNT_2C 13 // ref. hangover time 250ms, A_S(IDLE) = -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
614 #define C_ES_HG_CNT_2C_IDLE 13 // ref. hangover time 250ms, A_S(IDLE) = -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
615 #define C_ES_HG_CNT_3 20 // ref. hangover time 400ms
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
616
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
617 #define C_ES_ATT_LIN_0DB 0x7fff // ref. 0dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
618 #define C_ES_ATT_LIN_3DB 0x5A9D // ref. -3dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
619 #define C_ES_ATT_LIN_5DB 0x47FA // ref. -5dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
620 #define C_ES_ATT_LIN_6DB 0x4026 // ref. -6dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
621 #define C_ES_ATT_LIN_8DB 0x32F4 // ref. -8dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
622 #define C_ES_ATT_LIN_9DB 0x2D6A // ref. -9dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
623 #define C_ES_ATT_LIN_10DB 0x2879 // ref. -10dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
624 #define C_ES_ATT_LIN_12DB 0x2026 // ref. -12dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
625 #define C_ES_ATT_LIN_15DB 0x16C2 // ref. -15dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
626 #define C_ES_ATT_LIN_16DB 0x1449 // ref. -16dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
627 #define C_ES_ATT_LIN_19DB 0x0E5D // ref. -19dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
628 #define C_ES_ATT_LIN_21DB 0x0B68 // ref. -21dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
629 #define C_ES_ATT_LIN_24DB 0x0813 // ref. -24dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
630 #define C_ES_ATT_LIN_36DB 0x0207 // ref. -36dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
631 #define C_ES_ATT_LIN_48DB 0x0082 // ref. -48dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
632 #define C_ES_ATT_LIN_66DB 0x0010 // ref. -56dB
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
633
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
634 #endif // L1_ES
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
635 #if(L1_EXT_AUDIO_MGT == 1)
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
636 #define AUDIO_EXT_MIDI_BUFFER_SIZE 2640
d638de8cc6b8 gsm-fw/L1/audio_*/*.h: replacing Leonardo headers with LoCosto versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 519
diff changeset
637 #endif