#include "legato.h"
#include "interfaces.h"
Go to the source code of this file.
Legato Modem Radio Control Platform Adapter API include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
Prototype for handler functions used to report the Network registration state.
- Parameters
-
regStatePtr | The Network registration state. |
typedef void(* pa_mrc_RatChangeHdlrFunc_t)(le_mrc_Rat_t *ratPtr) |
Prototype for handler functions used to report the Radio Access Technology change.
- Parameters
-
ratPtr | The Radio Access Technology. |
Network Registration setting.
Enumerator |
---|
PA_MRC_DISABLE_REG_NOTIFICATION |
Disable network registration notification result code.
|
PA_MRC_ENABLE_REG_NOTIFICATION |
Enable network registration notification code.
|
PA_MRC_ENABLE_REG_LOC_NOTIFICATION |
Enable network registration and location information notification result code if there is a change of network cell.
|
Network Scan Type.
Enumerator |
---|
PA_MRC_SCAN_PLMN |
Scan PLMN.
|
PA_MRC_SCAN_CSG |
Scan closed subscriber group.
|
This function must be called to register a handler for Network registration state handling.
- Returns
- A handler reference, which is only needed for later removal of the handler.
- Note
- Doesn't return on failure, so there's no need to check the return value for errors.
- Parameters
-
[in] | regStateHandler | The handler function to handle the Network registration state. |
This function must be called to add a new mobile country/network code in the list
- Returns
- LE_OK on success
- LE_NOT_POSSIBLE for all other errors
- Parameters
-
[out] | PreferredOperatorsListPtr | List of preferred network operator |
[in] | mcc | Mobile Country Code |
[in] | mnc | Mobile Network Code |
[in] | ratMask | Radio Access Technology mask |
This function configures the Network registration setting.
- Returns
- LE_NOT_POSSIBLE The function failed.
-
LE_TIMEOUT No response was received.
-
LE_OK The function succeeded.
- Parameters
-
[in] | setting | The selected Network registration setting. |
void pa_mrc_DeleteNeighborCellsInfo |
( |
le_dls_List_t * |
cellInfoListPtr | ) |
|
This function must be called to delete the list of neighboring cells information.
- Parameters
-
void pa_mrc_DeletePreferredOperators |
( |
le_dls_List_t * |
PreferredOperatorsListPtr | ) |
|
This function must be called to clear the preferred list.
- Parameters
-
[in] | PreferredOperatorsListPtr | List of preferred network operator |
void pa_mrc_DeleteScanInformation |
( |
le_dls_List_t * |
scanInformationListPtr | ) |
|
This function must be called to delete the list of Scan Information
- Parameters
-
le_result_t pa_mrc_GetHomeNetworkName |
( |
char * |
nameStr, |
|
|
size_t |
nameStrSize |
|
) |
| |
This function must be called to get the Home Network Name information.
- Returns
- LE_OK on success
- LE_OVERFLOW if the Home Network Name can't fit in nameStr
- LE_NOT_POSSIBLE on any other failure
- Parameters
-
[out] | nameStr | the home network Name |
[in] | nameStrSize | the nameStr size |
int32_t pa_mrc_GetNeighborCellsInfo |
( |
le_dls_List_t * |
cellInfoListPtr | ) |
|
This function retrieves the Neighboring Cells information. Each cell information is queued in the list specified with the IN/OUT parameter. Neither add nor remove of elements in the list can be done outside this function.
- Returns
- LE_FAULT The function failed to retrieve the Neighboring Cells information.
-
a positive value The function succeeded. The number of cells which the information have been retrieved.
- Parameters
-
[in,out] | cellInfoListPtr | The Neighboring Cells information. |
This function gets the Network registration setting.
- Returns
- LE_NOT_POSSIBLE The function failed to get the Network registration setting.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[out] | settingPtr | The selected Network registration setting. |
This function gets the Network registration state.
- Returns
- LE_NOT_POSSIBLE The function failed to get the Network registration state.
-
LE_TIMEOUT No response was received from the Modem.
-
LE_OK The function succeeded.
- Parameters
-
[out] | statePtr | The network registration state. |
This function gets the Radio Access Technology currently in use.
- Returns
- LE_FAULT The function failed to get the Radio Access Technology.
-
LE_OK The function succeeded.
- Parameters
-
[out] | ratPtr | The Radio Access Technology. |
This function must be called to get the Radio Module power state.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
- Parameters
-
[out] | powerPtr | The power state. |
This function must be called to perform a network scan.
- Returns
- LE_OK on success
- LE_OVERFLOW if the operator name would not fit in buffer
- LE_NOT_POSSIBLE for all other errors
- Parameters
-
[in] | scanInformationPtr | The scan information |
[out] | namePtr | Name of operator |
[in] | nameSize | The size in bytes of the namePtr buffer |
le_result_t pa_mrc_GetSignalQuality |
( |
int32_t * |
rssiPtr | ) |
|
This function gets the Signal Quality information.
- Returns
- LE_OUT_OF_RANGE The signal quality values are not known or not detectable.
-
LE_NOT_POSSIBLE The function failed.
-
LE_TIMEOUT No response was received.
-
LE_OK The function succeeded.
- Parameters
-
[out] | rssiPtr | The received signal strength (in dBm). |
This function must be called to perform a network scan.
- Returns
- LE_FAULT The function failed.
-
LE_TIMEOUT No response was received.
-
LE_COMM_ERROR Radio link failure occurred.
-
LE_OK The function succeeded.
- Parameters
-
le_result_t pa_mrc_RegisterNetwork |
( |
const char * |
mccPtr, |
|
|
const char * |
mncPtr |
|
) |
| |
This function must be called to register on a mobile network [mcc;mnc]
- Returns
- LE_NOT_POSSIBLE The function failed to register.
-
LE_OK The function succeeded to register,
- Parameters
-
[in] | mccPtr | Mobile Country Code |
[in] | mncPtr | Mobile Network Code |
This function must be called to unregister the handler for Network registration state handling.
- Note
- Doesn't return on failure, so there's no need to check the return value for errors.
This function must be called to unregister the handler for Radio Access Technology change handling.
This function must be called to apply the preferred list into the modem
- Returns
- LE_OK on success
- LE_NOT_POSSIBLE for all other errors
- Parameters
-
[in] | PreferredOperatorsListPtr | List of preferred network operator |
le_result_t pa_mrc_SetAutomaticNetworkRegistration |
( |
void |
| ) |
|
This function must be called to register automatically on network
- Returns
- LE_OK on success
- LE_NOT_POSSIBLE for all other errors
Set the Band Preference
- Returns
- LE_OK on success
-
LE_FAULT on failure
- Parameters
-
[in] | bands | A bit mask to set the Band preference. |
le_result_t pa_mrc_SetLteBandPreference |
( |
uint64_t |
bands | ) |
|
Set the LTE Band Preference
- Returns
- LE_OK on success
-
LE_FAULT on failure
- Parameters
-
[in] | bands | A bit mask to set the LTE Band preference. |
This function must be called to set the power of the Radio Module.
- Returns
- LE_FAULT The function failed.
-
LE_OK The function succeed.
- Parameters
-
[in] | power | The power state. |
This function must be called to register a handler for Radio Access Technology change handling.
- Returns
- A handler reference, which is only needed for later removal of the handler.
- Note
- Doesn't return on failure, so there's no need to check the return value for errors.
- Parameters
-
[in] | handlerFuncPtr | The handler function. |
Set the Radio Access Technology Preference
- Returns
- LE_OK on success
-
LE_FAULT on failure
- Parameters
-
[in] | rats | A bit mask to set the Radio Access Technology preference. |
le_result_t pa_mrc_SetTdScdmaBandPreference |
( |
uint8_t |
tdsCdmaBands | ) |
|
Set the TD-SCDMA Band Preference
- Returns
- LE_OK on success
-
LE_FAULT on failure
- Parameters
-
[in] | tdsCdmaBands | A bit mask to set the TD-SCDMA Band preference. |