le_sim_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
279 #ifndef LE_SIM_INTERFACE_H_INCLUDE_GUARD
280 #define LE_SIM_INTERFACE_H_INCLUDE_GUARD
281 
282 
283 #include "legato.h"
284 
285 // Interface specific includes
286 #include "le_mdmDefs_interface.h"
287 
288 
289 //--------------------------------------------------------------------------------------------------
300 //--------------------------------------------------------------------------------------------------
302 (
303  void
304 );
305 
306 //--------------------------------------------------------------------------------------------------
317 //--------------------------------------------------------------------------------------------------
319 (
320  void
321 );
322 
323 
324 //--------------------------------------------------------------------------------------------------
328 //--------------------------------------------------------------------------------------------------
329 #define LE_SIM_PIN_MIN_LEN 4
330 
331 
332 //--------------------------------------------------------------------------------------------------
336 //--------------------------------------------------------------------------------------------------
337 #define LE_SIM_PIN_MAX_LEN 8
338 
339 
340 //--------------------------------------------------------------------------------------------------
345 //--------------------------------------------------------------------------------------------------
346 #define LE_SIM_PIN_MAX_BYTES 9
347 
348 
349 //--------------------------------------------------------------------------------------------------
353 //--------------------------------------------------------------------------------------------------
354 #define LE_SIM_PUK_MAX_LEN 8
355 
356 
357 //--------------------------------------------------------------------------------------------------
362 //--------------------------------------------------------------------------------------------------
363 #define LE_SIM_PUK_MAX_BYTES 9
364 
365 
366 //--------------------------------------------------------------------------------------------------
371 //--------------------------------------------------------------------------------------------------
372 #define LE_SIM_ICCID_LEN 20
373 
374 
375 //--------------------------------------------------------------------------------------------------
380 //--------------------------------------------------------------------------------------------------
381 #define LE_SIM_ICCID_BYTES 21
382 
383 
384 //--------------------------------------------------------------------------------------------------
388 //--------------------------------------------------------------------------------------------------
389 #define LE_SIM_IMSI_LEN 15
390 
391 
392 //--------------------------------------------------------------------------------------------------
397 //--------------------------------------------------------------------------------------------------
398 #define LE_SIM_IMSI_BYTES 16
399 
400 
401 //--------------------------------------------------------------------------------------------------
406 //--------------------------------------------------------------------------------------------------
407 typedef enum
408 {
411 
414 
417 
420 
423 
426 }
428 
429 
430 //--------------------------------------------------------------------------------------------------
435 //--------------------------------------------------------------------------------------------------
436 typedef enum
437 {
440 
443 
446 
449 
450  LE_SIM_ID_MAX
451 }
453 
454 
455 //--------------------------------------------------------------------------------------------------
460 //--------------------------------------------------------------------------------------------------
461 typedef enum
462 {
465 
468 
471 
474 
475  LE_SIM_MANUFACTURER_MAX
476 }
478 
479 
480 //--------------------------------------------------------------------------------------------------
484 //--------------------------------------------------------------------------------------------------
485 typedef enum
486 {
489 
492 
495 }
497 
498 
499 //--------------------------------------------------------------------------------------------------
503 //--------------------------------------------------------------------------------------------------
504 typedef struct le_sim_NewStateHandler* le_sim_NewStateHandlerRef_t;
505 
506 
507 //--------------------------------------------------------------------------------------------------
511 //--------------------------------------------------------------------------------------------------
512 typedef struct le_sim_SimToolkitEventHandler* le_sim_SimToolkitEventHandlerRef_t;
513 
514 
515 //--------------------------------------------------------------------------------------------------
526 //--------------------------------------------------------------------------------------------------
527 typedef void (*le_sim_NewStateHandlerFunc_t)
528 (
529  le_sim_Id_t simId,
530  le_sim_States_t simState,
531  void* contextPtr
532 );
533 
534 
535 //--------------------------------------------------------------------------------------------------
546 //--------------------------------------------------------------------------------------------------
548 (
549  le_sim_Id_t simId,
550  le_sim_StkEvent_t stkEvent,
551  void* contextPtr
552 );
553 
554 //--------------------------------------------------------------------------------------------------
560 //--------------------------------------------------------------------------------------------------
562 (
563  le_sim_NewStateHandlerFunc_t handlerPtr,
565 
566  void* contextPtr
568 );
569 
570 //--------------------------------------------------------------------------------------------------
574 //--------------------------------------------------------------------------------------------------
576 (
577  le_sim_NewStateHandlerRef_t addHandlerRef
579 );
580 
581 //--------------------------------------------------------------------------------------------------
587 //--------------------------------------------------------------------------------------------------
589 (
592 
593  void* contextPtr
595 );
596 
597 //--------------------------------------------------------------------------------------------------
601 //--------------------------------------------------------------------------------------------------
603 (
606 );
607 
608 //--------------------------------------------------------------------------------------------------
614 //--------------------------------------------------------------------------------------------------
616 (
617  void
618 );
619 
620 //--------------------------------------------------------------------------------------------------
628 //--------------------------------------------------------------------------------------------------
630 (
631  le_sim_Id_t simId
634 );
635 
636 //--------------------------------------------------------------------------------------------------
648 //--------------------------------------------------------------------------------------------------
650 (
651  le_sim_Id_t simId,
654 
655  char* iccid,
658 
659  size_t iccidNumElements
661 );
662 
663 //--------------------------------------------------------------------------------------------------
676 //--------------------------------------------------------------------------------------------------
678 (
679  le_sim_Id_t simId,
682 
683  char* imsi,
686 
687  size_t imsiNumElements
689 );
690 
691 //--------------------------------------------------------------------------------------------------
701 //--------------------------------------------------------------------------------------------------
702 bool le_sim_IsPresent
703 (
704  le_sim_Id_t simId
707 );
708 
709 //--------------------------------------------------------------------------------------------------
720 //--------------------------------------------------------------------------------------------------
721 bool le_sim_IsReady
722 (
723  le_sim_Id_t simId
726 );
727 
728 //--------------------------------------------------------------------------------------------------
744 //--------------------------------------------------------------------------------------------------
746 (
747  le_sim_Id_t simId,
750 
751  const char* pin
754 );
755 
756 //--------------------------------------------------------------------------------------------------
771 //--------------------------------------------------------------------------------------------------
773 (
774  le_sim_Id_t simId,
777 
778  const char* oldpin,
781 
782  const char* newpin
785 );
786 
787 //--------------------------------------------------------------------------------------------------
798 //--------------------------------------------------------------------------------------------------
800 (
801  le_sim_Id_t simId
804 );
805 
806 //--------------------------------------------------------------------------------------------------
821 //--------------------------------------------------------------------------------------------------
823 (
824  le_sim_Id_t simId,
827 
828  const char* pin
831 );
832 
833 //--------------------------------------------------------------------------------------------------
848 //--------------------------------------------------------------------------------------------------
850 (
851  le_sim_Id_t simId,
854 
855  const char* pin
858 );
859 
860 //--------------------------------------------------------------------------------------------------
876 //--------------------------------------------------------------------------------------------------
878 (
879  le_sim_Id_t simId,
882 
883  const char* puk,
886 
887  const char* newpin
890 );
891 
892 //--------------------------------------------------------------------------------------------------
901 //--------------------------------------------------------------------------------------------------
903 (
904  le_sim_Id_t simId
907 );
908 
909 //--------------------------------------------------------------------------------------------------
922 //--------------------------------------------------------------------------------------------------
924 (
925  le_sim_Id_t simId,
928 
929  char* phoneNumberStr,
932 
933  size_t phoneNumberStrNumElements
935 );
936 
937 //--------------------------------------------------------------------------------------------------
951 //--------------------------------------------------------------------------------------------------
953 (
954  le_sim_Id_t simId,
957 
958  char* nameStr,
961 
962  size_t nameStrNumElements
964 );
965 
966 //--------------------------------------------------------------------------------------------------
978 //--------------------------------------------------------------------------------------------------
980 (
981  le_sim_Id_t simId,
984 
985  char* mccPtr,
988 
989  size_t mccPtrNumElements,
991 
992  char* mncPtr,
995 
996  size_t mncPtrNumElements
998 );
999 
1000 //--------------------------------------------------------------------------------------------------
1016 //--------------------------------------------------------------------------------------------------
1018 (
1019  le_sim_Id_t simId,
1022 
1023  le_sim_Manufacturer_t manufacturer
1026 );
1027 
1028 //--------------------------------------------------------------------------------------------------
1045 //--------------------------------------------------------------------------------------------------
1047 (
1048  le_sim_Id_t simId,
1051 
1052  le_sim_Manufacturer_t manufacturer
1055 );
1056 
1057 //--------------------------------------------------------------------------------------------------
1071 //--------------------------------------------------------------------------------------------------
1073 (
1074  le_sim_Id_t simId,
1077 
1078  bool* isEcsPtr
1082 );
1083 
1084 //--------------------------------------------------------------------------------------------------
1091 //--------------------------------------------------------------------------------------------------
1093 (
1094  le_sim_Id_t simId
1097 );
1098 
1099 //--------------------------------------------------------------------------------------------------
1106 //--------------------------------------------------------------------------------------------------
1108 (
1109  le_sim_Id_t simId
1112 );
1113 
1114 
1115 #endif // LE_SIM_INTERFACE_H_INCLUDE_GUARD
1116 
le_sim_NewStateHandlerRef_t le_sim_AddNewStateHandler(le_sim_NewStateHandlerFunc_t handlerPtr, void *contextPtr)
bool le_sim_IsPresent(le_sim_Id_t simId)
le_sim_Id_t
Definition: le_sim_interface.h:436
le_result_t
Definition: le_basics.h:35
le_result_t le_sim_Lock(le_sim_Id_t simId, const char *pin)
le_result_t le_sim_LocalSwapToEmergencyCallSubscription(le_sim_Id_t simId, le_sim_Manufacturer_t manufacturer)
le_result_t le_sim_GetSubscriberPhoneNumber(le_sim_Id_t simId, char *phoneNumberStr, size_t phoneNumberStrNumElements)
SIM card is busy.
Definition: le_sim_interface.h:421
void(* le_sim_SimToolkitEventHandlerFunc_t)(le_sim_Id_t simId, le_sim_StkEvent_t stkEvent, void *contextPtr)
Definition: le_sim_interface.h:548
le_sim_StkEvent_t
Definition: le_sim_interface.h:485
le_result_t le_sim_GetHomeNetworkOperator(le_sim_Id_t simId, char *nameStr, size_t nameStrNumElements)
le_result_t le_sim_Unblock(le_sim_Id_t simId, const char *puk, const char *newpin)
Embedded SIM.
Definition: le_sim_interface.h:438
Oberthur.
Definition: le_sim_interface.h:463
le_sim_States_t
Definition: le_sim_interface.h:407
void(* le_sim_NewStateHandlerFunc_t)(le_sim_Id_t simId, le_sim_States_t simState, void *contextPtr)
Definition: le_sim_interface.h:528
struct le_sim_SimToolkitEventHandler * le_sim_SimToolkitEventHandlerRef_t
Definition: le_sim_interface.h:512
le_result_t le_sim_Unlock(le_sim_Id_t simId, const char *pin)
SIM card is absent.
Definition: le_sim_interface.h:412
SIM card is inserted and locked.
Definition: le_sim_interface.h:409
void le_sim_RemoveSimToolkitEventHandler(le_sim_SimToolkitEventHandlerRef_t addHandlerRef)
le_result_t le_sim_AcceptSimToolkitCommand(le_sim_Id_t simId)
le_result_t le_sim_GetHomeNetworkMccMnc(le_sim_Id_t simId, char *mccPtr, size_t mccPtrNumElements, char *mncPtr, size_t mncPtrNumElements)
Unknown SIM Toolkit event.
Definition: le_sim_interface.h:493
void le_sim_ConnectService(void)
SIM card ask to open a logical channel.
Definition: le_sim_interface.h:487
Gemalto.
Definition: le_sim_interface.h:466
SIM card ask for a refresh.
Definition: le_sim_interface.h:490
SIM inserted in external slot 1.
Definition: le_sim_interface.h:441
void le_sim_DisconnectService(void)
struct le_sim_NewStateHandler * le_sim_NewStateHandlerRef_t
Definition: le_sim_interface.h:504
le_result_t le_sim_ChangePIN(le_sim_Id_t simId, const char *oldpin, const char *newpin)
le_result_t le_sim_SelectCard(le_sim_Id_t simId)
le_sim_Manufacturer_t
Definition: le_sim_interface.h:461
Remote SIM.
Definition: le_sim_interface.h:447
int32_t le_sim_GetRemainingPINTries(le_sim_Id_t simId)
bool le_sim_IsReady(le_sim_Id_t simId)
le_sim_SimToolkitEventHandlerRef_t le_sim_AddSimToolkitEventHandler(le_sim_SimToolkitEventHandlerFunc_t handlerPtr, void *contextPtr)
le_result_t le_sim_RejectSimToolkitCommand(le_sim_Id_t simId)
void le_sim_RemoveNewStateHandler(le_sim_NewStateHandlerRef_t addHandlerRef)
SIM card is blocked.
Definition: le_sim_interface.h:418
le_result_t le_sim_EnterPIN(le_sim_Id_t simId, const char *pin)
le_result_t le_sim_IsEmergencyCallSubscriptionSelected(le_sim_Id_t simId, bool *isEcsPtr)
G&D.
Definition: le_sim_interface.h:469
le_result_t le_sim_GetIMSI(le_sim_Id_t simId, char *imsi, size_t imsiNumElements)
Morpho.
Definition: le_sim_interface.h:472
le_sim_Id_t le_sim_GetSelectedCard(void)
le_sim_States_t le_sim_GetState(le_sim_Id_t simId)
le_result_t le_sim_LocalSwapToCommercialSubscription(le_sim_Id_t simId, le_sim_Manufacturer_t manufacturer)
SIM inserted in external slot 2.
Definition: le_sim_interface.h:444
Unknown SIM state.
Definition: le_sim_interface.h:424
le_result_t le_sim_GetICCID(le_sim_Id_t simId, char *iccid, size_t iccidNumElements)
SIM card is inserted and unlocked.
Definition: le_sim_interface.h:415