Go to the source code of this file.
Legato Modem Radio Control API include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
typedef void(* le_mrc_NetRegStateHandlerFunc_t)(le_mrc_NetRegState_t state, void *contextPtr) |
Prototype for handler functions used to report that the network registration state has changed.
state | Parameter ready to receive the Network Registration state. |
contextPtr | Context information the event handler may require. |
typedef struct le_mrc_NetRegStateHandler* le_mrc_NetRegStateHandlerRef_t |
Reference type for Network Registration State's Changes Handler references.
typedef struct le_mrc_ScanInformationList* le_mrc_ScanInformation_ListRef_t |
Opaque type for Scan Information Listing.
typedef struct le_mrc_ScanInformation* le_mrc_ScanInformation_Ref_t |
Declare a reference type for referring to MRC Scan Information objects.
le_mrc_NetRegStateHandlerRef_t le_mrc_AddNetRegStateHandler | ( | le_mrc_NetRegStateHandlerFunc_t | handlerFuncPtr, |
void * | contextPtr | ||
) |
Register an handler for network registration state change.
[in] | handlerFuncPtr | The handler function. |
[in] | contextPtr | The handler's context. |
le_result_t le_mrc_ConnectCellularNetwork | ( | const char * | mccPtr, |
const char * | mncPtr | ||
) |
This function must be called to connect to a cellular network [mcc;mnc]
[in] | mccPtr | Mobile Country Code |
[in] | mncPtr | Mobile Network Code |
void le_mrc_DeleteCellularNetworkScan | ( | le_mrc_ScanInformation_ListRef_t | scanInformationListRef | ) |
This function must be called to delete the list of the Scan Information retrieved with le_mrc_PerformNetworkScan().
[in] | scanInformationListRef | The list of scan information. |
le_result_t le_mrc_GetCellularNetworkMccMnc | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef, |
char * | mccPtr, | ||
size_t | mccPtrSize, | ||
char * | mncPtr, | ||
size_t | mncPtrSize | ||
) |
This function must be called to get the Cellular Network Code [mcc:mnc]
[in] | scanInformationRef | Scan information reference |
[out] | mccPtr | Mobile Country Code |
[in] | mccPtrSize | mccPtr buffer size |
[out] | mncPtr | Mobile Network Code |
[in] | mncPtrSize | mncPtr buffer size |
le_result_t le_mrc_GetCellularNetworkName | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef, |
char * | namePtr, | ||
size_t | nameSize | ||
) |
This function must be called to get the Cellular Network Name.
[in] | scanInformationRef | Scan information reference |
[out] | namePtr | Name of operator |
[in] | nameSize | The size in bytes of the namePtr buffer |
le_mrc_ScanInformation_Ref_t le_mrc_GetFirstCellularNetworkScan | ( | le_mrc_ScanInformation_ListRef_t | scanInformationListRef | ) |
This function must be called to get the first Scan Information object reference in the list of scan Information retrieved with le_mrc_PerformNetworkScan().
[in] | scanInformationListRef | The list of scan information. |
le_result_t le_mrc_GetHomeNetworkName | ( | char * | nameStr, |
size_t | nameStrSize | ||
) |
This function must be called to get the Home Network Name information.
[out] | nameStr | the home network Name |
[in] | nameStrSize | the nameStr size |
le_result_t le_mrc_GetNetRegState | ( | le_mrc_NetRegState_t * | statePtr | ) |
Get the network registration state.
[out] | statePtr | Network Registration state. |
le_mrc_ScanInformation_Ref_t le_mrc_GetNextCellularNetworkScan | ( | le_mrc_ScanInformation_ListRef_t | scanInformationListRef | ) |
This function must be called to get the next Scan Information object reference in the list of scan Information retrieved with le_mrc_PerformNetworkScan().
[in] | scanInformationListRef | The list of scan information. |
le_result_t le_mrc_GetRadioPower | ( | le_onoff_t * | powerPtr | ) |
Must be called to get the Radio Module power state.
[out] | powerPtr | Power state. |
le_result_t le_mrc_GetSignalQual | ( | uint32_t * | qualityPtr | ) |
Get the signal quality.
[out] | qualityPtr | Received signal strength quality (0 = no signal strength, 5 = very good signal strength). |
bool le_mrc_IsCellularNetworkAvailable | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef | ) |
This function must be called to check if a cellular network is available.
[in] | scanInformationRef | Scan information reference |
bool le_mrc_IsCellularNetworkForbidden | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef | ) |
This function must be called to check if a cellular network is forbidden by the operator.
[in] | scanInformationRef | Scan information reference |
bool le_mrc_IsCellularNetworkHome | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef | ) |
This function must be called to check if a cellular network is currently in home mode.
[in] | scanInformationRef | Scan information reference |
bool le_mrc_IsCellularNetworkInUse | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef | ) |
This function must be called to check if a cellular network is currently in use.
[in] | scanInformationRef | Scan information reference |
bool le_mrc_IsCellularNetworkRatAvailable | ( | le_mrc_ScanInformation_Ref_t | scanInformationRef, |
le_mrc_Rat_t | rat | ||
) |
This function must be called to know if the radio control access is in scanInformationRef.
[in] | scanInformationRef | Scan information reference |
[in] | rat | The Radio Access Technology |
This function must be called to perform a cellular network scan.
[in] | ratMask | Technology mask |
void le_mrc_RemoveNetRegStateHandler | ( | le_mrc_NetRegStateHandlerRef_t | handlerRef | ) |
Remove a handler for network registration state changes.
[in] | handlerRef | The handler reference. |
le_result_t le_mrc_SetRadioPower | ( | le_onoff_t | power | ) |
Set the power of the Radio Module.
[in] | power | The power state. |