Go to the source code of this file.
Typedefs | |
| typedef struct le_mrc_NetRegStateHandler * | le_mrc_NetRegStateHandlerRef_t |
| typedef struct le_mrc_RatChangeHandler * | le_mrc_RatChangeHandlerRef_t |
| typedef void(* | le_mrc_NetRegStateHandlerFunc_t )(le_mrc_NetRegState_t state, void *contextPtr) |
| typedef void(* | le_mrc_RatChangeHandlerFunc_t )(le_mrc_Rat_t rat, void *contextPtr) |
Legato Modem Radio Control include file.
Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.
| typedef void(* le_mrc_NetRegStateHandlerFunc_t)(le_mrc_NetRegState_t state, void *contextPtr) |
Handler for Network registration state changes.
| state | Parameter ready to receive the Network Registration state. |
| contextPtr |
| typedef struct le_mrc_NetRegStateHandler* le_mrc_NetRegStateHandlerRef_t |
Reference type for le_mrc_NetRegStateHandler handler ADD/REMOVE functions
| typedef void(* le_mrc_RatChangeHandlerFunc_t)(le_mrc_Rat_t rat, void *contextPtr) |
Handler for Radio Access Technologie changes.
| rat | Parameter ready to receive the Radio Access Technology. |
| contextPtr |
| typedef struct le_mrc_RatChangeHandler* le_mrc_RatChangeHandlerRef_t |
Reference type for le_mrc_RatChangeHandler handler ADD/REMOVE functions
| le_mrc_NetRegStateHandlerRef_t le_mrc_AddNetRegStateHandler | ( | le_mrc_NetRegStateHandlerFunc_t | handlerPtr, |
| void * | contextPtr | ||
| ) |
le_mrc_NetRegStateHandler handler ADD function
| [in] | handlerPtr | |
| [in] | contextPtr |
| le_mrc_RatChangeHandlerRef_t le_mrc_AddRatChangeHandler | ( | le_mrc_RatChangeHandlerFunc_t | handlerPtr, |
| void * | contextPtr | ||
| ) |
le_mrc_RatChangeHandler handler ADD function
| [in] | handlerPtr | |
| [in] | contextPtr |
| void le_mrc_DeleteCellularNetworkScan | ( | le_mrc_ScanInformationListRef_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. |
| void le_mrc_DeleteNeighborCellsInfo | ( | le_mrc_NeighborCellsRef_t | ngbrCellsRef | ) |
This function must be called to delete the Neighboring Cells information.
| [in] | ngbrCellsRef | The Neighboring Cells reference. |
| le_result_t le_mrc_GetCellularNetworkMccMnc | ( | le_mrc_ScanInformationRef_t | scanInformationRef, |
| char * | mccPtr, | ||
| size_t | mccPtrNumElements, | ||
| char * | mncPtr, | ||
| size_t | mncPtrNumElements | ||
| ) |
This function must be called to get the Cellular Network Code [mcc:mnc]
| [in] | scanInformationRef | Scan information reference |
| [out] | mccPtr | Mobile Country Code |
| [in] | mccPtrNumElements | |
| [out] | mncPtr | Mobile Network Code |
| [in] | mncPtrNumElements |
| le_result_t le_mrc_GetCellularNetworkName | ( | le_mrc_ScanInformationRef_t | scanInformationRef, |
| char * | namePtr, | ||
| size_t | namePtrNumElements | ||
| ) |
This function must be called to get the Cellular Network Name.
| [in] | scanInformationRef | Scan information reference |
| [out] | namePtr | Name of operator |
| [in] | namePtrNumElements |
| le_mrc_ScanInformationRef_t le_mrc_GetFirstCellularNetworkScan | ( | le_mrc_ScanInformationListRef_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_mrc_CellInfoRef_t le_mrc_GetFirstNeighborCellInfo | ( | le_mrc_NeighborCellsRef_t | ngbrCellsRef | ) |
This function must be called to get the first Cell Information reference in the list of Neighboring Cells information retrieved with le_mrc_GetNeighborCellsInfo().
| [in] | ngbrCellsRef | The Neighboring Cells reference. |
| le_result_t le_mrc_GetHomeNetworkName | ( | char * | nameStr, |
| size_t | nameStrNumElements | ||
| ) |
This function must be called to get the Home Network Name information.
| [out] | nameStr | the home network Name |
| [in] | nameStrNumElements |
| uint32_t le_mrc_GetNeighborCellId | ( | le_mrc_CellInfoRef_t | ngbrCellInfoRef | ) |
This function must be called to get the Cell Identifier.
| [in] | ngbrCellInfoRef | The Cell information reference. |
| uint32_t le_mrc_GetNeighborCellLocAreaCode | ( | le_mrc_CellInfoRef_t | ngbrCellInfoRef | ) |
This function must be called to get the Location Area Code of a cell.
| [in] | ngbrCellInfoRef | The Cell information reference. |
| int32_t le_mrc_GetNeighborCellRxLevel | ( | le_mrc_CellInfoRef_t | ngbrCellInfoRef | ) |
This function must be called to get the signal strength of a cell.
| [in] | ngbrCellInfoRef | The Cell information reference. |
| le_mrc_NeighborCellsRef_t le_mrc_GetNeighborCellsInfo | ( | void | ) |
This function must be called to retrieve the Neighboring Cells information. It creates and returns a reference to the Neighboring Cells information.
| le_result_t le_mrc_GetNetRegState | ( | le_mrc_NetRegState_t * | statePtr | ) |
Get the network registration state.
| [out] | statePtr | Network Registration state. |
| le_mrc_ScanInformationRef_t le_mrc_GetNextCellularNetworkScan | ( | le_mrc_ScanInformationListRef_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_mrc_CellInfoRef_t le_mrc_GetNextNeighborCellInfo | ( | le_mrc_NeighborCellsRef_t | ngbrCellsRef | ) |
This function must be called to get the next Cell Information reference in the list of Neighboring Cells information retrieved with le_mrc_GetNeighborCellsInfo().
| [in] | ngbrCellsRef | The Neighboring Cells reference. |
| le_result_t le_mrc_GetRadioAccessTechInUse | ( | le_mrc_Rat_t * | ratPtr | ) |
This function must be called to get the current Radio Access Technology in use.
| [out] | ratPtr | The Radio Access Technology. |
| 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 | [OUT] Received signal strength quality (0 = no signal strength, |
| bool le_mrc_IsCellularNetworkAvailable | ( | le_mrc_ScanInformationRef_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_ScanInformationRef_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_ScanInformationRef_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_ScanInformationRef_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_ScanInformationRef_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 |
| le_mrc_ScanInformationListRef_t le_mrc_PerformCellularNetworkScan | ( | le_mrc_Rat_t | ratMask | ) |
This function must be called to perform a cellular network scan.
| [in] | ratMask | Technology mask |
| le_result_t le_mrc_RegisterCellularNetwork | ( | const char * | mcc, |
| const char * | mnc | ||
| ) |
This function must be called to register on a cellular network [mcc;mnc]
| [in] | mcc | Mobile Country Code |
| [in] | mnc | Mobile Network Code |
| void le_mrc_RemoveNetRegStateHandler | ( | le_mrc_NetRegStateHandlerRef_t | addHandlerRef | ) |
le_mrc_NetRegStateHandler handler REMOVE function
| [in] | addHandlerRef |
| void le_mrc_RemoveRatChangeHandler | ( | le_mrc_RatChangeHandlerRef_t | addHandlerRef | ) |
le_mrc_RatChangeHandler handler REMOVE function
| [in] | addHandlerRef |
| le_result_t le_mrc_SetRadioPower | ( | le_onoff_t | power | ) |
Set the power of the Radio Module.
| [in] | power | The power state. |
| void le_mrc_StartClient | ( | const char * | serviceInstanceName | ) |
Start the service for the client main thread
| [in] | serviceInstanceName |
| void le_mrc_StopClient | ( | void | ) |
Stop the service for the current client thread