39 #ifndef LEGATO_PA_MDC_INCLUDE_GUARD
40 #define LEGATO_PA_MDC_INCLUDE_GUARD
43 #include "interfaces.h"
51 #define PA_MDC_MAX_PROFILE 5
67 #define PA_MDC_APN_MAX_LEN LE_MDC_APN_NAME_MAX_LEN
74 #define PA_MDC_APN_MAX_BYTES (PA_MDC_APN_MAX_LEN+1)
83 #define PA_MDC_USERNAME_MAX_LEN LE_MDC_USER_NAME_MAX_LEN
90 #define PA_MDC_USERNAME_MAX_BYTES (PA_MDC_USERNAME_MAX_LEN+1)
99 #define PA_MDC_PWD_MAX_LEN LE_MDC_PASSWORD_NAME_MAX_LEN
106 #define PA_MDC_PWD_MAX_BYTES (PA_MDC_PWD_MAX_LEN+1)
206 uint32_t profileIndex,
222 uint32_t profileIndex,
239 uint32_t profileIndex,
255 uint32_t profileIndex,
271 uint32_t profileIndex,
287 uint32_t profileIndex,
318 uint32_t profileIndex,
351 uint32_t profileIndex,
352 char* interfaceNameStr,
353 size_t interfaceNameStrSize
369 uint32_t profileIndex,
387 uint32_t profileIndex,
389 char* gatewayAddrStr,
390 size_t gatewayAddrStrSize
409 uint32_t profileIndex,
412 size_t dns1AddrStrSize,
414 size_t dns2AddrStrSize
429 uint32_t profileIndex,
431 size_t apnNameStrSize
445 uint32_t profileIndex,
480 #endif // LEGATO_PA_MDC_INCLUDE_GUARD
IP V4-V6.
Definition: pa_mdc.h:128
pa_mdc_Authentication_t authentication
Authentication.
Definition: pa_mdc.h:139
le_mdc_DataBearerTechnology_t
Definition: le_mdc_interface.h:198
le_mdmDefs_IpVersion_t
Definition: le_mdmDefs_interface.h:39
#define PA_MDC_APN_MAX_BYTES
Definition: pa_mdc.h:74
le_result_t pa_mdc_GetIPAddress(uint32_t profileIndex, le_mdmDefs_IpVersion_t ipVersion, char *ipAddrStr, size_t ipAddrStrSize)
le_result_t pa_mdc_WriteProfile(uint32_t profileIndex, pa_mdc_ProfileData_t *profileDataPtr)
le_result_t pa_mdc_StopSession(uint32_t callRef)
le_result_t
Definition: le_basics.h:34
pa_mdc_SessionState_t
Definition: pa_mdc.h:150
le_result_t pa_mdc_ReadProfile(uint32_t profileIndex, pa_mdc_ProfileData_t *profileDataPtr)
le_mdc_Pdp_t
Definition: le_mdc_interface.h:248
#define PA_MDC_USERNAME_MAX_BYTES
Definition: pa_mdc.h:90
le_result_t pa_mdc_GetDNSAddresses(uint32_t profileIndex, le_mdmDefs_IpVersion_t ipVersion, char *dns1AddrStr, size_t dns1AddrStrSize, char *dns2AddrStr, size_t dns2AddrStrSize)
le_result_t pa_mdc_StartSessionIPV4V6(uint32_t profileIndex, uint32_t *callRefPtr)
pa_mdc_SessionState_t newState
New data session state.
Definition: pa_mdc.h:165
le_result_t pa_mdc_GetInterfaceName(uint32_t profileIndex, char *interfaceNameStr, size_t interfaceNameStrSize)
Data session is connected.
Definition: pa_mdc.h:152
le_result_t pa_mdc_GetDataFlowStatistics(pa_mdc_PktStatistics_t *dataStatisticsPtr)
uint64_t transmittedBytesCount
Number of bytes transmitted without error.
Definition: pa_mdc.h:175
uint32_t profileIndex
Profile that had the state change.
Definition: pa_mdc.h:164
le_result_t pa_mdc_StartSessionIPV4(uint32_t profileIndex, uint32_t *callRefPtr)
void(* pa_mdc_SessionStateHandler_t)(pa_mdc_SessionStateData_t *sessionStatePtr)
Definition: pa_mdc.h:191
le_mdc_Pdp_t pdp
PDP type.
Definition: pa_mdc.h:140
le_result_t pa_mdc_ResetDataFlowStatistics(void)
le_result_t pa_mdc_GetAccessPointName(uint32_t profileIndex, char *apnNameStr, size_t apnNameStrSize)
void pa_mdc_SetSessionStateHandler(pa_mdc_SessionStateHandler_t handlerRef)
le_mdc_Auth_t type
Authentication using PAP.
Definition: pa_mdc.h:114
le_result_t pa_mdc_GetSessionState(uint32_t profileIndex, pa_mdc_SessionState_t *sessionStatePtr)
Data session is disconnected.
Definition: pa_mdc.h:153
le_mdc_Auth_t
Definition: le_mdc_interface.h:268
le_result_t pa_mdc_GetSessionType(uint32_t profileIndex, pa_mdc_SessionType_t *sessionIpPtr)
IP V4.
Definition: pa_mdc.h:126
uint64_t receivedBytesCount
Number of bytes received without error.
Definition: pa_mdc.h:176
pa_mdc_SessionType_t
Definition: pa_mdc.h:125
le_result_t pa_mdc_GetGatewayAddress(uint32_t profileIndex, le_mdmDefs_IpVersion_t ipVersion, char *gatewayAddrStr, size_t gatewayAddrStrSize)
le_result_t pa_mdc_GetDataBearerTechnology(uint32_t profileIndex, le_mdc_DataBearerTechnology_t *downlinkDataBearerTechPtr, le_mdc_DataBearerTechnology_t *uplinkDataBearerTechPtr)
le_result_t pa_mdc_StartSessionIPV6(uint32_t profileIndex, uint32_t *callRefPtr)
IP V6.
Definition: pa_mdc.h:127