LinuxSDK  V1.4.0.5
SwiApiDemux.h
Go to the documentation of this file.
1 
14 #ifndef __SWIAPDXBASIC
15 #define __SWIAPDXBASIC
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /* include files */
22 #include "SwiDataTypes.h"
23 #include "SwiRcodes.h"
24 #include "SwiApiCmBasic.h"
25 
26 /* defines */
27 #define APDXCALLERLEN 5 /* length of caller id */
28 
29 #define LENGTH_DxErrorString 40
30 #define LENGTH_DxData 4500
31 
32 /* enum declarations */
33 
38 {
41 };
42 
48 {
51 };
52 
58 {
61 };
62 
68 {
74 };
75 
80 {
87 };
88 
94 {
105 };
106 
112 {
121 };
122 
123 /* Function prototypes */
124 extern SWI_API SWI_RCODE SwiApiDxStartup(swi_uint16 numchannels,
125  struct SWI_STRUCT_ApiStartup *pOpenParams);
126 extern SWI_API SWI_RCODE SwiApiDxRegister(swi_uint16 deviceservice,
127  void (*datacbfp)(swi_uint16 deviceservice, swi_uint8 *datap,
128  swi_uint32 datalen, void *userp), void *datauserp,
129  void (*ctlcbfp)(swi_uint16 deviceservice, swi_uint8 *ctldatap, void *userp),
130  void *ctluserp );
131 extern SWI_API SWI_RCODE SwiApiDxBegin(swi_uint16 deviceservice);
132 extern SWI_API SWI_RCODE SwiApiDxEnd(swi_uint16 deviceservice);
133 extern SWI_API SWI_RCODE SwiApiDxSend(swi_uint16 deviceservice,
134  swi_uint8 *datap, swi_uint32 datalen);
135 extern SWI_API SWI_RCODE SwiWaitDxIndication(swi_uint16 deviceservice);
136 extern swi_bool SwiApDxRunning( void );
137 extern swi_bool SwiApDxAirServerPresent( void );
138 extern struct apdxcb *SwiApDxGetCbp(void);
139 extern swi_uint8 *SwiApDxDevToName( swi_uint16 deviceservice );
140 extern swi_uint32 SwiApDxDevToChan( swi_uint16 deviceservice );
142  swi_uint32 datalen, swi_uint8 **payloadpp, swi_uint32 *bytesbuildp);
143 
144 #ifdef __cplusplus
145 } /* extern "C" { */
146 #endif
147 
148 #endif // __SWIAPDXBASIC
149 
150 /*
151  * $Log: SwiApiDemux.h,v $
152  */

Linux SDK V1.4.0.5
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved