le_mrc_interface.h

Go to the documentation of this file.
1 
2 
3 /*
4  * ====================== WARNING ======================
5  *
6  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
7  * DO NOT MODIFY IN ANY WAY.
8  *
9  * ====================== WARNING ======================
10  */
11 
12 /**
13  * @page c_mrc Modem Radio Control
14  *
15  * @ref le_mrc_interface.h "API Reference"
16  *
17  * <HR>
18  *
19  * The Modem Radio Control (MRC) APIs is used to control cellular network environments.
20  *
21  * It's important for many M2M apps to know details about cellular network environments (like
22  * network registration and signal quality).
23  * It allows you to limit some M2M services based on the reliability of the network environment, and
24  * provides information to control power consumption (power on or shutdown the radio module).
25  *
26  * @section le_mrc_binding IPC interfaces binding
27  *
28  * All the functions of this API are provided by the @b modemService service.
29  *
30  * Here's a code sample binding to modem services:
31  * @verbatim
32  bindings:
33  {
34  clientExe.clientComponent.le_mrc -> modemService.le_mrc
35  }
36  @endverbatim
37  *
38  * @section le_mrc_power Radio Power Management
39  * le_mrc_SetRadioPower() API allows the application to power up or shutdown the radio module.
40  *
41  * le_mrc_GetRadioPower() API displays radio module power state.
42  *
43  * A sample code can be seen in the following page:
44  * - @subpage c_mrcRadioPower
45  *
46  * @section le_mrc_configuration Radio Configuration preferences
47  *
48  * The following functions let you configure and retrieve the radio configuration preferences:
49  * le_mrc_SetAutomaticRegisterMode(), le_mrc_SetManualRegisterMode() and le_mrc_GetRegisterMode()
50  * let you set/get the selected Scan mode.
51  *
52  * le_mrc_SetBandPreferences(), le_mrc_GetBandPreferences() let you set/get the 2G/3G band
53  * preferences by using a bit mask built with @c le_mrc_BandBitMask_t
54  *
55  * The 2G/3G band preferences can be:
56  * - Band-Class-0-A-System
57  * - Band-Class-0-B-System
58  * - Band-Class-1-All-Blocks
59  * - Band-Class-2-Placeholder
60  * - Band-Class-3-A-System
61  * - Band-Class-4-All-Blocks
62  * - Band-Class-5-All-Blocks
63  * - Band-Class-6
64  * - Band-Class-7
65  * - Band-Class-8
66  * - Band-Class-9
67  * - Band-Class-10
68  * - Band-Class-11
69  * - Band-Class-12
70  * - Band-Class-13
71  * - Band-Class-14
72  * - Band-Class-15
73  * - Band-Class-16
74  * - Band-Class-17
75  * - Band-Class-18
76  * - Band-Class-19
77  * - GSM-DCS-1800
78  * - E-GSM-900 (for Extended GSM 900 band)
79  * - Primary-GSM-900
80  * - GSM-450
81  * - GSM-480
82  * - GSM-750
83  * - GSM-850
84  * - GSMR-900 (for GSM Railways GSM 900 band)
85  * - GSM-PCS-1900
86  * - WCDMA-EU-J-CH-IMT-2100 (for WCDMA Europe, Japan, and China IMT 2100 band)
87  * - WCDMA-US-PCS-1900 (for WCDMA U.S. PCS 1900 band)
88  * - WCDMA-EU-CH-DCS-1800 (for WCDMA Europe and China DCS 1800 band)
89  * - WCDMA-US-1700 (for WCDMA U.S. 1700 band)
90  * - WCDMA-US-850 (for WCDMA U.S. 850 band)
91  * - WCDMA-J-800 (for WCDMA Japan 800 band)
92  * - WCDMA-EU-2600 (for WCDMA Europe 2600 band)
93  * - WCDMA-EU-J-900 (for WCDMA Europe and Japan 900 band)
94  * - WCDMA-J-1700 (for WCDMA Japan 1700 band)
95  *
96  * le_mrc_SetLteBandPreferences(), le_mrc_GetLteBandPreferences() let you set/get the LTE band
97  * preferences by using a bit mask built with @c le_mrc_LteBandBitMask_t.
98  *
99  * The LTE band preferences can be 0 to 43 except 15, 16, 22, 23, and 26 to 32.
100  *
101  * le_mrc_SetTdScdmaBandPreferences(), le_mrc_GetTdScdmaBandPreferences() let you set/get the
102  * TD-SCDMA band preferences by using a bit mask built with @c le_mrc_TdScdmaBandBitMask_t
103  *
104  * The TD-SCDMA band preferences can be 'A' to 'F'
105  *
106  * @warning Ensure to check the supported preferences for your specific platform.
107  *
108  * le_mrc_AddPreferredOperator() , le_mrc_RemovePreferredOperator() to add/remove a preferred
109  * operator by specifying the MCC/MNC and the Radio Access Technology.
110  *
111  * le_mrc_GetPreferredOperatorsList(), le_mrc_GetFirstPreferredOperator(),
112  * le_mrc_GetNextPreferredOperator(), le_mrc_DeletePreferredOperatorsList(),
113  * le_mrc_GetPreferredOperatorDetails() let you retrieve a list of the selected preferred
114  * operators and get their details.
115  *
116  * A sample code can be seen in the following page:
117  * - @subpage c_mrcRadioConfigurationPreferences
118  *
119  * @section le_mrc_NetworkRejectHandler Report Network Reject Indication
120  *
121  * The application can register a handler function to report network reject with MNC/MCC code and
122  * the Radio Access Technology using le_mrc_AddNetworkRejectHandler() API.
123  *
124  * le_mrc_RemoveNetworkRejectHandler() API uninstalls the handler function.
125  *
126  * @section le_mrc_capabilities Radio Capabilities
127  *
128  * le_mrc_GetBandCapabilities() let you get the 2G/3G band capabilities by retrieving a bit mask
129  * built with @c le_mrc_BandBitMask_t
130  *
131  * le_mrc_GetLteBandCapabilities() let you get the LTE band capabilities by retrieving a bit mask
132  * built with @c le_mrc_LteBandBitMask_t
133  *
134  * le_mrc_GetTdScdmaBandCapabilities() let you get the TD-SCDMA band capabilities by retrieving
135  * a bit mask built with @c le_mrc_TdScdmaBandBitMask_t
136  *
137  * A sample code can be seen in the following page:
138  * - @subpage c_mrcBandCapabilities
139  *
140  * @section le_mrc_rat Radio Access Technology (RAT)
141  * le_mrc_GetRadioAccessTechInUse() API retrieves the current active Radio Access Technology (RAT).
142  * @note The API returns the RAT only if the device is registered on the network.
143  *
144  * The application can register a handler function to retrieve the Radio Access Technology each time
145  * the RAT changes.
146  *
147  * le_mrc_AddRatChangeHandler() API installs a RAT change handler.
148  *
149  * le_mrc_RemoveRatChangeHandler() API uninstalls the handler function.
150  *
151  * le_mrc_SetRatPreferences(), le_mrc_GetRatPreferences() let you set/get the Radio Access
152  * Technology preferences by using a bit mask built with @c le_mrc_RatBitMask_t.
153  *
154  * The Radio Access Technology preferences can be:
155  * - CDMA (CDMA2000-1X + CDMA2000-HRPD)
156  * - GSM
157  * - UMTS (UMTS)
158  * - TDSCDMA (TD-SCDMA)
159  * - LTE
160  *
161  * @note LE_MRC_BITMASK_RAT_ALL value can be used to select the RAT in automatic mode.
162  *
163  * A sample code can be seen in the following page:
164  * - @subpage c_mrcRAT
165  *
166  * @section le_mrc_registration Network Registration
167  * le_mrc_GetNetRegState() API retrieves the radio module network registration status.
168  *
169  * The application can register a handler function to retrieve the registration status each time the
170  * registration state changes.
171  *
172  * le_mrc_AddNetRegStateEventHandler() API installs a registration state handler.
173  *
174  * le_mrc_RemoveNetRegStateEventHandler() API uninstalls the handler function.
175  * @note If only one handler is registered, the le_mrc_RemoveNetRegStateHandler() API
176  * resets the registration mode to its original value before any handler functions were added.
177  *
178  * le_mrc_SetManualRegisterMode() API registers on a cellular network.
179  *
180  * Call le_mrc_SetManualRegisterModeAsync() function to set the manual registration mode
181  * asynchronously. The function is not blocking. The response will be returned with the
182  * @c le_mrc_ManualSelectionHandlerFunc_t handler function.
183  *
184  * When the network registration fails, the platform specific network registration error code can
185  * be known by using le_mrc_GetPlatformSpecificRegistrationErrorCode() API.
186  * Please refer to @ref platformConstraintsSpecificErrorCodes for platform specific
187  * registration error code description.
188  *
189  * A sample code can be seen in the following page:
190  * - @subpage c_mrcNetworkRegistration
191  *
192  * @section le_mrc_service Packet services state
193  *
194  * le_mrc_GetPacketSwitchedState() API retrieves the current Packet Switched state
195  * @ref le_mrc_NetRegState_t.
196  *
197  * The Packet Switched services state can be:
198  * - NONE
199  * - HOME
200  * - ROAMING
201  *
202  * The application can register a handler function to retrieve the Packet
203  * Switched state each time the service state changes.
204  *
205  * le_mrc_AddPacketSwitchedChangeHandler() API installs a Packet Switched state handler.
206  *
207  * le_mrc_RemovePacketSwitchedChangeHandler() API uninstalls the handler function.
208  *
209  * A sample code can be seen in the following page:
210  * - @subpage c_mrcGetService
211  *
212  * @section le_mrc_signal Signal Quality
213  *
214  * le_mrc_GetSignalQual() retrieves the received signal strength details.
215  *
216  * You must call le_mrc_MeasureSignalMetrics() to measure the signal metrics of the serving cell
217  * (aka the 'serving' cell). It returns a reference of le_mrc_MetricsRef_t type.
218  *
219  * When the signal metrics are no longer needed, you must call le_mrc_DeleteSignalMetrics() to free
220  * all allocated ressources associated with the Metrics object.
221  *
222  * le_mrc_GetRatOfSignalMetrics() returns the Radio Access Technology of the signal measures.
223  *
224  * le_mrc_GetGsmSignalMetrics() the signal strength in dBm and the bit error rate measured on GSM
225  * network.
226  *
227  * le_mrc_GetUmtsSignalMetrics() returns the signal metrics measured on UMTS or TD-SCDMA networks.
228  *
229  * le_mrc_GetLteSignalMetrics() returns the signal metrics measured on LTE network.
230  *
231  * le_mrc_GetCdmaSignalMetrics() returns the signal metrics measured on CDMA network.
232  *
233  * The application can register a handler function to get notifications when the signal strength
234  * changes of a certain threshold value.
235  *
236  * le_mrc_AddSignalStrengthChangeHandler() API installs a signal strength change handler.
237  * The RAT, the lower-range and the upper-range thresholds must be passed as input parameters. These
238  * parameters are updated each time the function is called, the previous thresholds are replaced by
239  * the new ones if the function is called with the same RAT. The event is notified when we cross the
240  * range limits in both direction.
241  *
242  * @warning The threshold values must be in the allowed platform range and the RAT must be valid,
243  * else, it's a fatal error, le_mrc_AddSignalStrengthChangeHandler API won't return.
244  *
245  * le_mrc_RemoveSignalStrengthChangeHandler() API uninstalls the handler function.
246  *
247  * le_mrc_SetSignalStrengthIndThresholds() API changes or sets new thresholds.
248  *
249  * le_mrc_SetSignalStrengthIndDelta() API sets a signal strength indication delta value for a
250  * specific RAT. The event is notified when the delta range is crossed in both direction.
251  *
252  * A sample code can be seen in the following page:
253  * - @subpage c_mrcQuality
254  *
255  * @section le_mrc_location Serving cell's location information
256  *
257  * le_mrc_GetServingCellId() retrieves the the serving Cell Identifier.
258  *
259  * le_mrc_GetServingCellLocAreaCode() retrieves the Location Area Code of the serving cell.
260  *
261  * le_mrc_GetServingCellLteTracAreaCode() retrieves the the Tracking Area Code of the serving cell
262  * (LTE only).
263  *
264  * A sample code can be seen in the following page:
265  * - @subpage c_mrcLocationinformation
266  *
267  * @section le_mrc_network_information Current Network Information
268  * le_mrc_GetCurrentNetworkName() retrieves the Current Network Name.
269  * le_mrc_GetCurrentNetworkMccMnc() retrieves the Current Network PLMN information.
270  *
271  * A sample code can be seen in the following page:
272  * - @subpage c_mrcGetCurrentNetwork
273  *
274  * @section le_mrc_networkScan Network Scan
275  *
276  * Call le_mrc_PerformCellularNetworkScan() to fill a list of all network in sight.
277  * You can go through all Scan Information by calling le_mrc_GetFirstCellularNetworkScan() and
278  * le_mrc_GetNextCellularNetworkScan().
279  *
280  * Call le_mrc_PerformCellularNetworkScanAsync() to start a network scan asynchronously. The
281  * function is not blocking. The scan list reference will be returned with the handler function
282  * response (@c le_mrc_CellularNetworkScanHandlerFunc_t).
283  *
284  * For each Scan Information, you can call:
285  *
286  * - le_mrc_GetCellularNetworkMccMnc() to have the operator code.
287  * - le_mrc_GetCellularNetworkName() to get the operator name.
288  * - le_mrc_GetCellularNetworkRat() to get the radio access technology.
289  * - le_mrc_IsCellularNetworkInUse() to check if this is currently in use by the network.
290  * - le_mrc_IsCellularNetworkAvailable() to check if this is available.
291  * - le_mrc_IsCellularNetworkHome() to check if this is in home status.
292  * - le_mrc_IsCellularNetworkForbidden() to check if this is forbidden by the network.
293  *
294  * le_mrc_DeleteCellularNetworkScan() should be called when you do not need the list anymore.
295  *
296  * A sample code can be seen in the following page:
297  * - @subpage c_mrcNetworkScan
298  *
299  * @section le_mrc_ngbr Neighboring Cells Information
300  *
301  * @warning The following functions do not apply to CDMA network.
302  *
303  * You must call le_mrc_GetNeighborCellsInfo() to retrieve the neighboring cells
304  * information. It returns a reference of le_mrc_NeighborCellsRef_t type.
305  *
306  * When the neighboring cells information is no longer needed, you must call
307  * le_mrc_DeleteNeighborCellsInfo() to free all allocated resources associated with the
308  * object.
309  *
310  * Then, you can use the following function to get the information:
311  * - le_mrc_GetFirstNeighborCellInfo() and le_mrc_GetFirstNeighborCellInfo() allow to go among
312  * the single cell information retrieved with le_mrc_GetNeighborCellsInfo(). These two functions
313  * return a reference of le_mrc_CellInfoRef_t type.
314  * - le_mrc_GetNeighborCellId() gets the identifier of the cell specified with the
315  * le_mrc_CellInfoRef_t parameter (can be called for any kind of RAT). UINT32_MAX value is
316  * returned if the value is not available.
317  * - le_mrc_GetNeighborCellLocAreaCode() gets the location area code of the cell specified with the
318  * le_mrc_CellInfoRef_t parameter (can be called for any kind of RAT). UINT16_MAX value is
319  * returned if the value is not available.
320  * - le_mrc_GetNeighborCellRxLevel() gets the signal strength (in dBm) of the cell specified with
321  * the le_mrc_CellInfoRef_t parameter (can be called for any kind of RAT).
322  * - le_mrc_GetNeighborCellRat() gets the Radio Access Technology of the cell specified with
323  * the le_mrc_CellInfoRef_t parameter.
324  * - le_mrc_GetNeighborCellUmtsEcIo() gets the Ec/Io (the received energy per chip divided by the
325  * power density in the band measured in dBm on the primary CPICH channel of serving cell) of the
326  * cell specified with the le_mrc_CellInfoRef_t parameter.
327  * - le_mrc_GetNeighborCellLteIntraFreq() gets the RSRP and RSRQ of the Interfrequency of the cell
328  * specified with the le_mrc_CellInfoRef_t parameter.
329  * - le_mrc_GetNeighborCellLteInterFreq() gets the RSRP and RSRQ of the Interfrequency of the cell
330  * specified with the le_mrc_CellInfoRef_t parameter.
331  *
332  * A sample code can be seen in the following page:
333  * - @subpage c_mrcNeighborCells
334  *
335  * @section le_mrc_jamming Jamming detection
336  *
337  * The jamming detection algorithm is based on power measurements and cell synchronization actions
338  * performed during a GSM network scan procedure.
339  * During this procedure some intermediate results are reported, that allows user to take some
340  * preventive actions if necessary.
341  * This result is reported as a jammed state probability. See @ref le_mrc_JammingStatus_t
342  * enumeration for probability description.
343  * Each time the jamming status changes during the scan procedure, it is reported to the user.
344  * See @ref le_mrc_JammingReport_t enumeration for details.
345  *
346  * The jamming status is reported:
347  * - In an unsolicited way, each time the protocol stack initiates a scan for PLMN selection or
348  * reselection.
349  * - On user demand, when a user PLMN scan is performed.
350  *
351  * Call le_mrc_StartJammingDetection() to launch jamming monitoring.
352  * By registering a handler by calling le_mrc_AddJammingDetectionEventHandler(), the notification
353  * on jamming detection can be sent to the registered application.
354  *
355  * For each jamming detection monitoring, the following APIs can be called:
356  * - le_mrc_StartJammingDetection() to start the jamming monitoring.
357  * - le_mrc_StopJammingDetection() to stop the jamming monitoring.
358  * - le_mrc_AddJammingDetectionEventHandler() to register an event handler.
359  * - le_mrc_RemoveJammingDetectionEventHandler() to remove an event handler.
360  *
361  * <HR>
362  *
363  * Copyright (C) Sierra Wireless Inc.
364  */
365 /**
366  * @page c_mrcRadioPower Sample code for Radio Power Management
367  *
368  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Radio Power
369  */
370 /**
371  * @page c_mrcRadioConfigurationPreferences Sample code for Radio Configuration Preferences
372  *
373  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Band Preferences
374  *
375  */
376 /**
377  * @page c_mrcRAT Sample code for Radio Access Technology
378  *
379  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" RAT in Use
380  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" RAT Preferences
381  *
382  */
383 /**
384  * @page c_mrcNetworkRegistration Sample code for Network Registration
385  *
386  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Register
387  *
388  */
389 /**
390  * @page c_mrcQuality Sample code for Signal Quality
391  *
392  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Signal Quality
393  *
394  */
395 /**
396  * @page c_mrcLocationinformation Sample code for Location information
397  *
398  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Loc information
399  *
400  */
401 /**
402  * @page c_mrcBandCapabilities Sample code for Band Capabilities
403  *
404  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Band Capabilities
405  *
406  */
407 /**
408  * @page c_mrcGetCurrentNetwork Sample code for Get Current Network Information
409  *
410  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Get Network
411  *
412  */
413 /**
414  * @page c_mrcNetworkScan Sample code for Network Scan
415  *
416  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Network Scan
417  *
418  */
419 /**
420  * @page c_mrcNeighborCells Sample code for Neighboring Cells Information
421  *
422  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Neighbor Cells
423  *
424  */
425 /**
426  * @page c_mrcGetService Sample code for Get the Current Packet Switched state
427  *
428  * @snippet "apps/test/modemServices/mrc/mrcIntegrationTest/mrcTest/le_mrcTest.c" Service State
429  *
430  */
431 /**
432  * @file le_mrc_interface.h
433  *
434  * Legato @ref c_mrc include file.
435  *
436  * Copyright (C) Sierra Wireless Inc.
437  */
438 
439 #ifndef LE_MRC_INTERFACE_H_INCLUDE_GUARD
440 #define LE_MRC_INTERFACE_H_INCLUDE_GUARD
441 
442 
443 #include "legato.h"
444 
445 
446 //--------------------------------------------------------------------------------------------------
447 /**
448  * Type for handler called when a server disconnects.
449  */
450 //--------------------------------------------------------------------------------------------------
451 typedef void (*le_mrc_DisconnectHandler_t)(void *);
452 
453 //--------------------------------------------------------------------------------------------------
454 /**
455  *
456  * Connect the current client thread to the service providing this API. Block until the service is
457  * available.
458  *
459  * For each thread that wants to use this API, either ConnectService or TryConnectService must be
460  * called before any other functions in this API. Normally, ConnectService is automatically called
461  * for the main thread, but not for any other thread. For details, see @ref apiFilesC_client.
462  *
463  * This function is created automatically.
464  */
465 //--------------------------------------------------------------------------------------------------
467 (
468  void
469 );
470 
471 //--------------------------------------------------------------------------------------------------
472 /**
473  *
474  * Try to connect the current client thread to the service providing this API. Return with an error
475  * if the service is not available.
476  *
477  * For each thread that wants to use this API, either ConnectService or TryConnectService must be
478  * called before any other functions in this API. Normally, ConnectService is automatically called
479  * for the main thread, but not for any other thread. For details, see @ref apiFilesC_client.
480  *
481  * This function is created automatically.
482  *
483  * @return
484  * - LE_OK if the client connected successfully to the service.
485  * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is
486  * bound.
487  * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
488  * - LE_COMM_ERROR if the Service Directory cannot be reached.
489  */
490 //--------------------------------------------------------------------------------------------------
492 (
493  void
494 );
495 
496 //--------------------------------------------------------------------------------------------------
497 /**
498  * Set handler called when server disconnection is detected.
499  *
500  * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants
501  * to continue without exiting, it should call longjmp() from inside the handler.
502  */
503 //--------------------------------------------------------------------------------------------------
505 (
506  le_mrc_DisconnectHandler_t disconnectHandler,
507  void *contextPtr
508 );
509 
510 //--------------------------------------------------------------------------------------------------
511 /**
512  *
513  * Disconnect the current client thread from the service providing this API.
514  *
515  * Normally, this function doesn't need to be called. After this function is called, there's no
516  * longer a connection to the service, and the functions in this API can't be used. For details, see
517  * @ref apiFilesC_client.
518  *
519  * This function is created automatically.
520  */
521 //--------------------------------------------------------------------------------------------------
523 (
524  void
525 );
526 
527 
528 //--------------------------------------------------------------------------------------------------
529 /**
530  * Mobile Country Code length
531  */
532 //--------------------------------------------------------------------------------------------------
533 #define LE_MRC_MCC_LEN 3
534 
535 //--------------------------------------------------------------------------------------------------
536 /**
537  * Mobile Country Code length
538  * One extra byte is added for the null character.
539  */
540 //--------------------------------------------------------------------------------------------------
541 #define LE_MRC_MCC_BYTES 4
542 
543 //--------------------------------------------------------------------------------------------------
544 /**
545  * Mobile Network Code length
546  */
547 //--------------------------------------------------------------------------------------------------
548 #define LE_MRC_MNC_LEN 3
549 
550 //--------------------------------------------------------------------------------------------------
551 /**
552  * Mobile Network Code length
553  * One extra byte is added for the null character.
554  */
555 //--------------------------------------------------------------------------------------------------
556 #define LE_MRC_MNC_BYTES 4
557 
558 //--------------------------------------------------------------------------------------------------
559 /**
560  * Cellular Network length.
561  *
562  */
563 //--------------------------------------------------------------------------------------------------
564 #define LE_MRC_NETWORK_NAME_MAX_LEN 100
565 
566 //--------------------------------------------------------------------------------------------------
567 /**
568  * 2G/3G Band Bit Mask (64 bits)
569  */
570 //--------------------------------------------------------------------------------------------------
571 typedef enum
572 {
573  LE_MRC_BITMASK_BAND_CLASS_0_A_SYSTEM = 0x1,
574  LE_MRC_BITMASK_BAND_CLASS_0_B_SYSTEM = 0x2,
575  LE_MRC_BITMASK_BAND_CLASS_1_ALL_BLOCKS = 0x4,
576  LE_MRC_BITMASK_BAND_CLASS_2_PLACEHOLDER = 0x8,
577  LE_MRC_BITMASK_BAND_CLASS_3_A_SYSTEM = 0x10,
578  LE_MRC_BITMASK_BAND_CLASS_4_ALL_BLOCKS = 0x20,
579  LE_MRC_BITMASK_BAND_CLASS_5_ALL_BLOCKS = 0x40,
580  LE_MRC_BITMASK_BAND_CLASS_6 = 0x80,
581  LE_MRC_BITMASK_BAND_CLASS_7 = 0x100,
582  LE_MRC_BITMASK_BAND_CLASS_8 = 0x200,
583  LE_MRC_BITMASK_BAND_CLASS_9 = 0x400,
584  LE_MRC_BITMASK_BAND_CLASS_10 = 0x800,
585  LE_MRC_BITMASK_BAND_CLASS_11 = 0x1000,
586  LE_MRC_BITMASK_BAND_CLASS_12 = 0x2000,
587  LE_MRC_BITMASK_BAND_CLASS_14 = 0x4000,
588  LE_MRC_BITMASK_BAND_CLASS_15 = 0x8000,
589  LE_MRC_BITMASK_BAND_CLASS_16 = 0x10000,
590  LE_MRC_BITMASK_BAND_CLASS_17 = 0x20000,
591  LE_MRC_BITMASK_BAND_CLASS_18 = 0x40000,
592  LE_MRC_BITMASK_BAND_CLASS_19 = 0x80000,
593  LE_MRC_BITMASK_BAND_GSM_DCS_1800 = 0x100000,
594  LE_MRC_BITMASK_BAND_EGSM_900 = 0x200000,
595  LE_MRC_BITMASK_BAND_PRI_GSM_900 = 0x400000,
596  LE_MRC_BITMASK_BAND_GSM_450 = 0x800000,
597  LE_MRC_BITMASK_BAND_GSM_480 = 0x1000000,
598  LE_MRC_BITMASK_BAND_GSM_750 = 0x2000000,
599  LE_MRC_BITMASK_BAND_GSM_850 = 0x4000000,
600  LE_MRC_BITMASK_BAND_GSMR_900 = 0x8000000,
601  LE_MRC_BITMASK_BAND_GSM_PCS_1900 = 0x10000000,
602  LE_MRC_BITMASK_BAND_WCDMA_EU_J_CH_IMT_2100 = 0x20000000,
603  LE_MRC_BITMASK_BAND_WCDMA_US_PCS_1900 = 0x40000000,
604  LE_MRC_BITMASK_BAND_WCDMA_EU_CH_DCS_1800 = 0x80000000,
605  LE_MRC_BITMASK_BAND_WCDMA_US_1700 = 0x100000000,
606  LE_MRC_BITMASK_BAND_WCDMA_US_850 = 0x200000000,
607  LE_MRC_BITMASK_BAND_WCDMA_J_800 = 0x400000000,
608  LE_MRC_BITMASK_BAND_WCDMA_EU_2600 = 0x800000000,
609  LE_MRC_BITMASK_BAND_WCDMA_EU_J_900 = 0x1000000000,
610  LE_MRC_BITMASK_BAND_WCDMA_J_1700 = 0x2000000000
611 }
613 
614 
615 //--------------------------------------------------------------------------------------------------
616 /**
617  * LTE Band Bit Mask (32bits)
618  *
619  */
620 //--------------------------------------------------------------------------------------------------
621 typedef enum
622 {
623  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_1 = 0x1,
624  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_2 = 0x2,
625  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_3 = 0x4,
626  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_4 = 0x8,
627  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_5 = 0x10,
628  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_6 = 0x20,
629  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_7 = 0x40,
630  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_8 = 0x80,
631  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_9 = 0x100,
632  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_10 = 0x200,
633  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_11 = 0x400,
634  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_12 = 0x800,
635  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_13 = 0x1000,
636  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_14 = 0x2000,
637  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_17 = 0x4000,
638  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_18 = 0x8000,
639  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_19 = 0x10000,
640  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_20 = 0x20000,
641  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_21 = 0x40000,
642  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_24 = 0x80000,
643  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_25 = 0x100000,
644  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_33 = 0x200000,
645  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_34 = 0x400000,
646  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_35 = 0x800000,
647  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_36 = 0x1000000,
648  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_37 = 0x2000000,
649  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_38 = 0x4000000,
650  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_39 = 0x8000000,
651  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_40 = 0x10000000,
652  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_41 = 0x20000000,
653  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_42 = 0x40000000,
654  LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_43 = 0x80000000
655 }
657 
658 
659 //--------------------------------------------------------------------------------------------------
660 /**
661  * TDSCDMA Band Bit Mask
662  *
663  */
664 //--------------------------------------------------------------------------------------------------
665 typedef enum
666 {
667  LE_MRC_BITMASK_TDSCDMA_BAND_A = 0x1,
668  LE_MRC_BITMASK_TDSCDMA_BAND_B = 0x2,
669  LE_MRC_BITMASK_TDSCDMA_BAND_C = 0x4,
670  LE_MRC_BITMASK_TDSCDMA_BAND_D = 0x8,
671  LE_MRC_BITMASK_TDSCDMA_BAND_E = 0x10,
672  LE_MRC_BITMASK_TDSCDMA_BAND_F = 0x20
673 }
675 
676 
677 //--------------------------------------------------------------------------------------------------
678 /**
679  * Reference type for referring to MRC Scan Information objects.
680  */
681 //--------------------------------------------------------------------------------------------------
682 typedef struct le_mrc_ScanInformation* le_mrc_ScanInformationRef_t;
683 
684 
685 //--------------------------------------------------------------------------------------------------
686 /**
687  * Reference type for Scan Information Listing.
688  */
689 //--------------------------------------------------------------------------------------------------
690 typedef struct le_mrc_ScanInformationList* le_mrc_ScanInformationListRef_t;
691 
692 
693 //--------------------------------------------------------------------------------------------------
694 /**
695  * Reference type for referring to the Preferred Operator objects.
696  */
697 //--------------------------------------------------------------------------------------------------
698 typedef struct le_mrc_PreferredOperator* le_mrc_PreferredOperatorRef_t;
699 
700 
701 //--------------------------------------------------------------------------------------------------
702 /**
703  * Reference type for Preferred Operator Listing.
704  */
705 //--------------------------------------------------------------------------------------------------
706 typedef struct le_mrc_PreferredOperatorList* le_mrc_PreferredOperatorListRef_t;
707 
708 
709 //--------------------------------------------------------------------------------------------------
710 /**
711  * Reference type for one Cell Information.
712  */
713 //--------------------------------------------------------------------------------------------------
714 typedef struct le_mrc_CellInfo* le_mrc_CellInfoRef_t;
715 
716 
717 //--------------------------------------------------------------------------------------------------
718 /**
719  * Reference type for all Neighboring Cells Information.
720  */
721 //--------------------------------------------------------------------------------------------------
722 typedef struct le_mrc_NeighborCells* le_mrc_NeighborCellsRef_t;
723 
724 
725 //--------------------------------------------------------------------------------------------------
726 /**
727  * Reference type for the signal metrics.
728  */
729 //--------------------------------------------------------------------------------------------------
730 typedef struct le_mrc_Metrics* le_mrc_MetricsRef_t;
731 
732 
733 //--------------------------------------------------------------------------------------------------
734 /**
735  * Network Registration states.
736  */
737 //--------------------------------------------------------------------------------------------------
738 typedef enum
739 {
741  ///< Not registered and not currently searching for new operator.
743  ///< Registered, home network.
745  ///< Not registered but currently searching for a new operator.
747  ///< Registration was denied, usually because of invalid access credentials.
749  ///< Registered to a roaming network.
751  ///< Unknown state.
752 }
754 
755 
756 //--------------------------------------------------------------------------------------------------
757 /**
758  * Radio Access Technology enum
759  */
760 //--------------------------------------------------------------------------------------------------
761 typedef enum
762 {
764  ///< Unknown
766  ///< GSM network
768  ///< UMTS networks
770  ///< TD-SCDMA networks
772  ///< LTE network
774  ///< CDMA network
775 }
777 
778 
779 //--------------------------------------------------------------------------------------------------
780 /**
781  * Jamming detection report type enum
782  *
783  * @note If the reported status is the final status (end of the procedure), this shall be indicated
784  * within the status report.
785  * @note Other reports, called intermediate reports, gives only intermediate results issuing from
786  * the algorithm
787  */
788 //--------------------------------------------------------------------------------------------------
789 typedef enum
790 {
792  ///< Final jamming status report
794  ///< Intermediate jamming status report
795 }
797 
798 
799 //--------------------------------------------------------------------------------------------------
800 /**
801  * Jamming detection status type enum
802  *
803  * @note The final status can be only NULL or JAMMED.
804  */
805 //--------------------------------------------------------------------------------------------------
806 typedef enum
807 {
809  ///< Status is unknown
811  ///< No jamming suspicion; radio environment is considered normal
813  ///< Low probability that the device is jammed, but some radio
814  ///< environment parameters are considered abnormal
816  ///< Medium probability that the device is jammed; a lot of
817  ///< interferences in the radio spectrum
819  ///< High probability that the device is jammed; radio environment is
820  ///< considered jammed, but there is still a possibility that the module
821  ///< succeeds in synchronizing a cell
823  ///< Module is jammed; cell synchronization impossible while sufficient
824  ///< power level is detected on a large number of frequencies
825 }
827 
828 
829 //--------------------------------------------------------------------------------------------------
830 /**
831  * Radio Bitmask Access Technology Bit Mask
832  */
833 //--------------------------------------------------------------------------------------------------
834 typedef enum
835 {
836  LE_MRC_BITMASK_RAT_GSM = 0x1, ///< GSM RAT Bit Mask
837  LE_MRC_BITMASK_RAT_UMTS = 0x2, ///< UMTS RAT Bit Mask
838  LE_MRC_BITMASK_RAT_TDSCDMA = 0x4, ///< TD-SCDMA RAT Bit Mask
839  LE_MRC_BITMASK_RAT_LTE = 0x8, ///< LTE RAT Bit Mask
840  LE_MRC_BITMASK_RAT_CDMA = 0x10, ///< CDMA RAT Bit Mask
841  LE_MRC_BITMASK_RAT_ALL = 0x20, ///< To Set all RAT preference Bit Mask
842  LE_MRC_BITMASK_RAT_MAX = 0x40
843 }
845 
846 
847 //--------------------------------------------------------------------------------------------------
848 /**
849  * Reference type used by Add/Remove functions for EVENT 'le_mrc_NetRegStateEvent'
850  */
851 //--------------------------------------------------------------------------------------------------
852 typedef struct le_mrc_NetRegStateEventHandler* le_mrc_NetRegStateEventHandlerRef_t;
853 
854 
855 //--------------------------------------------------------------------------------------------------
856 /**
857  * Reference type used by Add/Remove functions for EVENT 'le_mrc_RatChange'
858  */
859 //--------------------------------------------------------------------------------------------------
860 typedef struct le_mrc_RatChangeHandler* le_mrc_RatChangeHandlerRef_t;
861 
862 
863 //--------------------------------------------------------------------------------------------------
864 /**
865  * Reference type used by Add/Remove functions for EVENT 'le_mrc_PacketSwitchedChange'
866  */
867 //--------------------------------------------------------------------------------------------------
868 typedef struct le_mrc_PacketSwitchedChangeHandler* le_mrc_PacketSwitchedChangeHandlerRef_t;
869 
870 
871 //--------------------------------------------------------------------------------------------------
872 /**
873  * Reference type used by Add/Remove functions for EVENT 'le_mrc_SignalStrengthChange'
874  */
875 //--------------------------------------------------------------------------------------------------
876 typedef struct le_mrc_SignalStrengthChangeHandler* le_mrc_SignalStrengthChangeHandlerRef_t;
877 
878 
879 //--------------------------------------------------------------------------------------------------
880 /**
881  * Reference type used by Add/Remove functions for EVENT 'le_mrc_NetworkReject'
882  */
883 //--------------------------------------------------------------------------------------------------
884 typedef struct le_mrc_NetworkRejectHandler* le_mrc_NetworkRejectHandlerRef_t;
885 
886 
887 //--------------------------------------------------------------------------------------------------
888 /**
889  * Reference type used by Add/Remove functions for EVENT 'le_mrc_JammingDetectionEvent'
890  */
891 //--------------------------------------------------------------------------------------------------
892 typedef struct le_mrc_JammingDetectionEventHandler* le_mrc_JammingDetectionEventHandlerRef_t;
893 
894 
895 //--------------------------------------------------------------------------------------------------
896 /**
897  * Handler for Network registration state changes.
898  *
899  */
900 //--------------------------------------------------------------------------------------------------
901 typedef void (*le_mrc_NetRegStateHandlerFunc_t)
902 (
903  le_mrc_NetRegState_t state,
904  ///< Parameter ready to receive the Network Registration state.
905  void* contextPtr
906  ///<
907 );
908 
909 //--------------------------------------------------------------------------------------------------
910 /**
911  * Handler for Radio Access Technology changes.
912  *
913  */
914 //--------------------------------------------------------------------------------------------------
915 typedef void (*le_mrc_RatChangeHandlerFunc_t)
916 (
917  le_mrc_Rat_t rat,
918  ///< Parameter ready to receive the Radio Access Technology.
919  void* contextPtr
920  ///<
921 );
922 
923 //--------------------------------------------------------------------------------------------------
924 /**
925  * Handler for Packet Switched service state changes.
926  *
927  */
928 //--------------------------------------------------------------------------------------------------
930 (
931  le_mrc_NetRegState_t state,
932  ///< Parameter ready to receive the Packet Switched service state.
933  void* contextPtr
934  ///<
935 );
936 
937 //--------------------------------------------------------------------------------------------------
938 /**
939  * Handler for Signal Strength value changes.
940  *
941  */
942 //--------------------------------------------------------------------------------------------------
944 (
945  int32_t ss,
946  ///< Signal strength in dBm
947  void* contextPtr
948  ///<
949 );
950 
951 //--------------------------------------------------------------------------------------------------
952 /**
953  * Handler for cellular asynchronous network scan Sending result.
954  * Returns the reference to the List object. Null pointer if the scan failed.
955  *
956  */
957 //--------------------------------------------------------------------------------------------------
959 (
961  ///< Reference to the List object. Null pointer if the
962  ///< scan failed.
963  void* contextPtr
964  ///<
965 );
966 
967 //--------------------------------------------------------------------------------------------------
968 /**
969  * Handler for asynchronous manual selection response
970  *
971  */
972 //--------------------------------------------------------------------------------------------------
974 (
975  le_result_t result,
976  ///< Manual selection response
977  void* contextPtr
978  ///<
979 );
980 
981 //--------------------------------------------------------------------------------------------------
982 /**
983  * Handler to report network reject indication.
984  *
985  */
986 //--------------------------------------------------------------------------------------------------
987 typedef void (*le_mrc_NetworkRejectHandlerFunc_t)
988 (
989  const char* LE_NONNULL mcc,
990  ///< Mobile Country Code
991  const char* LE_NONNULL mnc,
992  ///< Mobile Network Code
993  le_mrc_Rat_t rat,
994  ///< Radio Access Technology.
995  void* contextPtr
996  ///<
997 );
998 
999 //--------------------------------------------------------------------------------------------------
1000 /**
1001  * Handler for jamming detection event.
1002  */
1003 //--------------------------------------------------------------------------------------------------
1006  le_mrc_JammingReport_t report,
1007  ///< Report type.
1008  le_mrc_JammingStatus_t status,
1009  ///< Jamming detection status.
1010  void* contextPtr
1011  ///<
1012 );
1013 
1014 //--------------------------------------------------------------------------------------------------
1015 /**
1016  * Add handler function for EVENT 'le_mrc_NetRegStateEvent'
1017  *
1018  * This event provides information on network registration state changes.
1019  *
1020  * @note <b>multi-app safe</b>
1021  */
1022 //--------------------------------------------------------------------------------------------------
1024 (
1026  ///< [IN]
1027  void* contextPtr
1028  ///< [IN]
1029 );
1030 
1031 //--------------------------------------------------------------------------------------------------
1032 /**
1033  * Remove handler function for EVENT 'le_mrc_NetRegStateEvent'
1034  */
1035 //--------------------------------------------------------------------------------------------------
1037 (
1039  ///< [IN]
1040 );
1041 
1042 //--------------------------------------------------------------------------------------------------
1043 /**
1044  * Add handler function for EVENT 'le_mrc_RatChange'
1045  *
1046  * This event provides information on Radio Access Technology changes.
1047  *
1048  * @note <b>multi-app safe</b>
1049  */
1050 //--------------------------------------------------------------------------------------------------
1052 (
1053  le_mrc_RatChangeHandlerFunc_t handlerPtr,
1054  ///< [IN]
1055  void* contextPtr
1056  ///< [IN]
1057 );
1058 
1059 //--------------------------------------------------------------------------------------------------
1060 /**
1061  * Remove handler function for EVENT 'le_mrc_RatChange'
1062  */
1063 //--------------------------------------------------------------------------------------------------
1065 (
1066  le_mrc_RatChangeHandlerRef_t handlerRef
1067  ///< [IN]
1068 );
1069 
1070 //--------------------------------------------------------------------------------------------------
1071 /**
1072  * Add handler function for EVENT 'le_mrc_PacketSwitchedChange'
1073  *
1074  * This event provides information on Packet Switched service changes.
1075  *
1076  * @note <b>multi-app safe</b>
1077  */
1078 //--------------------------------------------------------------------------------------------------
1080 (
1082  ///< [IN]
1083  void* contextPtr
1084  ///< [IN]
1085 );
1086 
1087 //--------------------------------------------------------------------------------------------------
1088 /**
1089  * Remove handler function for EVENT 'le_mrc_PacketSwitchedChange'
1090  */
1091 //--------------------------------------------------------------------------------------------------
1093 (
1095  ///< [IN]
1096 );
1097 
1098 //--------------------------------------------------------------------------------------------------
1099 /**
1100  * Add handler function for EVENT 'le_mrc_SignalStrengthChange'
1101  *
1102  * This event provides information on Signal Strength value changes.
1103  *
1104  * @note <b>NOT multi-app safe</b>
1105  */
1106 //--------------------------------------------------------------------------------------------------
1108 (
1109  le_mrc_Rat_t rat,
1110  ///< [IN] Radio Access Technology
1111  int32_t lowerRangeThreshold,
1112  ///< [IN] Lower-range Signal strength threshold in dBm
1113  int32_t upperRangeThreshold,
1114  ///< [IN] Upper-range Signal strength threshold in dBm
1116  ///< [IN]
1117  void* contextPtr
1118  ///< [IN]
1119 );
1120 
1121 //--------------------------------------------------------------------------------------------------
1122 /**
1123  * Remove handler function for EVENT 'le_mrc_SignalStrengthChange'
1124  */
1125 //--------------------------------------------------------------------------------------------------
1127 (
1129  ///< [IN]
1130 );
1131 
1132 //--------------------------------------------------------------------------------------------------
1133 /**
1134  * This function sets signal strength indication thresholds for a specific RAT.
1135  *
1136  * @return
1137  * - LE_OK Function succeeded.
1138  * - LE_BAD_PARAMETER Bad parameters
1139  * - LE_FAULT Function failed.
1140  *
1141  * @note <b>NOT multi-app safe</b>
1142  */
1143 //--------------------------------------------------------------------------------------------------
1145 (
1146  le_mrc_Rat_t rat,
1147  ///< [IN] Radio Access Technology
1148  int32_t lowerRangeThreshold,
1149  ///< [IN] Lower-range Signal strength threshold in dBm
1150  int32_t upperRangeThreshold
1151  ///< [IN] Upper-range Signal strength threshold in dBm
1152 );
1153 
1154 //--------------------------------------------------------------------------------------------------
1155 /**
1156  * This function sets a signal strength indication delta for a specific RAT.
1157  *
1158  * @return
1159  * - LE_OK Function succeeded.
1160  * - LE_BAD_PARAMETER Bad parameters.
1161  * - LE_FAULT Function failed.
1162  *
1163  * @note The signal delta is set in units of 0.1 dBm. For example, to set a delta of 10.6 dBm, the
1164  * delta value must be set to 106.
1165  *
1166  * @warning The signal delta resolution is platform dependent. Please refer to
1167  * @ref platformConstraintsModemRadiocontrol section for full details.
1168  */
1169 //--------------------------------------------------------------------------------------------------
1171 (
1172  le_mrc_Rat_t rat,
1173  ///< [IN] Radio Access Technology
1174  uint16_t delta
1175  ///< [IN] Signal delta in units of 0.1 dBm
1176 );
1177 
1178 //--------------------------------------------------------------------------------------------------
1179 /**
1180  * Enable the automatic Selection Register mode.
1181  *
1182  * @return
1183  * - LE_FAULT Function failed.
1184  * - LE_OK Function succeeded.
1185  *
1186  * @note <b>NOT multi-app safe</b>
1187  */
1188 //--------------------------------------------------------------------------------------------------
1190 (
1191  void
1192 );
1193 
1194 //--------------------------------------------------------------------------------------------------
1195 /**
1196  * Set the manual Selection Register mode with the MCC/MNC parameters.
1197  *
1198  * @return
1199  * - LE_FAULT Function failed.
1200  * - LE_OK Function succeeded.
1201  *
1202  * @note If strings are not set, too long (bigger than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN digits), or too
1203  * short (less than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN-1 digits) it's a fatal error, the function
1204  * won't return.
1205  *
1206  * @note <b>NOT multi-app safe</b>
1207  */
1208 //--------------------------------------------------------------------------------------------------
1210 (
1211  const char* LE_NONNULL mcc,
1212  ///< [IN] Mobile Country Code
1213  const char* LE_NONNULL mnc
1214  ///< [IN] Mobile Network Code
1215 );
1216 
1217 //--------------------------------------------------------------------------------------------------
1218 /**
1219  * Set the manual selection register mode asynchronously. This function is not blocking,
1220  * the response will be returned with a handler function.
1221  *
1222  * @note If strings are not set, too long (bigger than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN digits), or too
1223  * short (less than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN-1 digits) it's a fatal error, the function
1224  * won't return.
1225  *
1226  *@note <b>NOT multi-app safe</b>
1227  *
1228  */
1229 //--------------------------------------------------------------------------------------------------
1231 (
1232  const char* LE_NONNULL mcc,
1233  ///< [IN] Mobile Country Code
1234  const char* LE_NONNULL mnc,
1235  ///< [IN] Mobile Network Code
1237  ///< [IN] handler for sending result
1238  void* contextPtr
1239  ///< [IN]
1240 );
1241 
1242 //--------------------------------------------------------------------------------------------------
1243 /**
1244  * Get the selected Selection Register mode.
1245  *
1246  * @return
1247  * - LE_FAULT Function failed.
1248  * - LE_OK Function succeeded.
1249  *
1250  * @note <b>multi-app safe</b>
1251  */
1252 //--------------------------------------------------------------------------------------------------
1254 (
1255  bool* isManualPtrPtr,
1256  ///< [OUT] true if the scan mode is manual, false if the scan mode is automatic.
1257  char* mccPtr,
1258  ///< [OUT] Mobile Country Code
1259  size_t mccPtrSize,
1260  ///< [IN]
1261  char* mncPtr,
1262  ///< [OUT] Mobile Network Code
1263  size_t mncPtrSize
1264  ///< [IN]
1265 );
1266 
1267 //--------------------------------------------------------------------------------------------------
1268 /**
1269  * Get the Packet Switched state.
1270  *
1271  * @return
1272  * - LE_FAULT Function failed.
1273  * - LE_OK Function succeeded.
1274  *
1275  * @note <b>multi-app safe</b>
1276  */
1277 //--------------------------------------------------------------------------------------------------
1279 (
1280  le_mrc_NetRegState_t* statePtr
1281  ///< [OUT] The current Packet switched state.
1282 );
1283 
1284 //--------------------------------------------------------------------------------------------------
1285 /**
1286  * Get the platform specific network registration error code.
1287  *
1288  * Refer to @ref platformConstraintsSpecificErrorCodes for platform specific
1289  * registration error code description.
1290  *
1291  * @return the platform specific registration error code
1292  *
1293  */
1294 //--------------------------------------------------------------------------------------------------
1296 (
1297  void
1298 );
1299 
1300 //--------------------------------------------------------------------------------------------------
1301 /**
1302  * Set the Radio Access Technology preferences by using a bit mask.
1303  *
1304  * @return
1305  * - LE_FAULT Function failed.
1306  * - LE_OK Function succeeded.
1307  * - LE_UNSUPPORTED Not supported by platform.
1308  *
1309  * @note <b>NOT multi-app safe</b>
1310  */
1311 //--------------------------------------------------------------------------------------------------
1313 (
1314  le_mrc_RatBitMask_t ratMask
1315  ///< [IN] Bit mask for the Radio Access Technology preferences.
1316 );
1317 
1318 //--------------------------------------------------------------------------------------------------
1319 /**
1320  * Get the Radio Access Technology preferences
1321  *
1322  * @return
1323  * - LE_FAULT Function failed.
1324  * - LE_OK Function succeeded.
1325  *
1326  * @note <b>multi-app safe</b>
1327  */
1328 //--------------------------------------------------------------------------------------------------
1330 (
1331  le_mrc_RatBitMask_t* ratMaskPtrPtr
1332  ///< [OUT] Bit mask for the Radio Access Technology preferences.
1333 );
1334 
1335 //--------------------------------------------------------------------------------------------------
1336 /**
1337  * Set the 2G/3G Band preferences by using a bit mask.
1338  *
1339  * @return
1340  * - LE_FAULT Function failed.
1341  * - LE_OK Function succeeded.
1342  *
1343  * @note <b>NOT multi-app safe</b>
1344  */
1345 //--------------------------------------------------------------------------------------------------
1347 (
1348  le_mrc_BandBitMask_t bandMask
1349  ///< [IN] Bit mask for 2G/3G Band preferences.
1350 );
1351 
1352 //--------------------------------------------------------------------------------------------------
1353 /**
1354  * Get the Bit mask for 2G/3G Band preferences.
1355  *
1356  * @return
1357  * - LE_FAULT Function failed.
1358  * - LE_OK Function succeeded.
1359  *
1360  * @note <b>multi-app safe</b>
1361  */
1362 //--------------------------------------------------------------------------------------------------
1364 (
1365  le_mrc_BandBitMask_t* bandMaskPtrPtr
1366  ///< [OUT] Bit mask for 2G/3G Band preferences.
1367 );
1368 
1369 //--------------------------------------------------------------------------------------------------
1370 /**
1371  * Set the LTE Band preferences by using a bit mask.
1372  *
1373  * @return
1374  * - LE_FAULT Function failed.
1375  * - LE_OK Function succeeded.
1376  *
1377  * @note <b>NOT multi-app safe</b>
1378  */
1379 //--------------------------------------------------------------------------------------------------
1381 (
1382  le_mrc_LteBandBitMask_t bandMask
1383  ///< [IN] Bit mask for LTE Band preferences.
1384 );
1385 
1386 //--------------------------------------------------------------------------------------------------
1387 /**
1388  * Get the Bit mask for LTE Band preferences.
1389  *
1390  * @return
1391  * - LE_FAULT Function failed.
1392  * - LE_OK Function succeeded.
1393  *
1394  * @note <b>multi-app safe</b>
1395  */
1396 //--------------------------------------------------------------------------------------------------
1398 (
1399  le_mrc_LteBandBitMask_t* bandMaskPtrPtr
1400  ///< [OUT] Bit mask for LTE Band preferences.
1401 );
1402 
1403 //--------------------------------------------------------------------------------------------------
1404 /**
1405  * Set the TD-SCDMA Band preferences by using a bit mask.
1406  *
1407  * @return
1408  * - LE_OK Function succeeded.
1409  * - LE_FAULT Function failed.
1410  * - LE_UNSUPPORTED The platform doesn't support setting TD-SCDMA Band preferences.
1411  *
1412  * @note <b>NOT multi-app safe</b>
1413  */
1414 //--------------------------------------------------------------------------------------------------
1416 (
1418  ///< [IN] Bit mask for TD-SCDMA Band preferences.
1419 );
1420 
1421 //--------------------------------------------------------------------------------------------------
1422 /**
1423  * Get the Bit mask for TD-SCDMA Band preferences.
1424  *
1425  * @return
1426  * - LE_OK Function succeeded.
1427  * - LE_FAULT Function failed.
1428  * - LE_UNSUPPORTED The platform doesn't support getting TD-SCDMA Band preferences.
1429  *
1430  * @note <b>multi-app safe</b>
1431  */
1432 //--------------------------------------------------------------------------------------------------
1434 (
1435  le_mrc_TdScdmaBandBitMask_t* bandMaskPtrPtr
1436  ///< [OUT] Bit mask for TD-SCDMA Band preferences.
1437 );
1438 
1439 //--------------------------------------------------------------------------------------------------
1440 /**
1441  * Add a preferred operator by specifying the MCC/MNC and the Radio Access Technology.
1442  *
1443  * @return
1444  * - LE_UNSUPPORTED List of User Preferred operators not available.
1445  * - LE_FAULT Function failed.
1446  * - LE_BAD_PARAMETER RAT mask is invalid.
1447  * - LE_OK Function succeeded.
1448  *
1449  * @note If strings are not set, too long (bigger than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN digits), or too
1450  * short (less than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN-1 digits) it's a fatal error, the function
1451  * won't return.
1452  *
1453  * @note <b>NOT multi-app safe</b>
1454  */
1455 //--------------------------------------------------------------------------------------------------
1457 (
1458  const char* LE_NONNULL mcc,
1459  ///< [IN] Mobile Country Code
1460  const char* LE_NONNULL mnc,
1461  ///< [IN] Mobile Network Code
1462  le_mrc_RatBitMask_t ratMask
1463  ///< [IN] Bit mask for the Radio Access Technology preferences.
1464 );
1465 
1466 //--------------------------------------------------------------------------------------------------
1467 /**
1468  * Remove a preferred operator by specifying the MCC/MNC.
1469  *
1470  * @return
1471  * - LE_UNSUPPORTED List of User Preferred operators not available.
1472  * - LE_NOT_FOUND Operator not found in the User Preferred operators list.
1473  * - LE_FAULT Function failed.
1474  * - LE_OK Function succeeded.
1475  *
1476  * @note If strings are not set, too long (bigger than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN digits), or too
1477  * short (less than LE_MRC_MCC_LEN/LE_MRC_MNC_LEN-1 digits) it's a fatal error, the function
1478  * won't return.
1479  *
1480  * @note <b>NOT multi-app safe</b>
1481  */
1482 //--------------------------------------------------------------------------------------------------
1484 (
1485  const char* LE_NONNULL mcc,
1486  ///< [IN] Mobile Country Code
1487  const char* LE_NONNULL mnc
1488  ///< [IN] Mobile Network Code
1489 );
1490 
1491 //--------------------------------------------------------------------------------------------------
1492 /**
1493  * This function must be called to retrieve a list of the preferred operators.
1494  *
1495  * @return
1496  * - Reference to the List object.
1497  * - Null pointer if there is no preferences list.
1498  *
1499  * @note <b>multi-app safe</b>
1500  */
1501 //--------------------------------------------------------------------------------------------------
1503 (
1504  void
1505 );
1506 
1507 //--------------------------------------------------------------------------------------------------
1508 /**
1509  * This function must be called to get the first Operator object reference in the list of the
1510  * preferred operators retrieved with le_mrc_GetPreferredOperators().
1511  *
1512  * @return
1513  * - NULL No operator information found.
1514  * - le_mrc_PreferredOperatorRef The Operator object reference.
1515  *
1516  * @note If the caller is passing a bad reference into this function, it's a fatal error, the
1517  * function won't return.
1518  *
1519  * @note <b>multi-app safe</b>
1520  */
1521 //--------------------------------------------------------------------------------------------------
1523 (
1524  le_mrc_PreferredOperatorListRef_t preferredOperatorListRef
1525  ///< [IN] The list of the preferred operators.
1526 );
1527 
1528 //--------------------------------------------------------------------------------------------------
1529 /**
1530  * This function must be called to get the next Operator object reference in the list of the
1531  * preferred operators retrieved with le_mrc_GetPreferredOperators().
1532  *
1533  * @return
1534  * - NULL No operator information found.
1535  * - le_mrc_PreferredOperatorRef The Operator object reference.
1536  *
1537  * @note If the caller is passing a bad reference into this function, it's a fatal error, the
1538  * function won't return.
1539  *
1540  * @note <b>multi-app safe</b>
1541  */
1542 //--------------------------------------------------------------------------------------------------
1544 (
1545  le_mrc_PreferredOperatorListRef_t preferredOperatorListRef
1546  ///< [IN] The list of the preferred operators.
1547 );
1548 
1549 //--------------------------------------------------------------------------------------------------
1550 /**
1551  * This function must be called to delete the list of the preferred operators retrieved with
1552  * le_mrc_GetPreferredOperators().
1553  *
1554  * @note On failure, the process exits, so you don't have to worry about checking the returned
1555  * reference for validity.
1556  *
1557  * @note <b>multi-app safe</b>
1558  */
1559 //--------------------------------------------------------------------------------------------------
1561 (
1562  le_mrc_PreferredOperatorListRef_t preferredOperatorListRef
1563  ///< [IN] The list of the preferred operators.
1564 );
1565 
1566 //--------------------------------------------------------------------------------------------------
1567 /**
1568  * This function must be called to get the Operator information details.
1569  *
1570  * @return
1571  * - LE_OK on success
1572  * - LE_OVERFLOW if the MCC or MNC would not fit in buffer
1573  * - LE_FAULT for all other errors
1574  *
1575  * @note <b>multi-app safe</b>
1576  */
1577 //--------------------------------------------------------------------------------------------------
1579 (
1580  le_mrc_PreferredOperatorRef_t preferredOperatorRef,
1581  ///< [IN] Operator object reference.
1582  char* mccPtr,
1583  ///< [OUT] Mobile Country Code.
1584  size_t mccPtrSize,
1585  ///< [IN]
1586  char* mncPtr,
1587  ///< [OUT] Mobile Network Code.
1588  size_t mncPtrSize,
1589  ///< [IN]
1590  le_mrc_RatBitMask_t* ratMaskPtr
1591  ///< [OUT] Bit mask for the RAT preferences.
1592 );
1593 
1594 //--------------------------------------------------------------------------------------------------
1595 /**
1596  * Get the network registration state.
1597  *
1598  * @return LE_FAULT The function failed to get the Network registration state.
1599  * @return LE_BAD_PARAMETER A bad parameter was passed.
1600  * @return LE_OK The function succeeded.
1601  *
1602  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1603  * function won't return.
1604  *
1605  * @note <b>multi-app safe</b>
1606  */
1607 //--------------------------------------------------------------------------------------------------
1609 (
1610  le_mrc_NetRegState_t* statePtr
1611  ///< [OUT] Network Registration state.
1612 );
1613 
1614 //--------------------------------------------------------------------------------------------------
1615 /**
1616  * Get the signal quality.
1617  *
1618  * @return LE_FAULT The function failed to get the Signal Quality information.
1619  * @return LE_BAD_PARAMETER A bad parameter was passed.
1620  * @return LE_OK The function succeeded.
1621  *
1622  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1623  * function won't return.
1624  *
1625  * @note <b>multi-app safe</b>
1626  */
1627 //--------------------------------------------------------------------------------------------------
1629 (
1630  uint32_t* qualityPtr
1631  ///< [OUT] [OUT] Received signal strength quality (0 = no signal strength,
1632  ///< 5 = very good signal strength).
1633 );
1634 
1635 //--------------------------------------------------------------------------------------------------
1636 /**
1637  * Set the power of the Radio Module.
1638  *
1639  * @return LE_BAD_PARAMETER Bad power mode specified.
1640  * @return LE_FAULT Function failed.
1641  * @return LE_OK Function succeed.
1642  *
1643  * @note <b>NOT multi-app safe</b>
1644  */
1645 //--------------------------------------------------------------------------------------------------
1647 (
1648  le_onoff_t power
1649  ///< [IN] The power state.
1650 );
1651 
1652 //--------------------------------------------------------------------------------------------------
1653 /**
1654  * Must be called to get the Radio Module power state.
1655  *
1656  * @return LE_FAULT The function failed to get the Radio Module power state.
1657  * @return LE_BAD_PARAMETER if powerPtr is NULL.
1658  * @return LE_OK The function succeed.
1659  *
1660  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1661  * function won't return.
1662  *
1663  * @note <b>multi-app safe</b>
1664  */
1665 //--------------------------------------------------------------------------------------------------
1667 (
1668  le_onoff_t* powerPtr
1669  ///< [OUT] Power state.
1670 );
1671 
1672 //--------------------------------------------------------------------------------------------------
1673 /**
1674  * This function must be called to perform a cellular network scan.
1675  *
1676  * @return Reference to the List object. Null pointer if the scan failed.
1677  *
1678  * @note <b>multi-app safe</b>
1679  */
1680 //--------------------------------------------------------------------------------------------------
1682 (
1683  le_mrc_RatBitMask_t ratMask
1684  ///< [IN] Radio Access Technology mask
1685 );
1686 
1687 //--------------------------------------------------------------------------------------------------
1688 /**
1689  * This function must be called to perform a cellular network scan asynchronously. This function
1690  * is not blocking, the response will be returned with a handler function.
1691  *
1692  *@note <b>multi-app safe</b>
1693  *
1694  */
1695 //--------------------------------------------------------------------------------------------------
1697 (
1698  le_mrc_RatBitMask_t ratMask,
1699  ///< [IN] Radio Access Technology mask
1701  ///< [IN] handler for sending result.
1702  void* contextPtr
1703  ///< [IN]
1704 );
1705 
1706 //--------------------------------------------------------------------------------------------------
1707 /**
1708  * This function must be called to get the first Scan Information object reference in the list of
1709  * scan Information retrieved with le_mrc_PerformCellularNetworkScan().
1710  *
1711  * @return NULL No scan information found.
1712  * @return le_mrc_ScanInformationRef_t The Scan Information object reference.
1713  *
1714  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1715  * function won't return.
1716  *
1717  * @note <b>multi-app safe</b>
1718  */
1719 //--------------------------------------------------------------------------------------------------
1721 (
1722  le_mrc_ScanInformationListRef_t scanInformationListRef
1723  ///< [IN] The list of scan information.
1724 );
1725 
1726 //--------------------------------------------------------------------------------------------------
1727 /**
1728  * This function must be called to get the next Scan Information object reference in the list of
1729  * scan Information retrieved with le_mrc_PerformCellularNetworkScan().
1730  *
1731  * @return NULL No scan information found.
1732  * @return le_mrc_ScanInformationRef_t The Scan Information object reference.
1733  *
1734  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1735  * function won't return.
1736  *
1737  * @note <b>multi-app safe</b>
1738  */
1739 //--------------------------------------------------------------------------------------------------
1741 (
1742  le_mrc_ScanInformationListRef_t scanInformationListRef
1743  ///< [IN] The list of scan information.
1744 );
1745 
1746 //--------------------------------------------------------------------------------------------------
1747 /**
1748  * This function must be called to delete the list of the Scan Information retrieved with
1749  * le_mrc_PerformCellularNetworkScan().
1750  *
1751  * @note
1752  * On failure, the process exits, so you don't have to worry about checking the returned
1753  * reference for validity.
1754  *
1755  * @note <b>multi-app safe</b>
1756  */
1757 //--------------------------------------------------------------------------------------------------
1759 (
1760  le_mrc_ScanInformationListRef_t scanInformationListRef
1761  ///< [IN] The list of scan information.
1762 );
1763 
1764 //--------------------------------------------------------------------------------------------------
1765 /**
1766  * This function must be called to get the Cellular Network Code [mcc:mnc]
1767  *
1768  * @return
1769  * - LE_OK on success
1770  * - LE_OVERFLOW if the MCC or MNC would not fit in buffer
1771  * - LE_FAULT for all other errors
1772  *
1773  * @note On failure, the process exits, so you don't have to worry about checking the returned
1774  * reference for validity.
1775  *
1776  * @note <b>multi-app safe</b>
1777  */
1778 //--------------------------------------------------------------------------------------------------
1780 (
1781  le_mrc_ScanInformationRef_t scanInformationRef,
1782  ///< [IN] Scan information reference
1783  char* mccPtr,
1784  ///< [OUT] Mobile Country Code
1785  size_t mccPtrSize,
1786  ///< [IN]
1787  char* mncPtr,
1788  ///< [OUT] Mobile Network Code
1789  size_t mncPtrSize
1790  ///< [IN]
1791 );
1792 
1793 //--------------------------------------------------------------------------------------------------
1794 /**
1795  * This function must be called to get the Cellular Network Name.
1796  *
1797  * @return
1798  * - LE_OK on success
1799  * - LE_OVERFLOW if the operator name would not fit in buffer
1800  * - LE_FAULT for all other errors
1801  *
1802  * @note On failure, the process exits, so you don't have to worry about checking the returned
1803  * reference for validity.
1804  *
1805  * @note <b>multi-app safe</b>
1806  */
1807 //--------------------------------------------------------------------------------------------------
1809 (
1810  le_mrc_ScanInformationRef_t scanInformationRef,
1811  ///< [IN] Scan information reference
1812  char* namePtr,
1813  ///< [OUT] Name of operator
1814  size_t namePtrSize
1815  ///< [IN]
1816 );
1817 
1818 //--------------------------------------------------------------------------------------------------
1819 /**
1820  * This function must be called to get the radio access technology of a scanInformationRef.
1821  *
1822  * @return the radio access technology
1823  *
1824  * @note On failure, the process exits.
1825  *
1826  * @note <b>multi-app safe</b>
1827  */
1828 //--------------------------------------------------------------------------------------------------
1830 (
1831  le_mrc_ScanInformationRef_t scanInformationRef
1832  ///< [IN] Scan information reference
1833 );
1834 
1835 //--------------------------------------------------------------------------------------------------
1836 /**
1837  * This function must be called to check if a cellular network is currently in use.
1838  *
1839  * @return true The network is in use
1840  * @return false The network isn't in use
1841  *
1842  * @note On failure, the process exits, so you don't have to worry about checking the returned
1843  * reference for validity.
1844  *
1845  * @note <b>multi-app safe</b>
1846  */
1847 //--------------------------------------------------------------------------------------------------
1849 (
1850  le_mrc_ScanInformationRef_t scanInformationRef
1851  ///< [IN] Scan information reference
1852 );
1853 
1854 //--------------------------------------------------------------------------------------------------
1855 /**
1856  * This function must be called to check if a cellular network is available.
1857  *
1858  * @return true The network is available
1859  * @return false The network isn't available
1860  *
1861  * @note On failure, the process exits, so you don't have to worry about checking the returned
1862  * reference for validity.
1863  *
1864  * @note <b>multi-app safe</b>
1865  */
1866 //--------------------------------------------------------------------------------------------------
1868 (
1869  le_mrc_ScanInformationRef_t scanInformationRef
1870  ///< [IN] Scan information reference
1871 );
1872 
1873 //--------------------------------------------------------------------------------------------------
1874 /**
1875  * This function must be called to check if a cellular network is currently in home mode.
1876  *
1877  * @return true The network is home
1878  * @return false The network is roaming
1879  *
1880  * @note On failure, the process exits, so you don't have to worry about checking the returned
1881  * reference for validity.
1882  *
1883  * @note <b>multi-app safe</b>
1884  */
1885 //--------------------------------------------------------------------------------------------------
1887 (
1888  le_mrc_ScanInformationRef_t scanInformationRef
1889  ///< [IN] Scan information reference
1890 );
1891 
1892 //--------------------------------------------------------------------------------------------------
1893 /**
1894  * This function must be called to check if a cellular network is forbidden by the operator.
1895  *
1896  * @return true The network is forbidden
1897  * @return false The network is allowed
1898  *
1899  * @note On failure, the process exits, so you don't have to worry about checking the returned
1900  * reference for validity.
1901  *
1902  * @note <b>multi-app safe</b>
1903  */
1904 //--------------------------------------------------------------------------------------------------
1906 (
1907  le_mrc_ScanInformationRef_t scanInformationRef
1908  ///< [IN] Scan information reference
1909 );
1910 
1911 //--------------------------------------------------------------------------------------------------
1912 /**
1913  * This function must be called to get the current network name information.
1914  *
1915  * @return
1916  * - LE_OK on success
1917  * - LE_BAD_PARAMETER if nameStr is NULL
1918  * - LE_OVERFLOW if the Home Network Name can't fit in nameStr
1919  * - LE_FAULT on any other failure
1920  *
1921  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1922  * function won't return.
1923  *
1924  * @note <b>multi-app safe</b>
1925  */
1926 //--------------------------------------------------------------------------------------------------
1928 (
1929  char* nameStr,
1930  ///< [OUT] the home network Name
1931  size_t nameStrSize
1932  ///< [IN]
1933 );
1934 
1935 //--------------------------------------------------------------------------------------------------
1936 /**
1937  * This function must be called to get the current network PLMN information.
1938  *
1939  * @return
1940  * - LE_OK on success
1941  * - LE_FAULT on any other failure
1942  *
1943  * @note <b>multi-app safe</b>
1944  */
1945 //--------------------------------------------------------------------------------------------------
1947 (
1948  char* mccStr,
1949  ///< [OUT] the mobile country code
1950  size_t mccStrSize,
1951  ///< [IN]
1952  char* mncStr,
1953  ///< [OUT] the mobile network code
1954  size_t mncStrSize
1955  ///< [IN]
1956 );
1957 
1958 //--------------------------------------------------------------------------------------------------
1959 /**
1960  * This function must be called to get the current Radio Access Technology in use.
1961  *
1962  * @return LE_OK Function succeeded.
1963  * @return LE_BAD_PARAMETER Invalid parameter.
1964  * @return LE_FAULT Function failed to get the Radio Access Technology.
1965  *
1966  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
1967  * function won't return.
1968  *
1969  * @note The API returns the RAT only if the device is registered on the network.
1970  *
1971  * @note <b>multi-app safe</b>
1972  */
1973 //--------------------------------------------------------------------------------------------------
1975 (
1976  le_mrc_Rat_t* ratPtr
1977  ///< [OUT] The Radio Access Technology.
1978 );
1979 
1980 //--------------------------------------------------------------------------------------------------
1981 /**
1982  * This function must be called to retrieve the Neighboring Cells information. It creates and
1983  * returns a reference to the Neighboring Cells information.
1984  *
1985  * @return A reference to the Neighboring Cells information.
1986  * @return NULL if no Cells Information are available.
1987  *
1988  * @note <b>multi-app safe</b>
1989  */
1990 //--------------------------------------------------------------------------------------------------
1992 (
1993  void
1994 );
1995 
1996 //--------------------------------------------------------------------------------------------------
1997 /**
1998  * This function must be called to delete the Neighboring Cells information.
1999  *
2000  * @note On failure, the process exits, so you don't have to worry about checking the returned
2001  * reference for validity.
2002  *
2003  * @note <b>multi-app safe</b>
2004  */
2005 //--------------------------------------------------------------------------------------------------
2007 (
2008  le_mrc_NeighborCellsRef_t ngbrCellsRef
2009  ///< [IN] Neighboring Cells reference.
2010 );
2011 
2012 //--------------------------------------------------------------------------------------------------
2013 /**
2014  * This function must be called to get the first Cell Information reference in the list of
2015  * Neighboring Cells information retrieved with le_mrc_GetNeighborCellsInfo().
2016  *
2017  * @return NULL No Cell information object found.
2018  * @return le_mrc_CellInfoRef_t The Cell information object reference.
2019  *
2020  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2021  * function won't return.
2022  *
2023  * @note <b>multi-app safe</b>
2024  */
2025 //--------------------------------------------------------------------------------------------------
2027 (
2028  le_mrc_NeighborCellsRef_t ngbrCellsRef
2029  ///< [IN] Neighboring Cells reference.
2030 );
2031 
2032 //--------------------------------------------------------------------------------------------------
2033 /**
2034  * This function must be called to get the next Cell Information reference in the list of
2035  * Neighboring Cells information retrieved with le_mrc_GetNeighborCellsInfo().
2036  *
2037  * @return NULL No Cell information object found.
2038  * @return le_mrc_CellInfoRef_t Cell information object reference.
2039  *
2040  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2041  * function won't return.
2042  *
2043  * @note <b>multi-app safe</b>
2044  */
2045 //--------------------------------------------------------------------------------------------------
2047 (
2048  le_mrc_NeighborCellsRef_t ngbrCellsRef
2049  ///< [IN] Neighboring Cells reference.
2050 );
2051 
2052 //--------------------------------------------------------------------------------------------------
2053 /**
2054  * This function must be called to get the Cell Identifier.
2055  *
2056  * @return The Cell Identifier. UINT32_MAX value is returned if the Cell Identifier is not
2057  * available.
2058  *
2059  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2060  * function won't return.
2061  *
2062  * @note <b>multi-app safe</b>
2063  */
2064 //--------------------------------------------------------------------------------------------------
2065 uint32_t le_mrc_GetNeighborCellId
2066 (
2067  le_mrc_CellInfoRef_t ngbrCellInfoRef
2068  ///< [IN] Cell information reference.
2069 );
2070 
2071 //--------------------------------------------------------------------------------------------------
2072 /**
2073  * This function must be called to get the Location Area Code of a cell.
2074  *
2075  * @return The Location Area Code of a cell. UINT16_MAX value is returned if the value is not
2076  * available.
2077  *
2078  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2079  * function won't return.
2080  *
2081  * @note <b>multi-app safe</b>
2082  */
2083 //--------------------------------------------------------------------------------------------------
2085 (
2086  le_mrc_CellInfoRef_t ngbrCellInfoRef
2087  ///< [IN] Cell information reference.
2088 );
2089 
2090 //--------------------------------------------------------------------------------------------------
2091 /**
2092  * This function must be called to get the signal strength of a cell.
2093  *
2094  * @return The signal strength of a cell in dBm.
2095  *
2096  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2097  * function won't return.
2098  *
2099  * @note <b>multi-app safe</b>
2100  */
2101 //--------------------------------------------------------------------------------------------------
2103 (
2104  le_mrc_CellInfoRef_t ngbrCellInfoRef
2105  ///< [IN] Cell information reference.
2106 );
2107 
2108 //--------------------------------------------------------------------------------------------------
2109 /**
2110  * This function must be called to get the Radio Access Technology of a cell.
2111  *
2112  * @return The Radio Access Technology of a cell.
2113  *
2114  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2115  * function won't return.
2116  *
2117  * @note <b>multi-app safe</b>
2118  */
2119 //--------------------------------------------------------------------------------------------------
2121 (
2122  le_mrc_CellInfoRef_t ngbrCellInfoRef
2123  ///< [IN] Cell information reference.
2124 );
2125 
2126 //--------------------------------------------------------------------------------------------------
2127 /**
2128  * This function must be called to get the Ec/Io; the received energy per chip divided by the power
2129  * density in the band measured in dBm on the primary CPICH channel of serving cell (negative value)
2130  *
2131  * @return
2132  * - The Ec/Io of a cell given in dB with 1 decimal place. (only applicable for UMTS network).
2133  * - INT32_MAX when the value isn't available.
2134  *
2135  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2136  * function won't return.
2137  *
2138  * @note <b>multi-app safe</b>
2139  */
2140 //--------------------------------------------------------------------------------------------------
2142 (
2143  le_mrc_CellInfoRef_t ngbrCellInfoRef
2144  ///< [IN] Cell information reference.
2145 );
2146 
2147 //--------------------------------------------------------------------------------------------------
2148 /**
2149  * This function must be called to get the RSRP and RSRQ of the Intrafrequency of a LTE cell.
2150  *
2151  * @return
2152  * - LE_OK on success
2153  * - LE_FAULT on failure
2154  *
2155  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2156  * function won't return.
2157  *
2158  * @note <b>multi-app safe</b>
2159  */
2160 //--------------------------------------------------------------------------------------------------
2162 (
2163  le_mrc_CellInfoRef_t ngbrCellInfoRef,
2164  ///< [IN] Cell information reference.
2165  int32_t* rsrqPtr,
2166  ///< [OUT] Reference Signal Received Quality value in dB with 1 decimal
2167  ///< place
2168  int32_t* rsrpPtr
2169  ///< [OUT] Reference Signal Receiver Power value in dBm with 1 decimal
2170  ///< place
2171 );
2172 
2173 //--------------------------------------------------------------------------------------------------
2174 /**
2175  * This function must be called to get the RSRP and RSRQ of the Interfrequency of a LTE cell.
2176  *
2177  * @return
2178  * - LE_OK on success
2179  * - LE_FAULT on failure
2180  *
2181  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2182  * function won't return.
2183  *
2184  * @note <b>multi-app safe</b>
2185  */
2186 //--------------------------------------------------------------------------------------------------
2188 (
2189  le_mrc_CellInfoRef_t ngbrCellInfoRef,
2190  ///< [IN] Cell information reference.
2191  int32_t* rsrqPtr,
2192  ///< [OUT] Reference Signal Received Quality value in dB with 1 decimal
2193  ///< place
2194  int32_t* rsrpPtr
2195  ///< [OUT] Reference Signal Receiver Power value in dBm with 1 decimal
2196  ///< place
2197 );
2198 
2199 //--------------------------------------------------------------------------------------------------
2200 /**
2201  * This function must be called to measure the signal metrics. It creates and returns a reference
2202  * to the signal metrics.
2203  *
2204  * @return A reference to the signal metrics.
2205  * @return NULL if no signal metrics are available.
2206  *
2207  * @note <b>multi-app safe</b>
2208  */
2209 //--------------------------------------------------------------------------------------------------
2211 (
2212  void
2213 );
2214 
2215 //--------------------------------------------------------------------------------------------------
2216 /**
2217  * This function must be called to delete the the signal metrics.
2218  *
2219  * @note On failure, the process exits, so you don't have to worry about checking the returned
2220  * reference for validity.
2221  *
2222  * @note <b>multi-app safe</b>
2223  */
2224 //--------------------------------------------------------------------------------------------------
2226 (
2227  le_mrc_MetricsRef_t MetricsRef
2228  ///< [IN] Signal metrics reference.
2229 );
2230 
2231 //--------------------------------------------------------------------------------------------------
2232 /**
2233  * This function returns the Radio Access Technology of the signal metrics.
2234  *
2235  * @return The Radio Access Technology of the signal measure.
2236  *
2237  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2238  * function won't return.
2239  *
2240  * @note <b>multi-app safe</b>
2241  */
2242 //--------------------------------------------------------------------------------------------------
2244 (
2245  le_mrc_MetricsRef_t MetricsRef
2246  ///< [IN] Signal metrics reference.
2247 );
2248 
2249 //--------------------------------------------------------------------------------------------------
2250 /**
2251  * This function returns the signal strength in dBm and the bit error rate measured on GSM network.
2252  *
2253  * @return
2254  * - LE_OK on success
2255  * - LE_FAULT on failure
2256  *
2257  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2258  * function won't return.
2259  *
2260  * @note <b>multi-app safe</b>
2261  */
2262 //--------------------------------------------------------------------------------------------------
2264 (
2265  le_mrc_MetricsRef_t MetricsRef,
2266  ///< [IN] Signal metrics reference.
2267  int32_t* rssiPtr,
2268  ///< [OUT] Signal strength in dBm
2269  uint32_t* berPtr
2270  ///< [OUT] Bit error rate.
2271 );
2272 
2273 //--------------------------------------------------------------------------------------------------
2274 /**
2275  * This function returns the signal metrics measured on UMTS or TD-SCDMA networks.
2276  *
2277  * @return
2278  * - LE_OK on success
2279  * - LE_FAULT on failure
2280  *
2281  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2282  * function won't return.
2283  *
2284  * @note <b>multi-app safe</b>
2285  */
2286 //--------------------------------------------------------------------------------------------------
2288 (
2289  le_mrc_MetricsRef_t MetricsRef,
2290  ///< [IN] Signal metrics reference.
2291  int32_t* ssPtr,
2292  ///< [OUT] Signal strength in dBm
2293  uint32_t* blerPtr,
2294  ///< [OUT] Block error rate
2295  int32_t* ecioPtr,
2296  ///< [OUT] Ec/Io value in dB with 1 decimal place (-15 = -1.5 dB) (Negative
2297  ///< value)
2298  int32_t* rscpPtr,
2299  ///< [OUT] Measured RSCP in dBm (negative value, value INT32_MAX means
2300  ///< that RSCP is not available)
2301  int32_t* sinrPtr
2302  ///< [OUT] Measured SINR in dB (only applicable for TD-SCDMA network, value
2303  ///< INT32_MAX means that the SINR is not available)
2304 );
2305 
2306 //--------------------------------------------------------------------------------------------------
2307 /**
2308  * This function returns the signal metrics measured on LTE network.
2309  *
2310  * @return
2311  * - LE_OK on success
2312  * - LE_FAULT on failure
2313  * - sinrPtr and ioPtr return INT32_MAX when the value isn't available.
2314  *
2315  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2316  * function won't return.
2317  *
2318  * @note <b>multi-app safe</b>
2319  */
2320 //--------------------------------------------------------------------------------------------------
2322 (
2323  le_mrc_MetricsRef_t MetricsRef,
2324  ///< [IN] Signal metrics reference.
2325  int32_t* ssPtr,
2326  ///< [OUT] Signal strength in dBm
2327  uint32_t* blerPtr,
2328  ///< [OUT] Block error rate
2329  int32_t* rsrqPtr,
2330  ///< [OUT] RSRQ value in dB as measured by L1 with 1 decimal place
2331  int32_t* rsrpPtr,
2332  ///< [OUT] Current RSRP in dBm as measured by L1 with 1 decimal place
2333  int32_t* snrPtr
2334  ///< [OUT] SNR level in dB with 1 decimal place (15 = 1.5 dB)
2335 );
2336 
2337 //--------------------------------------------------------------------------------------------------
2338 /**
2339  * This function returns the signal metrics measured on CDMA network.
2340  *
2341  * @return
2342  * - LE_OK on success
2343  * - LE_FAULT on failure
2344  * - rscpPtr and sinrPtr return INT32_MAX when the value isn't available.
2345  *
2346  * @note If the caller is passing a bad pointer into this function, it's a fatal error, the
2347  * function won't return.
2348  *
2349  * @note <b>multi-app safe</b>
2350  */
2351 //--------------------------------------------------------------------------------------------------
2353 (
2354  le_mrc_MetricsRef_t MetricsRef,
2355  ///< [IN] Signal metrics reference.
2356  int32_t* ssPtr,
2357  ///< [OUT] Signal strength in dBm
2358  uint32_t* erPtr,
2359  ///< [OUT] Frame/Packet error rate
2360  int32_t* ecioPtr,
2361  ///< [OUT] ECIO value in dB with 1 decimal place (-15 = -1.5 dB) (Negative
2362  ///< value)
2363  int32_t* sinrPtr,
2364  ///< [OUT] SINR level in dB with 1 decimal place, (only applicable for
2365  ///< 1xEV-DO, value INT32_MAX means that the value is not available)
2366  int32_t* ioPtr
2367  ///< [OUT] Received IO in dBm (only applicable for 1xEV-DO, value INT32_MAX
2368  ///< means that the value is not available)
2369 );
2370 
2371 //--------------------------------------------------------------------------------------------------
2372 /**
2373  * This function must be called to get the serving Cell Identifier.
2374  *
2375  * @return The Cell Identifier. UINT32_MAX value is returned if the value is not available.
2376  *
2377  * @note When the module is in UMTS network, the API returns the serving UTRAN Cell Identity (UC-Id)
2378  * which is used to identify the cell uniquely.
2379  * It is composed of the Controlling Radio Network Controller Identifier (CRNC-Id, 12 bits) and the
2380  * Cell Identifier (C-Id, 16 bits). (3GPP 25.401, section 6.1.5)
2381  * The Cell Identifier is coded in the lower 2 bytes of the 4 bytes UC-Id and the CRNC-Id is coded
2382  * in the upper 2 bytes.
2383  * Example: the API returns 7807609 -> 0x772279 (CRNC-Id = 0x77 , cell ID = 0x2279)
2384  *
2385  * @note <b>multi-app safe</b>
2386  */
2387 //--------------------------------------------------------------------------------------------------
2388 uint32_t le_mrc_GetServingCellId
2389 (
2390  void
2391 );
2392 
2393 //--------------------------------------------------------------------------------------------------
2394 /**
2395  * This function must be called to get the Location Area Code of the serving cell.
2396  *
2397  * @return The Location Area Code. UINT32_MAX value is returned if the value is not available.
2398  *
2399  * @note <b>multi-app safe</b>
2400  */
2401 //--------------------------------------------------------------------------------------------------
2403 (
2404  void
2405 );
2406 
2407 //--------------------------------------------------------------------------------------------------
2408 /**
2409  * This function must be called to get the Tracking Area Code of the serving cell (LTE only).
2410  *
2411  * @return The Tracking Area Code. UINT16_MAX value is returned if the value is not available.
2412  *
2413  * @note <b>multi-app safe</b>
2414  */
2415 //--------------------------------------------------------------------------------------------------
2417 (
2418  void
2419 );
2420 
2421 //--------------------------------------------------------------------------------------------------
2422 /**
2423  * Get the Bit mask for 2G/3G Band capabilities.
2424  *
2425  * @return
2426  * - LE_OK on success
2427  * - LE_FAULT on failure
2428  * - LE_UNSUPPORTED Unable to get the 2G/3G Band capabilities on this platform
2429  *
2430  * @note <b>multi-app safe</b>
2431  */
2432 //--------------------------------------------------------------------------------------------------
2434 (
2435  le_mrc_BandBitMask_t* bandMaskPtrPtr
2436  ///< [OUT] Bit mask for 2G/3G Band capabilities.
2437 );
2438 
2439 //--------------------------------------------------------------------------------------------------
2440 /**
2441  * Get the Bit mask for LTE Band capabilities.
2442  *
2443  * @return
2444  * - LE_OK on success
2445  * - LE_FAULT on failure
2446  * - LE_UNSUPPORTED Unable to get the LTE Band capabilities on this platform
2447  *
2448  * @note <b>multi-app safe</b>
2449  */
2450 //--------------------------------------------------------------------------------------------------
2452 (
2453  le_mrc_LteBandBitMask_t* bandMaskPtrPtr
2454  ///< [OUT] Bit mask for LTE Band capabilities.
2455 );
2456 
2457 //--------------------------------------------------------------------------------------------------
2458 /**
2459  * Get the Bit mask for TD-SCDMA Band capabilities.
2460  *
2461  * @return
2462  * - LE_OK on success
2463  * - LE_FAULT on failure
2464  * - LE_UNSUPPORTED Unable to get the TD-SCDMA Band Capabilities on this platform
2465  *
2466  * @note <b>multi-app safe</b>
2467  */
2468 //--------------------------------------------------------------------------------------------------
2470 (
2471  le_mrc_TdScdmaBandBitMask_t* bandMaskPtrPtr
2472  ///< [OUT] Bit mask for TD-SCDMA Band capabilities.
2473 );
2474 
2475 //--------------------------------------------------------------------------------------------------
2476 /**
2477  * Add handler function for EVENT 'le_mrc_NetworkReject'
2478  *
2479  * Event to report network reject indication.
2480  *
2481  */
2482 //--------------------------------------------------------------------------------------------------
2484 (
2486  ///< [IN]
2487  void* contextPtr
2488  ///< [IN]
2489 );
2490 
2491 //--------------------------------------------------------------------------------------------------
2492 /**
2493  * Remove handler function for EVENT 'le_mrc_NetworkReject'
2494  */
2495 //--------------------------------------------------------------------------------------------------
2497 (
2499  ///< [IN]
2500 );
2501 
2502 //--------------------------------------------------------------------------------------------------
2503 /**
2504  * Add handler function for EVENT 'le_mrc_JammingDetectionEvent'
2505  *
2506  * This event provides information on jamming detection.
2507  */
2508 //--------------------------------------------------------------------------------------------------
2510 (
2512  ///< [IN]
2513  void* contextPtr
2514  ///< [IN]
2515 );
2516 
2517 //--------------------------------------------------------------------------------------------------
2518 /**
2519  * Remove handler function for EVENT 'le_mrc_JammingDetectionEvent'
2520  */
2521 //--------------------------------------------------------------------------------------------------
2523 (
2525  ///< [IN]
2526 );
2527 
2528 //--------------------------------------------------------------------------------------------------
2529 /**
2530  * Start the jamming detection monitoring.
2531  *
2532  * @warning The jamming detection feature might be limited by the platform.
2533  * Please refer to the platform documentation @ref platformConstraintsMdc.
2534  *
2535  * @return
2536  * - LE_OK The function succeeded.
2537  * - LE_FAULT The function failed.
2538  * - LE_DUPLICATE The feature is already activated and an activation is requested.
2539  * - LE_UNSUPPORTED The feature is not supported.
2540  */
2541 //--------------------------------------------------------------------------------------------------
2543 (
2544  void
2545 );
2546 
2547 //--------------------------------------------------------------------------------------------------
2548 /**
2549  * Stop the jamming detection monitoring.
2550  *
2551  * @return
2552  * - LE_OK The function succeeded.
2553  * - LE_FAULT The function failed.
2554  * - LE_UNSUPPORTED The feature is not supported.
2555  */
2556 //--------------------------------------------------------------------------------------------------
2558 (
2559  void
2560 );
2561 
2562 #endif // LE_MRC_INTERFACE_H_INCLUDE_GUARD
le_result_t le_mrc_GetLteBandCapabilities(le_mrc_LteBandBitMask_t *bandMaskPtrPtr)
uint32_t le_mrc_GetNeighborCellId(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_result_t le_mrc_GetPreferredOperatorDetails(le_mrc_PreferredOperatorRef_t preferredOperatorRef, char *mccPtr, size_t mccPtrSize, char *mncPtr, size_t mncPtrSize, le_mrc_RatBitMask_t *ratMaskPtr)
TD-SCDMA networks.
Definition: le_mrc_interface.h:769
LTE RAT Bit Mask.
Definition: le_mrc_interface.h:839
le_result_t le_mrc_GetGsmSignalMetrics(le_mrc_MetricsRef_t MetricsRef, int32_t *rssiPtr, uint32_t *berPtr)
CDMA RAT Bit Mask.
Definition: le_mrc_interface.h:840
le_result_t le_mrc_GetSignalQual(uint32_t *qualityPtr)
uint16_t le_mrc_GetServingCellLteTracAreaCode(void)
void le_mrc_DeleteNeighborCellsInfo(le_mrc_NeighborCellsRef_t ngbrCellsRef)
le_mrc_CellInfoRef_t le_mrc_GetNextNeighborCellInfo(le_mrc_NeighborCellsRef_t ngbrCellsRef)
void le_mrc_RemovePacketSwitchedChangeHandler(le_mrc_PacketSwitchedChangeHandlerRef_t handlerRef)
le_result_t le_mrc_GetNetRegState(le_mrc_NetRegState_t *statePtr)
le_mrc_RatChangeHandlerRef_t le_mrc_AddRatChangeHandler(le_mrc_RatChangeHandlerFunc_t handlerPtr, void *contextPtr)
le_result_t le_mrc_SetAutomaticRegisterMode(void)
struct le_mrc_PreferredOperatorList * le_mrc_PreferredOperatorListRef_t
Definition: le_mrc_interface.h:706
le_result_t le_mrc_SetSignalStrengthIndThresholds(le_mrc_Rat_t rat, int32_t lowerRangeThreshold, int32_t upperRangeThreshold)
struct le_mrc_PreferredOperator * le_mrc_PreferredOperatorRef_t
Definition: le_mrc_interface.h:698
le_result_t le_mrc_RemovePreferredOperator(const char *LE_NONNULL mcc, const char *LE_NONNULL mnc)
le_mrc_SignalStrengthChangeHandlerRef_t le_mrc_AddSignalStrengthChangeHandler(le_mrc_Rat_t rat, int32_t lowerRangeThreshold, int32_t upperRangeThreshold, le_mrc_SignalStrengthChangeHandlerFunc_t handlerPtr, void *contextPtr)
le_result_t le_mrc_GetRadioPower(le_onoff_t *powerPtr)
uint32_t le_mrc_GetServingCellId(void)
le_mrc_NetRegStateEventHandlerRef_t le_mrc_AddNetRegStateEventHandler(le_mrc_NetRegStateHandlerFunc_t handlerPtr, void *contextPtr)
void(* le_mrc_DisconnectHandler_t)(void *)
Definition: le_mrc_interface.h:451
le_result_t
Definition: le_basics.h:35
le_result_t le_mrc_SetRadioPower(le_onoff_t power)
le_result_t le_mrc_GetCurrentNetworkMccMnc(char *mccStr, size_t mccStrSize, char *mncStr, size_t mncStrSize)
struct le_mrc_NeighborCells * le_mrc_NeighborCellsRef_t
Definition: le_mrc_interface.h:722
le_result_t le_mrc_SetTdScdmaBandPreferences(le_mrc_TdScdmaBandBitMask_t bandMask)
struct le_mrc_Metrics * le_mrc_MetricsRef_t
Definition: le_mrc_interface.h:730
le_result_t le_mrc_GetPacketSwitchedState(le_mrc_NetRegState_t *statePtr)
UMTS networks.
Definition: le_mrc_interface.h:767
TD-SCDMA RAT Bit Mask.
Definition: le_mrc_interface.h:838
le_mrc_Rat_t le_mrc_GetRatOfSignalMetrics(le_mrc_MetricsRef_t MetricsRef)
struct le_mrc_NetRegStateEventHandler * le_mrc_NetRegStateEventHandlerRef_t
Definition: le_mrc_interface.h:852
le_result_t le_mrc_GetTdScdmaBandPreferences(le_mrc_TdScdmaBandBitMask_t *bandMaskPtrPtr)
void le_mrc_DeleteSignalMetrics(le_mrc_MetricsRef_t MetricsRef)
struct le_mrc_RatChangeHandler * le_mrc_RatChangeHandlerRef_t
Definition: le_mrc_interface.h:860
le_mrc_CellInfoRef_t le_mrc_GetFirstNeighborCellInfo(le_mrc_NeighborCellsRef_t ngbrCellsRef)
Registered to a roaming network.
Definition: le_mrc_interface.h:748
void(* le_mrc_ManualSelectionHandlerFunc_t)(le_result_t result, void *contextPtr)
Definition: le_mrc_interface.h:974
le_result_t le_mrc_GetCdmaSignalMetrics(le_mrc_MetricsRef_t MetricsRef, int32_t *ssPtr, uint32_t *erPtr, int32_t *ecioPtr, int32_t *sinrPtr, int32_t *ioPtr)
le_result_t le_mrc_SetManualRegisterMode(const char *LE_NONNULL mcc, const char *LE_NONNULL mnc)
le_result_t le_mrc_GetNeighborCellLteIntraFreq(le_mrc_CellInfoRef_t ngbrCellInfoRef, int32_t *rsrqPtr, int32_t *rsrpPtr)
No jamming suspicion; radio environment is considered normal.
Definition: le_mrc_interface.h:810
struct le_mrc_ScanInformationList * le_mrc_ScanInformationListRef_t
Definition: le_mrc_interface.h:690
le_result_t le_mrc_TryConnectService(void)
le_result_t le_mrc_SetSignalStrengthIndDelta(le_mrc_Rat_t rat, uint16_t delta)
void(* le_mrc_PacketSwitchedChangeHandlerFunc_t)(le_mrc_NetRegState_t state, void *contextPtr)
Definition: le_mrc_interface.h:930
LTE network.
Definition: le_mrc_interface.h:771
void(* le_mrc_RatChangeHandlerFunc_t)(le_mrc_Rat_t rat, void *contextPtr)
Definition: le_mrc_interface.h:916
le_result_t le_mrc_GetRatPreferences(le_mrc_RatBitMask_t *ratMaskPtrPtr)
struct le_mrc_CellInfo * le_mrc_CellInfoRef_t
Definition: le_mrc_interface.h:714
le_mrc_ScanInformationListRef_t le_mrc_PerformCellularNetworkScan(le_mrc_RatBitMask_t ratMask)
le_result_t le_mrc_SetBandPreferences(le_mrc_BandBitMask_t bandMask)
le_result_t le_mrc_SetRatPreferences(le_mrc_RatBitMask_t ratMask)
void le_mrc_DeleteCellularNetworkScan(le_mrc_ScanInformationListRef_t scanInformationListRef)
int32_t le_mrc_GetNeighborCellRxLevel(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_mrc_PacketSwitchedChangeHandlerRef_t le_mrc_AddPacketSwitchedChangeHandler(le_mrc_PacketSwitchedChangeHandlerFunc_t packetHandlerPtr, void *contextPtr)
le_result_t le_mrc_GetNeighborCellLteInterFreq(le_mrc_CellInfoRef_t ngbrCellInfoRef, int32_t *rsrqPtr, int32_t *rsrpPtr)
void le_mrc_RemoveSignalStrengthChangeHandler(le_mrc_SignalStrengthChangeHandlerRef_t handlerRef)
struct le_mrc_SignalStrengthChangeHandler * le_mrc_SignalStrengthChangeHandlerRef_t
Definition: le_mrc_interface.h:876
le_mrc_NeighborCellsRef_t le_mrc_GetNeighborCellsInfo(void)
le_mrc_Rat_t le_mrc_GetCellularNetworkRat(le_mrc_ScanInformationRef_t scanInformationRef)
void le_mrc_RemoveRatChangeHandler(le_mrc_RatChangeHandlerRef_t handlerRef)
struct le_mrc_NetworkRejectHandler * le_mrc_NetworkRejectHandlerRef_t
Definition: le_mrc_interface.h:884
Registered, home network.
Definition: le_mrc_interface.h:742
Definition: le_mrc_interface.h:818
void(* le_mrc_JammingDetectionHandlerFunc_t)(le_mrc_JammingReport_t report, le_mrc_JammingStatus_t status, void *contextPtr)
Definition: le_mrc_interface.h:1005
uint32_t le_mrc_GetServingCellLocAreaCode(void)
le_mrc_PreferredOperatorRef_t le_mrc_GetFirstPreferredOperator(le_mrc_PreferredOperatorListRef_t preferredOperatorListRef)
void le_mrc_PerformCellularNetworkScanAsync(le_mrc_RatBitMask_t ratMask, le_mrc_CellularNetworkScanHandlerFunc_t handlerPtr, void *contextPtr)
le_result_t le_mrc_GetLteSignalMetrics(le_mrc_MetricsRef_t MetricsRef, int32_t *ssPtr, uint32_t *blerPtr, int32_t *rsrqPtr, int32_t *rsrpPtr, int32_t *snrPtr)
GSM network.
Definition: le_mrc_interface.h:765
void(* le_mrc_NetRegStateHandlerFunc_t)(le_mrc_NetRegState_t state, void *contextPtr)
Definition: le_mrc_interface.h:902
void le_mrc_RemoveNetworkRejectHandler(le_mrc_NetworkRejectHandlerRef_t handlerRef)
To Set all RAT preference Bit Mask.
Definition: le_mrc_interface.h:841
le_mrc_RatBitMask_t
Definition: le_mrc_interface.h:834
int32_t le_mrc_GetPlatformSpecificRegistrationErrorCode(void)
Final jamming status report.
Definition: le_mrc_interface.h:791
le_mrc_PreferredOperatorRef_t le_mrc_GetNextPreferredOperator(le_mrc_PreferredOperatorListRef_t preferredOperatorListRef)
CDMA network.
Definition: le_mrc_interface.h:773
void le_mrc_SetManualRegisterModeAsync(const char *LE_NONNULL mcc, const char *LE_NONNULL mnc, le_mrc_ManualSelectionHandlerFunc_t handlerPtr, void *contextPtr)
le_mrc_Rat_t
Definition: le_mrc_interface.h:761
le_result_t le_mrc_GetTdScdmaBandCapabilities(le_mrc_TdScdmaBandBitMask_t *bandMaskPtrPtr)
le_result_t le_mrc_GetRegisterMode(bool *isManualPtrPtr, char *mccPtr, size_t mccPtrSize, char *mncPtr, size_t mncPtrSize)
Definition: le_mrc_interface.h:812
le_mrc_JammingReport_t
Definition: le_mrc_interface.h:789
Unknown.
Definition: le_mrc_interface.h:763
le_result_t le_mrc_SetLteBandPreferences(le_mrc_LteBandBitMask_t bandMask)
bool le_mrc_IsCellularNetworkForbidden(le_mrc_ScanInformationRef_t scanInformationRef)
struct le_mrc_ScanInformation * le_mrc_ScanInformationRef_t
Definition: le_mrc_interface.h:682
int32_t le_mrc_GetNeighborCellUmtsEcIo(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_result_t le_mrc_GetCellularNetworkMccMnc(le_mrc_ScanInformationRef_t scanInformationRef, char *mccPtr, size_t mccPtrSize, char *mncPtr, size_t mncPtrSize)
le_mrc_ScanInformationRef_t le_mrc_GetNextCellularNetworkScan(le_mrc_ScanInformationListRef_t scanInformationListRef)
Definition: le_mrc_interface.h:815
void le_mrc_SetServerDisconnectHandler(le_mrc_DisconnectHandler_t disconnectHandler, void *contextPtr)
le_result_t le_mrc_GetCurrentNetworkName(char *nameStr, size_t nameStrSize)
Intermediate jamming status report.
Definition: le_mrc_interface.h:793
le_result_t le_mrc_GetRadioAccessTechInUse(le_mrc_Rat_t *ratPtr)
le_mrc_PreferredOperatorListRef_t le_mrc_GetPreferredOperatorsList(void)
le_result_t le_mrc_GetLteBandPreferences(le_mrc_LteBandBitMask_t *bandMaskPtrPtr)
le_result_t le_mrc_AddPreferredOperator(const char *LE_NONNULL mcc, const char *LE_NONNULL mnc, le_mrc_RatBitMask_t ratMask)
le_result_t le_mrc_GetBandCapabilities(le_mrc_BandBitMask_t *bandMaskPtrPtr)
bool le_mrc_IsCellularNetworkHome(le_mrc_ScanInformationRef_t scanInformationRef)
le_result_t le_mrc_GetCellularNetworkName(le_mrc_ScanInformationRef_t scanInformationRef, char *namePtr, size_t namePtrSize)
le_mrc_JammingStatus_t
Definition: le_mrc_interface.h:806
void le_mrc_ConnectService(void)
void le_mrc_DeletePreferredOperatorsList(le_mrc_PreferredOperatorListRef_t preferredOperatorListRef)
le_mrc_JammingDetectionEventHandlerRef_t le_mrc_AddJammingDetectionEventHandler(le_mrc_JammingDetectionHandlerFunc_t handlerPtr, void *contextPtr)
le_result_t le_mrc_StartJammingDetection(void)
void(* le_mrc_NetworkRejectHandlerFunc_t)(const char *LE_NONNULL mcc, const char *LE_NONNULL mnc, le_mrc_Rat_t rat, void *contextPtr)
Definition: le_mrc_interface.h:988
Not registered but currently searching for a new operator.
Definition: le_mrc_interface.h:744
le_result_t le_mrc_StopJammingDetection(void)
le_mrc_BandBitMask_t
Definition: le_mrc_interface.h:571
le_result_t le_mrc_GetUmtsSignalMetrics(le_mrc_MetricsRef_t MetricsRef, int32_t *ssPtr, uint32_t *blerPtr, int32_t *ecioPtr, int32_t *rscpPtr, int32_t *sinrPtr)
void(* le_mrc_SignalStrengthChangeHandlerFunc_t)(int32_t ss, void *contextPtr)
Definition: le_mrc_interface.h:944
void le_mrc_DisconnectService(void)
bool le_mrc_IsCellularNetworkInUse(le_mrc_ScanInformationRef_t scanInformationRef)
void(* le_mrc_CellularNetworkScanHandlerFunc_t)(le_mrc_ScanInformationListRef_t listRef, void *contextPtr)
Definition: le_mrc_interface.h:959
le_mrc_NetRegState_t
Definition: le_mrc_interface.h:738
uint32_t le_mrc_GetNeighborCellLocAreaCode(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_mrc_MetricsRef_t le_mrc_MeasureSignalMetrics(void)
le_mrc_LteBandBitMask_t
Definition: le_mrc_interface.h:621
Unknown state.
Definition: le_mrc_interface.h:750
bool le_mrc_IsCellularNetworkAvailable(le_mrc_ScanInformationRef_t scanInformationRef)
struct le_mrc_JammingDetectionEventHandler * le_mrc_JammingDetectionEventHandlerRef_t
Definition: le_mrc_interface.h:892
Registration was denied, usually because of invalid access credentials.
Definition: le_mrc_interface.h:746
UMTS RAT Bit Mask.
Definition: le_mrc_interface.h:837
le_mrc_TdScdmaBandBitMask_t
Definition: le_mrc_interface.h:665
Not registered and not currently searching for new operator.
Definition: le_mrc_interface.h:740
void le_mrc_RemoveJammingDetectionEventHandler(le_mrc_JammingDetectionEventHandlerRef_t handlerRef)
GSM RAT Bit Mask.
Definition: le_mrc_interface.h:836
le_mrc_NetworkRejectHandlerRef_t le_mrc_AddNetworkRejectHandler(le_mrc_NetworkRejectHandlerFunc_t handlerPtr, void *contextPtr)
le_result_t le_mrc_GetBandPreferences(le_mrc_BandBitMask_t *bandMaskPtrPtr)
struct le_mrc_PacketSwitchedChangeHandler * le_mrc_PacketSwitchedChangeHandlerRef_t
Definition: le_mrc_interface.h:868
void le_mrc_RemoveNetRegStateEventHandler(le_mrc_NetRegStateEventHandlerRef_t handlerRef)
le_mrc_ScanInformationRef_t le_mrc_GetFirstCellularNetworkScan(le_mrc_ScanInformationListRef_t scanInformationListRef)
Status is unknown.
Definition: le_mrc_interface.h:808
le_mrc_Rat_t le_mrc_GetNeighborCellRat(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_onoff_t
Definition: le_basics.h:70
Definition: le_mrc_interface.h:822