Go to the source code of this file.
Legato Modem Data Control Platform Adapter API include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
| #define PA_MDC_APN_MAX_BYTES (PA_MDC_APN_MAX_LEN+1) |
Define the maximum length for an APN null-ended string
| #define PA_MDC_APN_MAX_LEN 100 |
Define the maximum size of various modem data profile related fields. Define the maximum length for an APN entry
| #define PA_MDC_MAX_PROFILE 5 |
Maximum number of profile objects supported
| #define PA_MDC_PWD_MAX_BYTES (PA_MDC_PWD_MAX_LEN+1) |
Define the maximum length for an password null-ended string
| #define PA_MDC_PWD_MAX_LEN 100 |
Define the maximum length for a password entry
| #define PA_MDC_USERNAME_MAX_BYTES (PA_MDC_USERNAME_MAX_LEN+1) |
Define the maximum length for an userName null-ended string
| #define PA_MDC_USERNAME_MAX_LEN 64 |
Define the maximum length for an userName entry
| typedef void(* pa_mdc_SessionStateHandler_t)(pa_mdc_SessionStateData_t *sessionStatePtr) |
Prototype for data session state handler function.
This handler will receive reports of any changes to the data session state.
| sessionStatePtr | The session state. Must be freed using le_mem_Release() when done. |
| enum pa_mdc_AuthType_t |
| enum pa_mdc_PdpType_t |
Data PDP Type
| enum pa_mdc_SessionType_t |
| le_result_t pa_mdc_GetAccessPointName | ( | uint32_t | profileIndex, |
| char * | apnNameStr, | ||
| size_t | apnNameStrSize | ||
| ) |
Get the Access Point Name for the given profile, if the data session is connected.
| [in] | profileIndex | The profile to use |
| [out] | apnNameStr | The Access Point Name |
| [in] | apnNameStrSize | The size in bytes of the address buffer |
| le_result_t pa_mdc_GetDataBearerTechnology | ( | uint32_t | profileIndex, |
| le_mdc_dataBearerTechnology_t * | dataBearerTechnologyPtr | ||
| ) |
Get the Data Bearer Technology for the given profile, if the data session is connected.
| [in] | profileIndex | The profile to use |
| [out] | dataBearerTechnologyPtr | The data bearer technology |
| le_result_t pa_mdc_GetDataFlowStatistics | ( | pa_mdc_PktStatistics_t * | dataStatisticsPtr | ) |
Get data flow statistics since the last reset.
| [out] | dataStatisticsPtr | Statistics data |
| le_result_t pa_mdc_GetDNSAddresses | ( | uint32_t | profileIndex, |
| char * | dns1AddrStr, | ||
| size_t | dns1AddrStrSize, | ||
| char * | dns2AddrStr, | ||
| size_t | dns2AddrStrSize | ||
| ) |
Get the primary/secondary DNS addresses for the given profile, if the data session is connected.
| [in] | profileIndex | The profile to use |
| [out] | dns1AddrStr | The primary DNS IP address in dotted format |
| [in] | dns1AddrStrSize | The size in bytes of the dns1AddrStr buffer |
| [out] | dns2AddrStr | The secondary DNS IP address in dotted format |
| [in] | dns2AddrStrSize | The size in bytes of the dns2AddrStr buffer |
| le_result_t pa_mdc_GetGatewayAddress | ( | uint32_t | profileIndex, |
| char * | gatewayAddrStr, | ||
| size_t | gatewayAddrStrSize | ||
| ) |
Get the gateway IP address for the given profile, if the data session is connected.
| [in] | profileIndex | The profile to use |
| [out] | gatewayAddrStr | The gateway IP address in dotted format |
| [in] | gatewayAddrStrSize | The size in bytes of the address buffer |
| le_result_t pa_mdc_GetInterfaceName | ( | uint32_t | profileIndex, |
| char * | interfaceNameStr, | ||
| size_t | interfaceNameStrSize | ||
| ) |
Get the name of the network interface for the given profile, if the data session is connected.
| [in] | profileIndex | The profile to use |
| [out] | interfaceNameStr | The name of the network interface |
| [in] | interfaceNameStrSize | The size in bytes of the name buffer |
| le_result_t pa_mdc_GetIPAddress | ( | uint32_t | profileIndex, |
| char * | ipAddrStr, | ||
| size_t | ipAddrStrSize | ||
| ) |
Get the IP address for the given profile, if the data session is connected.
| [in] | profileIndex | The profile to use |
| [out] | ipAddrStr | The IP address in dotted format |
| [in] | ipAddrStrSize | The size in bytes of the address buffer |
| le_result_t pa_mdc_GetSessionState | ( | uint32_t | profileIndex, |
| pa_mdc_SessionState_t * | sessionStatePtr | ||
| ) |
Get the session state for the given profile
| [in] | profileIndex | The profile to use |
| [out] | sessionStatePtr | The data session state |
| le_result_t pa_mdc_GetSessionType | ( | uint32_t | profileIndex, |
| pa_mdc_SessionType_t * | sessionIpPtr | ||
| ) |
Get session type for the given profile ( IP V4 or V6 )
| [in] | profileIndex | The profile to use |
| [out] | sessionIpPtr | IP family session |
| le_result_t pa_mdc_ReadProfile | ( | uint32_t | profileIndex, |
| pa_mdc_ProfileData_t * | profileDataPtr | ||
| ) |
Read the profile data for the given profile
| [in] | profileIndex | The profile to read |
| [out] | profileDataPtr | The profile data |
Reset data flow statistics
*
| void pa_mdc_SetSessionStateHandler | ( | pa_mdc_SessionStateHandler_t | handlerRef | ) |
Register a handler for session state notifications.
If the handler is NULL, then the previous handler will be removed.
| [in] | handlerRef | The session state handler function. |
| le_result_t pa_mdc_StartSessionIPV4 | ( | uint32_t | profileIndex, |
| uint32_t * | callRefPtr | ||
| ) |
Start a data session with the given profile using IPV4
| [in] | profileIndex | The profile to use |
| [out] | callRefPtr | Reference used for stopping the data session |
| le_result_t pa_mdc_StartSessionIPV4V6 | ( | uint32_t | profileIndex, |
| uint32_t * | callRefPtr | ||
| ) |
Start a data session with the given profile using IPV4-V6
| [in] | profileIndex | The profile to use |
| [out] | callRefPtr | Reference used for stopping the data session |
| le_result_t pa_mdc_StartSessionIPV6 | ( | uint32_t | profileIndex, |
| uint32_t * | callRefPtr | ||
| ) |
Start a data session with the given profile using IPV6
| [in] | profileIndex | The profile to use |
| [out] | callRefPtr | Reference used for stopping the data session |
| le_result_t pa_mdc_StopSession | ( | uint32_t | callRef | ) |
Stop a data session for the given profile
| [in] | callRef | The call reference returned when starting the sessions |
| le_result_t pa_mdc_WriteProfile | ( | uint32_t | profileIndex, |
| pa_mdc_ProfileData_t * | profileDataPtr | ||
| ) |
Write the profile data for the given profile
| [in] | profileIndex | The profile to write |
| [in] | profileDataPtr | The profile data |