314 #ifndef LE_MRC_INTERFACE_H_INCLUDE_GUARD
315 #define LE_MRC_INTERFACE_H_INCLUDE_GUARD
346 #define LE_MRC_MCC_LEN 3
355 #define LE_MRC_MCC_BYTES 4
363 #define LE_MRC_MNC_LEN 3
372 #define LE_MRC_MNC_BYTES 4
382 LE_MRC_BITMASK_BAND_CLASS_0_A_SYSTEM = 0x1,
383 LE_MRC_BITMASK_BAND_CLASS_0_B_SYSTEM = 0x2,
384 LE_MRC_BITMASK_BAND_CLASS_1_ALL_BLOCKS = 0x4,
385 LE_MRC_BITMASK_BAND_CLASS_2_PLACEHOLDER = 0x8,
386 LE_MRC_BITMASK_BAND_CLASS_3_A_SYSTEM = 0x10,
387 LE_MRC_BITMASK_BAND_CLASS_4_ALL_BLOCKS = 0x20,
388 LE_MRC_BITMASK_BAND_CLASS_5_ALL_BLOCKS = 0x40,
389 LE_MRC_BITMASK_BAND_CLASS_6 = 0x80,
390 LE_MRC_BITMASK_BAND_CLASS_7 = 0x100,
391 LE_MRC_BITMASK_BAND_CLASS_8 = 0x200,
392 LE_MRC_BITMASK_BAND_CLASS_9 = 0x400,
393 LE_MRC_BITMASK_BAND_CLASS_10 = 0x800,
394 LE_MRC_BITMASK_BAND_CLASS_11 = 0x1000,
395 LE_MRC_BITMASK_BAND_CLASS_12 = 0x2000,
396 LE_MRC_BITMASK_BAND_CLASS_14 = 0x4000,
397 LE_MRC_BITMASK_BAND_CLASS_15 = 0x8000,
398 LE_MRC_BITMASK_BAND_CLASS_16 = 0x10000,
399 LE_MRC_BITMASK_BAND_CLASS_17 = 0x20000,
400 LE_MRC_BITMASK_BAND_CLASS_18 = 0x40000,
401 LE_MRC_BITMASK_BAND_CLASS_19 = 0x80000,
402 LE_MRC_BITMASK_BAND_GSM_DCS_1800 = 0x100000,
403 LE_MRC_BITMASK_BAND_EGSM_900 = 0x200000,
404 LE_MRC_BITMASK_BAND_PRI_GSM_900 = 0x400000,
405 LE_MRC_BITMASK_BAND_GSM_450 = 0x800000,
406 LE_MRC_BITMASK_BAND_GSM_480 = 0x1000000,
407 LE_MRC_BITMASK_BAND_GSM_750 = 0x2000000,
408 LE_MRC_BITMASK_BAND_GSM_850 = 0x4000000,
409 LE_MRC_BITMASK_BAND_GSMR_900 = 0x8000000,
410 LE_MRC_BITMASK_BAND_GSM_PCS_1900 = 0x10000000,
411 LE_MRC_BITMASK_BAND_WCDMA_EU_J_CH_IMT_2100 = 0x20000000,
412 LE_MRC_BITMASK_BAND_WCDMA_US_PCS_1900 = 0x40000000,
413 LE_MRC_BITMASK_BAND_WCDMA_EU_CH_DCS_1800 = 0x80000000,
414 LE_MRC_BITMASK_BAND_WCDMA_US_1700 = 0x100000000,
415 LE_MRC_BITMASK_BAND_WCDMA_US_850 = 0x200000000,
416 LE_MRC_BITMASK_BAND_WCDMA_J_800 = 0x400000000,
417 LE_MRC_BITMASK_BAND_WCDMA_EU_2600 = 0x800000000,
418 LE_MRC_BITMASK_BAND_WCDMA_EU_J_900 = 0x1000000000,
419 LE_MRC_BITMASK_BAND_WCDMA_J_1700 = 0x2000000000
432 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_1 = 0x1,
433 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_2 = 0x2,
434 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_3 = 0x4,
435 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_4 = 0x8,
436 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_5 = 0x10,
437 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_6 = 0x20,
438 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_7 = 0x40,
439 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_8 = 0x80,
440 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_9 = 0x100,
441 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_10 = 0x200,
442 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_11 = 0x400,
443 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_12 = 0x800,
444 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_13 = 0x1000,
445 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_14 = 0x2000,
446 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_17 = 0x4000,
447 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_18 = 0x8000,
448 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_19 = 0x10000,
449 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_20 = 0x20000,
450 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_21 = 0x40000,
451 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_24 = 0x80000,
452 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_25 = 0x100000,
453 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_33 = 0x200000,
454 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_34 = 0x400000,
455 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_35 = 0x800000,
456 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_36 = 0x1000000,
457 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_37 = 0x2000000,
458 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_38 = 0x4000000,
459 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_39 = 0x8000000,
460 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_40 = 0x10000000,
461 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_41 = 0x20000000,
462 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_42 = 0x40000000,
463 LE_MRC_BITMASK_LTE_BAND_E_UTRA_OP_BAND_43 = 0x80000000
476 LE_MRC_BITMASK_TDSCDMA_BAND_A = 0x1,
477 LE_MRC_BITMASK_TDSCDMA_BAND_B = 0x2,
478 LE_MRC_BITMASK_TDSCDMA_BAND_C = 0x4,
479 LE_MRC_BITMASK_TDSCDMA_BAND_D = 0x8,
480 LE_MRC_BITMASK_TDSCDMA_BAND_E = 0x10,
481 LE_MRC_BITMASK_TDSCDMA_BAND_F = 0x20
492 #define LE_MRC_NETWORK_NAME_MAX_LEN 100
626 LE_MRC_BITMASK_RAT_MAX = 0x20
772 int32_t lowerRangeThreshold,
776 int32_t upperRangeThreshold,
847 bool* isManualPtrPtr,
855 size_t mccPtrNumElements,
862 size_t mncPtrNumElements
1136 size_t mccPtrNumElements,
1143 size_t mncPtrNumElements,
1184 uint32_t* qualityPtr
1342 size_t mccPtrNumElements,
1349 size_t mncPtrNumElements
1377 size_t namePtrNumElements
1495 size_t nameStrNumElements
1515 size_t mccStrNumElements,
1522 size_t mncStrNumElements
1977 #endif // LE_MRC_INTERFACE_H_INCLUDE_GUARD
uint32_t le_mrc_GetNeighborCellId(le_mrc_CellInfoRef_t ngbrCellInfoRef)
LTE RAT Bit Mask.
Definition: le_mrc_interface.h:617
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:620
le_result_t le_mrc_GetSignalQual(uint32_t *qualityPtr)
void le_mrc_DeleteNeighborCellsInfo(le_mrc_NeighborCellsRef_t ngbrCellsRef)
le_mrc_CellInfoRef_t le_mrc_GetNextNeighborCellInfo(le_mrc_NeighborCellsRef_t ngbrCellsRef)
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:524
struct le_mrc_PreferredOperator * le_mrc_PreferredOperatorRef_t
Definition: le_mrc_interface.h:516
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)
le_result_t
Definition: le_basics.h:35
le_result_t le_mrc_SetRadioPower(le_onoff_t power)
struct le_mrc_NeighborCells * le_mrc_NeighborCellsRef_t
Definition: le_mrc_interface.h:540
le_result_t le_mrc_SetTdScdmaBandPreferences(le_mrc_TdScdmaBandBitMask_t bandMask)
struct le_mrc_Metrics * le_mrc_MetricsRef_t
Definition: le_mrc_interface.h:548
UMTS network.
Definition: le_mrc_interface.h:592
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:636
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:644
le_mrc_CellInfoRef_t le_mrc_GetFirstNeighborCellInfo(le_mrc_NeighborCellsRef_t ngbrCellsRef)
Registered to a roaming network.
Definition: le_mrc_interface.h:570
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_GetNeighborCellLteIntraFreq(le_mrc_CellInfoRef_t ngbrCellInfoRef, int32_t *rsrqPtr, int32_t *rsrpPtr)
struct le_mrc_ScanInformationList * le_mrc_ScanInformationListRef_t
Definition: le_mrc_interface.h:508
LTE network.
Definition: le_mrc_interface.h:595
le_result_t le_mrc_GetRatPreferences(le_mrc_RatBitMask_t *ratMaskPtrPtr)
struct le_mrc_CellInfo * le_mrc_CellInfoRef_t
Definition: le_mrc_interface.h:532
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_result_t le_mrc_GetNeighborCellLteInterFreq(le_mrc_CellInfoRef_t ngbrCellInfoRef, int32_t *rsrqPtr, int32_t *rsrpPtr)
struct le_mrc_SignalStrengthChangeHandler * le_mrc_SignalStrengthChangeHandlerRef_t
Definition: le_mrc_interface.h:652
le_mrc_NeighborCellsRef_t le_mrc_GetNeighborCellsInfo(void)
le_mrc_Rat_t le_mrc_GetCellularNetworkRat(le_mrc_ScanInformationRef_t scanInformationRef)
Registered, home network.
Definition: le_mrc_interface.h:561
uint32_t le_mrc_GetServingCellLocAreaCode(void)
le_mrc_PreferredOperatorRef_t le_mrc_GetFirstPreferredOperator(le_mrc_PreferredOperatorListRef_t preferredOperatorListRef)
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:589
void(* le_mrc_RatChangeHandlerFunc_t)(le_mrc_Rat_t rat, void *contextPtr)
Definition: le_mrc_interface.h:683
To Set all RAT preference Bit Mask.
Definition: le_mrc_interface.h:623
le_mrc_RatBitMask_t
Definition: le_mrc_interface.h:609
le_mrc_PreferredOperatorRef_t le_mrc_GetNextPreferredOperator(le_mrc_PreferredOperatorListRef_t preferredOperatorListRef)
CDMA network.
Definition: le_mrc_interface.h:598
le_mrc_Rat_t
Definition: le_mrc_interface.h:584
void le_mrc_RemoveRatChangeHandler(le_mrc_RatChangeHandlerRef_t addHandlerRef)
Unknown.
Definition: le_mrc_interface.h:586
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:500
int32_t le_mrc_GetNeighborCellUmtsEcIo(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_result_t le_mrc_RegisterCellularNetwork(const char *mcc, const char *mnc)
le_result_t le_mrc_RemovePreferredOperator(const char *mcc, const char *mnc)
le_mrc_ScanInformationRef_t le_mrc_GetNextCellularNetworkScan(le_mrc_ScanInformationListRef_t scanInformationListRef)
le_result_t le_mrc_GetRadioAccessTechInUse(le_mrc_Rat_t *ratPtr)
le_result_t le_mrc_SetManualRegisterMode(const char *mcc, const char *mnc)
le_mrc_PreferredOperatorListRef_t le_mrc_GetPreferredOperatorsList(void)
le_result_t le_mrc_GetLteBandPreferences(le_mrc_LteBandBitMask_t *bandMaskPtrPtr)
le_result_t le_mrc_GetCellularNetworkMccMnc(le_mrc_ScanInformationRef_t scanInformationRef, char *mccPtr, size_t mccPtrNumElements, char *mncPtr, size_t mncPtrNumElements)
le_result_t le_mrc_GetCellularNetworkName(le_mrc_ScanInformationRef_t scanInformationRef, char *namePtr, size_t namePtrNumElements)
bool le_mrc_IsCellularNetworkHome(le_mrc_ScanInformationRef_t scanInformationRef)
void le_mrc_ConnectService(void)
void le_mrc_DeletePreferredOperatorsList(le_mrc_PreferredOperatorListRef_t preferredOperatorListRef)
void le_mrc_RemoveSignalStrengthChangeHandler(le_mrc_SignalStrengthChangeHandlerRef_t addHandlerRef)
void le_mrc_RemoveNetRegStateEventHandler(le_mrc_NetRegStateEventHandlerRef_t addHandlerRef)
void(* le_mrc_NetRegStateHandlerFunc_t)(le_mrc_NetRegState_t state, void *contextPtr)
Definition: le_mrc_interface.h:666
Not registered but currently searching for a new operator.
Definition: le_mrc_interface.h:564
le_mrc_BandBitMask_t
Definition: le_mrc_interface.h:380
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_DisconnectService(void)
bool le_mrc_IsCellularNetworkInUse(le_mrc_ScanInformationRef_t scanInformationRef)
le_mrc_NetRegState_t
Definition: le_mrc_interface.h:556
uint32_t le_mrc_GetNeighborCellLocAreaCode(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_result_t le_mrc_GetRegisterMode(bool *isManualPtrPtr, char *mccPtr, size_t mccPtrNumElements, char *mncPtr, size_t mncPtrNumElements)
le_result_t le_mrc_GetCurrentNetworkMccMnc(char *mccStr, size_t mccStrNumElements, char *mncStr, size_t mncStrNumElements)
le_result_t le_mrc_AddPreferredOperator(const char *mcc, const char *mnc, le_mrc_RatBitMask_t ratMask)
le_mrc_MetricsRef_t le_mrc_MeasureSignalMetrics(void)
le_mrc_LteBandBitMask_t
Definition: le_mrc_interface.h:430
Unknown state.
Definition: le_mrc_interface.h:573
bool le_mrc_IsCellularNetworkAvailable(le_mrc_ScanInformationRef_t scanInformationRef)
Registration was denied, usually because of invalid access credentials.
Definition: le_mrc_interface.h:567
UMTS RAT Bit Mask.
Definition: le_mrc_interface.h:614
void(* le_mrc_SignalStrengthChangeHandlerFunc_t)(int32_t ss, void *contextPtr)
Definition: le_mrc_interface.h:700
le_mrc_TdScdmaBandBitMask_t
Definition: le_mrc_interface.h:474
le_result_t le_mrc_GetPreferredOperatorDetails(le_mrc_PreferredOperatorRef_t preferredOperatorRef, char *mccPtr, size_t mccPtrNumElements, char *mncPtr, size_t mncPtrNumElements, le_mrc_RatBitMask_t *ratMaskPtr)
Not registered and not currently searching for new operator.
Definition: le_mrc_interface.h:558
le_result_t le_mrc_GetCurrentNetworkName(char *nameStr, size_t nameStrNumElements)
GSM RAT Bit Mask.
Definition: le_mrc_interface.h:611
le_result_t le_mrc_GetBandPreferences(le_mrc_BandBitMask_t *bandMaskPtrPtr)
le_mrc_ScanInformationRef_t le_mrc_GetFirstCellularNetworkScan(le_mrc_ScanInformationListRef_t scanInformationListRef)
le_mrc_Rat_t le_mrc_GetNeighborCellRat(le_mrc_CellInfoRef_t ngbrCellInfoRef)
le_onoff_t
Definition: le_basics.h:69