comparison src/condat2/com/include/vmd.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM (6301)
4 | Modul :
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Types definitions for the voice memo and dialling driver
18 | .
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifndef DEF_VMD_H
23 #define DEF_VMD_H
24
25 /*
26 * Signal Types
27 */
28 #define VMD_END_RECORD 1
29 #define VMD_END_PLAY 2
30 #define VMD_SPEECH_RECOGNITION 3
31
32
33 /*
34 * type definitions
35 */
36 typedef struct vmd_start_record_type
37 {
38 USHORT * start_address;
39 USHORT * stop_address;
40 UBYTE dtx_used;
41 USHORT tone_id;
42 } vmd_start_record_type;
43
44 typedef struct vmd_start_play_type
45 {
46 USHORT * start_address;
47 } vmd_start_play_type;
48
49 typedef struct vmd_end_record_type
50 {
51 USHORT * stop_address;
52 } vmd_end_record_type;
53
54 typedef struct vmd_end_play_type
55 {
56 USHORT * stop_address;
57 } vmd_end_play_type;
58
59
60 typedef struct vmd_speech_recognition_req_type
61 {
62 USHORT i_speaker;
63 USHORT i_action;
64 USHORT i_param1;
65 USHORT i_param2;
66 USHORT * address;
67 USHORT total_vocabulary_number;
68 } vmd_speech_recognition_req_type;
69
70 /*
71 * Constants
72 */
73 #define SC_SR_MAX_NB_USER 10
74
75 #define SC_SR_START_ENROLL 1
76 #define SC_SR_START_UPDATE 2
77 #define SC_SR_START_RECO 3
78 #define SC_SR_ABORT 6
79 #define SC_SR_START_UPDATE_CHECK 13
80
81 #define C_SR_CORRECT_END 0
82 #define C_SR_CORRECT_END_ACQ 1
83 #define C_SR_CORRECT_END_UPD 2
84 #define C_SR_CORRECT_END_RECO 3
85 #define C_SR_TIME_OUT 11
86 #define C_SR_BAD_ACQUISITION 12
87 #define C_SR_OOV_TOOCLOSE 13
88 #define C_SR_UPDATE_CHECK_ERR 14
89 #define C_SR_BAD_RECOGNITION 20
90
91 #if defined (NEW_FRAME)
92 /*
93 * to achieve backward compatibility with older definitions
94 */
95 #define drv_SignalCB_Type T_DRV_CB_FUNC
96 #define drv_SignalID_Type T_DRV_SIGNAL
97 #endif
98
99 /*
100 * Prototypes
101 */
102 EXTERN UBYTE vmd_init (drv_SignalCB_Type in_SignalCBPtr);
103 EXTERN void vmd_exit (void);
104 EXTERN UBYTE vmd_start_voice_memo_recording (vmd_start_record_type * vmd_parameter);
105 EXTERN UBYTE vmd_stop_voice_memo_recording (void);
106 EXTERN UBYTE vmd_start_voice_memo_playing (vmd_start_play_type * vmd_parameter);
107 EXTERN UBYTE vmd_stop_voice_memo_playing (void);
108
109 EXTERN UBYTE vmd_start_recognition (vmd_speech_recognition_req_type * vmd_parameter);
110 EXTERN UBYTE vmd_primitive (USHORT opc, void * data);
111
112 #endif