83 #ifndef LE_MDC_H_INCLUDE_GUARD
84 #define LE_MDC_H_INCLUDE_GUARD
96 const char* serviceInstanceName
120 #define LE_MDC_INTERFACE_NAME_MAX_LEN 10
126 #define LE_MDC_INTERFACE_NAME_MAX_BYTES 11
132 #define LE_MDC_IPV4_ADDR_MAX_LEN 15
138 #define LE_MDC_IPV4_ADDR_MAX_BYTES 16
144 #define LE_MDC_IPV6_ADDR_MAX_LEN 39
150 #define LE_MDC_IPV6_ADDR_MAX_BYTES 40
156 #define LE_MDC_APN_NAME_MAX_LEN 100
162 #define LE_MDC_APN_NAME_MAX_BYTES 101
168 #define LE_MDC_USER_NAME_MAX_LEN 64
174 #define LE_MDC_USER_NAME_MAX_BYTES 65
180 #define LE_MDC_PASSWORD_NAME_MAX_LEN 100
186 #define LE_MDC_PASSWORD_NAME_MAX_BYTES 101
192 typedef struct le_mdc_Profile* le_mdc_ProfileRef_t;
313 le_mdc_ProfileRef_t profileRef,
364 le_mdc_ProfileRef_t profileRef
384 le_mdc_ProfileRef_t profileRef
404 le_mdc_ProfileRef_t profileRef
423 le_mdc_ProfileRef_t profileRef,
447 le_mdc_ProfileRef_t profileRef,
455 size_t interfaceNameNumElements
475 le_mdc_ProfileRef_t profileRef,
483 size_t ipAddrNumElements
503 le_mdc_ProfileRef_t profileRef,
511 size_t gatewayAddrNumElements
533 le_mdc_ProfileRef_t profileRef,
541 size_t dns1AddrStrNumElements,
548 size_t dns2AddrStrNumElements
568 le_mdc_ProfileRef_t profileRef,
576 size_t ipAddrNumElements
596 le_mdc_ProfileRef_t profileRef,
604 size_t gatewayAddrNumElements
626 le_mdc_ProfileRef_t profileRef,
634 size_t dns1AddrStrNumElements,
641 size_t dns2AddrStrNumElements
658 le_mdc_ProfileRef_t profileRef
676 le_mdc_ProfileRef_t profileRef
695 le_mdc_ProfileRef_t profileRef,
722 uint64_t* rxBytesPtr,
760 le_mdc_ProfileRef_t profileRef,
782 le_mdc_ProfileRef_t profileRef
805 le_mdc_ProfileRef_t profileRef,
829 le_mdc_ProfileRef_t profileRef,
837 size_t apnStrNumElements
859 le_mdc_ProfileRef_t profileRef,
867 const char* userName,
891 le_mdc_ProfileRef_t profileRef,
903 size_t userNameNumElements,
910 size_t passwordNumElements
928 #endif // LE_MDC_H_INCLUDE_GUARD
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)