
DCN Next Generation Open Interface Release 2.4 Simultaneous Interpretation
en | 172
Bosch Communications Systems | 2007 February | SRS_ININF | Du030905
APPENDIX C. EXAMPLES 1
In the example below the remote functions and update notifications, that are defined in this 2
document as constant values for the wFnId parameter of the message (see [SRS_INF]), are 3
presented as functions described in a ‘C’ syntax. The parameter structures of these functions 4
are according the input, output or notify structures described in the appropriate section. 5
For every function it is assumed that the function will create its structure, transport the 6
parameters to the CCU and wait for the result information coming from the CCU. 7
For both the remote functions and the update notifications the same names are used as their 8
identifier, but without the constant mark “C” and using mixed case names. So, e.g. remote 9
function IN_C_START_IN_APP shall as function be referenced as: 10
IN_Start_IN_App (void); 11
Appendix C.1 Simultaneous Interpretation Control 12
This example shows the minimum steps to be taken for controlling the IN application 13
First we have to start controlling the IN application on the CCU. 14
15
typedef struct 16
{ 17
BOOLEAN bConnectChanges; 18
IN_T_MICSTAT tIntMics; 19
IN_T_ACTIVECHAN tInActiveChan; 20
IN_T_CHANNELS tAChannels; 21
IN_T_CHANNELS tBChannels; 22
IN_T_CHANNELS tInChannels; 23
} IN_T_CHAN_STATUS; 24
25
typedef struct 26
{ 27
BYTE byBetweenLock; 28
BYTE byWithinLock; 29
BYTE byMaxChans; 30
WORD wVerLangList; 31
IN_T_CHANNELLANG tChanLang; 32
} IN_T_CCU_CONFIG; 33
34
typedef struct 35
{ 36
WORD wAudioLangId; 37
CHAR szLangName[DBSC_NCHAR_LANGNAME]; 38
CHAR szLangAbbr[DBSC_NCHAR_LANGABBR]; 39
} IN_T_LANGLIST; 40
41
typedef struct 42
{ 43
WORD wVersionOfLangList; 44
struct IN_T_LANGLIST tLangList[DBSC_MAX_LANGNAME]; 45
} IN_T_LANGUAGE_LIST; 46
47
IN_T_CHAN_STATUS tChanStatus; 48
IN_T_CCU_CONFIG tCcuConfig; 49
IN_T_LANGUAGE_LIST tLanguageList; 50
BOOLEAN bFlashingWhenEngaged; 51
BOOLEAN bFloordistribution; 52
BOOLEAN bSpeakSlowlySign; 53
BOOLEAN bHelpSign; 54
WORD wNrOfInstances; 55
WORD wError; 56
57
/* wNrOfInstances will hold the nr of remote controllers connected */ 58
wError = IN_Start_IN_App(&wNrOfInstances); 59
switch (wError) 60
{ 61
case IN_E_INCONTROL_THIS_CHANNEL: 62
/* I have the IN app already under control */ 63
/* Is that correct? Has the remote controller restarted? */ 64
/* For the moment assume to be correct and continue */ 65
Komentarze do niniejszej Instrukcji