Download Bosch RS-232 User manual
Transcript
DCN Next Generation Open Interface Release 2.0 Simultaneous Interpretation
en | 132
APPENDIX C. EXAMPLES
In the example below the remote functions and update notifications, that are defined in this
document as constant values for the wFnId parameter of the message (see [SRS_INF]), are
presented as functions described in a ‘C’ syntax. The parameter structures of these functions
are according the input, output or notify structures described in the appropriate section.
For every function it is assumed that the function will create its structure, transport the
parameters to the CCU and wait for the result information coming from the CCU.
For both the remote functions and the update notifications the same names are used as their
identifier, but without the constant mark “C” and using mixed case names. So, e.g. remote
function IN_C_START_IN_APP shall as function be referenced as:
IN_Start_IN_App (void);
Appendix C.1 Simultaneous Interpretation Control
This example shows the minimum steps to be taken for controlling the IN application
First we have to start controlling the IN application on the CCU.
typedef struct
{
BOOLEAN
IN_T_MICSTAT
IN_T_ACTIVECHAN
IN_T_CHANNELS
IN_T_CHANNELS
IN_T_CHANNELS
} IN_T_CHAN_STATUS;
typedef struct
{
BYTE
BYTE
BYTE
WORD
IN_T_CHANNELLANG
} IN_T_CCU_CONFIG;
bConnectChanges;
tIntMics;
tInActiveChan;
tAChannels;
tBChannels;
tInChannels;
byBetweenLock;
byWithinLock;
byMaxChans;
wVerLangList;
tChanLang;
typedef struct
{
WORD
wAudioLangId;
CHAR
szLangName[DBSC_NCHAR_LANGNAME];
CHAR
szLangAbbr[DBSC_NCHAR_LANGABBR];
} IN_T_LANGLIST;
typedef struct
{
WORD
struct IN_T_LANGLIST
} IN_T_LANGUAGE_LIST;
IN_T_CHAN_STATUS
IN_T_CCU_CONFIG
IN_T_LANGUAGE_LIST
BOOLEAN
BOOLEAN
BOOLEAN
BOOLEAN
WORD
WORD
wVersionOfLangList;
tLangList[DBSC_MAX_LANGNAME];
tChanStatus;
tCcuConfig;
tLanguageList;
bFlashingWhenEngaged;
bFloordistribution;
bSpeakSlowlySign;
bHelpSign;
wNrOfInstances;
wError;
/* wNrOfInstances will hold the nr of remote controllers connected */
wError = IN_Start_IN_App(&wNrOfInstances);
switch (wError)
{
case IN_E_INCONTROL_THIS_CHANNEL:
/* I have the IN app already under control */
/* Is that correct? Has the remote controller restarted? */
/* For the moment assume to be correct and continue */
Bosch Security Systems B.V. | 2005 January | 9922 141 70542