All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_mdc_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
83 #ifndef LE_MDC_H_INCLUDE_GUARD
84 #define LE_MDC_H_INCLUDE_GUARD
85 
86 
87 #include "legato.h"
88 
89 //--------------------------------------------------------------------------------------------------
93 //--------------------------------------------------------------------------------------------------
95 (
96  const char* serviceInstanceName
98 );
99 
100 //--------------------------------------------------------------------------------------------------
104 //--------------------------------------------------------------------------------------------------
106 (
107  void
108 );
109 
110 
111 //--------------------------------------------------------------------------------------------------
119 //--------------------------------------------------------------------------------------------------
120 #define LE_MDC_INTERFACE_NAME_MAX_LEN 10
121 
122 
123 //--------------------------------------------------------------------------------------------------
124 
125 //--------------------------------------------------------------------------------------------------
126 #define LE_MDC_INTERFACE_NAME_MAX_BYTES 11
127 
128 
129 //--------------------------------------------------------------------------------------------------
130 
131 //--------------------------------------------------------------------------------------------------
132 #define LE_MDC_IPV4_ADDR_MAX_LEN 15
133 
134 
135 //--------------------------------------------------------------------------------------------------
136 
137 //--------------------------------------------------------------------------------------------------
138 #define LE_MDC_IPV4_ADDR_MAX_BYTES 16
139 
140 
141 //--------------------------------------------------------------------------------------------------
142 
143 //--------------------------------------------------------------------------------------------------
144 #define LE_MDC_IPV6_ADDR_MAX_LEN 39
145 
146 
147 //--------------------------------------------------------------------------------------------------
148 
149 //--------------------------------------------------------------------------------------------------
150 #define LE_MDC_IPV6_ADDR_MAX_BYTES 40
151 
152 
153 //--------------------------------------------------------------------------------------------------
154 
155 //--------------------------------------------------------------------------------------------------
156 #define LE_MDC_APN_NAME_MAX_LEN 100
157 
158 
159 //--------------------------------------------------------------------------------------------------
160 
161 //--------------------------------------------------------------------------------------------------
162 #define LE_MDC_APN_NAME_MAX_BYTES 101
163 
164 
165 //--------------------------------------------------------------------------------------------------
166 
167 //--------------------------------------------------------------------------------------------------
168 #define LE_MDC_USER_NAME_MAX_LEN 64
169 
170 
171 //--------------------------------------------------------------------------------------------------
172 
173 //--------------------------------------------------------------------------------------------------
174 #define LE_MDC_USER_NAME_MAX_BYTES 65
175 
176 
177 //--------------------------------------------------------------------------------------------------
178 
179 //--------------------------------------------------------------------------------------------------
180 #define LE_MDC_PASSWORD_NAME_MAX_LEN 100
181 
182 
183 //--------------------------------------------------------------------------------------------------
184 
185 //--------------------------------------------------------------------------------------------------
186 #define LE_MDC_PASSWORD_NAME_MAX_BYTES 101
187 
188 
189 //--------------------------------------------------------------------------------------------------
190 
191 //--------------------------------------------------------------------------------------------------
192 typedef struct le_mdc_Profile* le_mdc_ProfileRef_t;
193 
194 
195 //--------------------------------------------------------------------------------------------------
196 
197 //--------------------------------------------------------------------------------------------------
198 typedef enum
199 {
202 
205 
208 
211 
214 
217 
220 
223 
226 
229 
232 
235 
238 
241 }
243 
244 
245 //--------------------------------------------------------------------------------------------------
246 
247 //--------------------------------------------------------------------------------------------------
248 typedef enum
249 {
252 
255 
258 
261 }
263 
264 
265 //--------------------------------------------------------------------------------------------------
266 
267 //--------------------------------------------------------------------------------------------------
268 typedef enum
269 {
272 
275 
278 }
280 
281 
282 //--------------------------------------------------------------------------------------------------
286 //--------------------------------------------------------------------------------------------------
287 typedef struct le_mdc_SessionStateHandler* le_mdc_SessionStateHandlerRef_t;
288 
289 
290 //--------------------------------------------------------------------------------------------------
299 //--------------------------------------------------------------------------------------------------
300 typedef void (*le_mdc_SessionStateHandlerFunc_t)
301 (
302  bool isConnected,
303  void* contextPtr
304 );
305 
306 //--------------------------------------------------------------------------------------------------
310 //--------------------------------------------------------------------------------------------------
312 (
313  le_mdc_ProfileRef_t profileRef,
316 
319 
320  void* contextPtr
322 );
323 
324 //--------------------------------------------------------------------------------------------------
328 //--------------------------------------------------------------------------------------------------
330 (
331  le_mdc_SessionStateHandlerRef_t addHandlerRef
333 );
334 
335 //--------------------------------------------------------------------------------------------------
343 //--------------------------------------------------------------------------------------------------
344 le_mdc_ProfileRef_t le_mdc_GetProfile
345 (
346  uint32_t index
349 );
350 
351 //--------------------------------------------------------------------------------------------------
361 //--------------------------------------------------------------------------------------------------
362 uint32_t le_mdc_GetProfileIndex
363 (
364  le_mdc_ProfileRef_t profileRef
367 );
368 
369 //--------------------------------------------------------------------------------------------------
381 //--------------------------------------------------------------------------------------------------
383 (
384  le_mdc_ProfileRef_t profileRef
387 );
388 
389 //--------------------------------------------------------------------------------------------------
401 //--------------------------------------------------------------------------------------------------
403 (
404  le_mdc_ProfileRef_t profileRef
407 );
408 
409 //--------------------------------------------------------------------------------------------------
420 //--------------------------------------------------------------------------------------------------
422 (
423  le_mdc_ProfileRef_t profileRef,
426 
427  bool* isConnectedPtr
430 );
431 
432 //--------------------------------------------------------------------------------------------------
444 //--------------------------------------------------------------------------------------------------
446 (
447  le_mdc_ProfileRef_t profileRef,
450 
451  char* interfaceName,
454 
455  size_t interfaceNameNumElements
457 );
458 
459 //--------------------------------------------------------------------------------------------------
472 //--------------------------------------------------------------------------------------------------
474 (
475  le_mdc_ProfileRef_t profileRef,
478 
479  char* ipAddr,
482 
483  size_t ipAddrNumElements
485 );
486 
487 //--------------------------------------------------------------------------------------------------
500 //--------------------------------------------------------------------------------------------------
502 (
503  le_mdc_ProfileRef_t profileRef,
506 
507  char* gatewayAddr,
510 
511  size_t gatewayAddrNumElements
513 );
514 
515 //--------------------------------------------------------------------------------------------------
530 //--------------------------------------------------------------------------------------------------
532 (
533  le_mdc_ProfileRef_t profileRef,
536 
537  char* dns1AddrStr,
540 
541  size_t dns1AddrStrNumElements,
543 
544  char* dns2AddrStr,
547 
548  size_t dns2AddrStrNumElements
550 );
551 
552 //--------------------------------------------------------------------------------------------------
565 //--------------------------------------------------------------------------------------------------
567 (
568  le_mdc_ProfileRef_t profileRef,
571 
572  char* ipAddr,
575 
576  size_t ipAddrNumElements
578 );
579 
580 //--------------------------------------------------------------------------------------------------
593 //--------------------------------------------------------------------------------------------------
595 (
596  le_mdc_ProfileRef_t profileRef,
599 
600  char* gatewayAddr,
603 
604  size_t gatewayAddrNumElements
606 );
607 
608 //--------------------------------------------------------------------------------------------------
623 //--------------------------------------------------------------------------------------------------
625 (
626  le_mdc_ProfileRef_t profileRef,
629 
630  char* dns1AddrStr,
633 
634  size_t dns1AddrStrNumElements,
636 
637  char* dns2AddrStr,
640 
641  size_t dns2AddrStrNumElements
643 );
644 
645 //--------------------------------------------------------------------------------------------------
655 //--------------------------------------------------------------------------------------------------
656 bool le_mdc_IsIPv4
657 (
658  le_mdc_ProfileRef_t profileRef
661 );
662 
663 //--------------------------------------------------------------------------------------------------
673 //--------------------------------------------------------------------------------------------------
674 bool le_mdc_IsIPv6
675 (
676  le_mdc_ProfileRef_t profileRef
679 );
680 
681 //--------------------------------------------------------------------------------------------------
692 //--------------------------------------------------------------------------------------------------
694 (
695  le_mdc_ProfileRef_t profileRef,
698 
699  le_mdc_DataBearerTechnology_t* downlinkDataBearerTechPtrPtr,
702 
703  le_mdc_DataBearerTechnology_t* uplinkDataBearerTechPtrPtr
706 );
707 
708 //--------------------------------------------------------------------------------------------------
719 //--------------------------------------------------------------------------------------------------
721 (
722  uint64_t* rxBytesPtr,
725 
726  uint64_t* txBytesPtr
729 );
730 
731 //--------------------------------------------------------------------------------------------------
739 //--------------------------------------------------------------------------------------------------
741 (
742  void
743 );
744 
745 //--------------------------------------------------------------------------------------------------
757 //--------------------------------------------------------------------------------------------------
759 (
760  le_mdc_ProfileRef_t profileRef,
763 
764  le_mdc_Pdp_t pdp
767 );
768 
769 //--------------------------------------------------------------------------------------------------
779 //--------------------------------------------------------------------------------------------------
781 (
782  le_mdc_ProfileRef_t profileRef
785 );
786 
787 //--------------------------------------------------------------------------------------------------
802 //--------------------------------------------------------------------------------------------------
804 (
805  le_mdc_ProfileRef_t profileRef,
808 
809  const char* apnStr
812 );
813 
814 //--------------------------------------------------------------------------------------------------
826 //--------------------------------------------------------------------------------------------------
828 (
829  le_mdc_ProfileRef_t profileRef,
832 
833  char* apnStr,
836 
837  size_t apnStrNumElements
839 );
840 
841 //--------------------------------------------------------------------------------------------------
856 //--------------------------------------------------------------------------------------------------
858 (
859  le_mdc_ProfileRef_t profileRef,
862 
863  le_mdc_Auth_t type,
866 
867  const char* userName,
870 
871  const char* password
874 );
875 
876 //--------------------------------------------------------------------------------------------------
888 //--------------------------------------------------------------------------------------------------
890 (
891  le_mdc_ProfileRef_t profileRef,
894 
895  le_mdc_Auth_t* typePtr,
898 
899  char* userName,
902 
903  size_t userNameNumElements,
905 
906  char* password,
909 
910  size_t passwordNumElements
912 );
913 
914 //--------------------------------------------------------------------------------------------------
921 //--------------------------------------------------------------------------------------------------
922 uint32_t le_mdc_NumProfiles
923 (
924  void
925 );
926 
927 
928 #endif // LE_MDC_H_INCLUDE_GUARD
929 
le_mdc_SessionStateHandlerRef_t le_mdc_AddSessionStateHandler(le_mdc_ProfileRef_t profileRef, le_mdc_SessionStateHandlerFunc_t handlerPtr, void *contextPtr)
le_mdc_DataBearerTechnology_t
Definition: le_mdc_interface.h:198
le_mdc_Pdp_t le_mdc_GetPDP(le_mdc_ProfileRef_t profileRef)
Dual Cell - HSPA+.
Definition: le_mdc_interface.h:221
le_result_t le_mdc_GetDataBearerTechnology(le_mdc_ProfileRef_t profileRef, le_mdc_DataBearerTechnology_t *downlinkDataBearerTechPtrPtr, le_mdc_DataBearerTechnology_t *uplinkDataBearerTechPtrPtr)
le_result_t le_mdc_GetInterfaceName(le_mdc_ProfileRef_t profileRef, char *interfaceName, size_t interfaceNameNumElements)
void le_mdc_StartClient(const char *serviceInstanceName)
struct le_mdc_SessionStateHandler * le_mdc_SessionStateHandlerRef_t
Definition: le_mdc_interface.h:287
IPv4 and IPv6.
Definition: le_mdc_interface.h:259
le_result_t le_mdc_GetIPv4GatewayAddress(le_mdc_ProfileRef_t profileRef, char *gatewayAddr, size_t gatewayAddrNumElements)
le_result_t
Definition: le_basics.h:34
bool le_mdc_IsIPv4(le_mdc_ProfileRef_t profileRef)
IPv4.
Definition: le_mdc_interface.h:253
le_mdc_Pdp_t
Definition: le_mdc_interface.h:248
le_result_t le_mdc_StopSession(le_mdc_ProfileRef_t profileRef)
le_result_t le_mdc_GetAuthentication(le_mdc_ProfileRef_t profileRef, le_mdc_Auth_t *typePtr, char *userName, size_t userNameNumElements, char *password, size_t passwordNumElements)
no authentication
Definition: le_mdc_interface.h:270
HSPA+.
Definition: le_mdc_interface.h:218
le_result_t le_mdc_GetSessionState(le_mdc_ProfileRef_t profileRef, bool *isConnectedPtr)
le_result_t le_mdc_SetPDP(le_mdc_ProfileRef_t profileRef, le_mdc_Pdp_t pdp)
CHAP protocol.
Definition: le_mdc_interface.h:276
le_result_t le_mdc_GetAPN(le_mdc_ProfileRef_t profileRef, char *apnStr, size_t apnStrNumElements)
WCDMA (UMTS)
Definition: le_mdc_interface.h:212
HSPA.
Definition: le_mdc_interface.h:215
bool le_mdc_IsIPv6(le_mdc_ProfileRef_t profileRef)
Enhanced GPRS (EDGE)
Definition: le_mdc_interface.h:209
IPv6.
Definition: le_mdc_interface.h:256
Unknown.
Definition: le_mdc_interface.h:250
Unknown.
Definition: le_mdc_interface.h:200
le_result_t le_mdc_GetBytesCounters(uint64_t *rxBytesPtr, uint64_t *txBytesPtr)
CDMA2000 HRPD (1xEV-DO)
Definition: le_mdc_interface.h:233
void le_mdc_RemoveSessionStateHandler(le_mdc_SessionStateHandlerRef_t addHandlerRef)
void(* le_mdc_SessionStateHandlerFunc_t)(bool isConnected, void *contextPtr)
Definition: le_mdc_interface.h:301
le_result_t le_mdc_GetIPv6DNSAddresses(le_mdc_ProfileRef_t profileRef, char *dns1AddrStr, size_t dns1AddrStrNumElements, char *dns2AddrStr, size_t dns2AddrStrNumElements)
le_result_t le_mdc_GetIPv4DNSAddresses(le_mdc_ProfileRef_t profileRef, char *dns1AddrStr, size_t dns1AddrStrNumElements, char *dns2AddrStr, size_t dns2AddrStrNumElements)
le_result_t le_mdc_GetIPv6Address(le_mdc_ProfileRef_t profileRef, char *ipAddr, size_t ipAddrNumElements)
le_mdc_ProfileRef_t le_mdc_GetProfile(uint32_t index)
CDMA2000 EHRPD.
Definition: le_mdc_interface.h:239
le_result_t le_mdc_StartSession(le_mdc_ProfileRef_t profileRef)
le_result_t le_mdc_ResetBytesCounter(void)
le_result_t le_mdc_GetIPv4Address(le_mdc_ProfileRef_t profileRef, char *ipAddr, size_t ipAddrNumElements)
le_result_t le_mdc_SetAuthentication(le_mdc_ProfileRef_t profileRef, le_mdc_Auth_t type, const char *userName, const char *password)
LTE.
Definition: le_mdc_interface.h:224
le_mdc_Auth_t
Definition: le_mdc_interface.h:268
GPRS.
Definition: le_mdc_interface.h:206
PAP protocol.
Definition: le_mdc_interface.h:273
uint32_t le_mdc_GetProfileIndex(le_mdc_ProfileRef_t profileRef)
uint32_t le_mdc_NumProfiles(void)
CDMA2000 HRPD (1xEV-DO RevA)
Definition: le_mdc_interface.h:236
le_result_t le_mdc_SetAPN(le_mdc_ProfileRef_t profileRef, const char *apnStr)
le_result_t le_mdc_GetIPv6GatewayAddress(le_mdc_ProfileRef_t profileRef, char *gatewayAddr, size_t gatewayAddrNumElements)
GSM.
Definition: le_mdc_interface.h:203
TD-SCDMA.
Definition: le_mdc_interface.h:227
CDMA2000 1X.
Definition: le_mdc_interface.h:230
void le_mdc_StopClient(void)