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 
225 #ifndef LE_SIM_INTERFACE_H_INCLUDE_GUARD
226 #define LE_SIM_INTERFACE_H_INCLUDE_GUARD
227 
228 
229 #include "legato.h"
230 
231 // Interface specific includes
232 #include "le_mdmDefs_interface.h"
233 
234 
235 //--------------------------------------------------------------------------------------------------
239 //--------------------------------------------------------------------------------------------------
241 (
242  void
243 );
244 
245 //--------------------------------------------------------------------------------------------------
249 //--------------------------------------------------------------------------------------------------
251 (
252  void
253 );
254 
255 
256 //--------------------------------------------------------------------------------------------------
260 //--------------------------------------------------------------------------------------------------
261 #define LE_SIM_PIN_MIN_LEN 4
262 
263 
264 //--------------------------------------------------------------------------------------------------
268 //--------------------------------------------------------------------------------------------------
269 #define LE_SIM_PIN_MAX_LEN 8
270 
271 
272 //--------------------------------------------------------------------------------------------------
277 //--------------------------------------------------------------------------------------------------
278 #define LE_SIM_PIN_MAX_BYTES 9
279 
280 
281 //--------------------------------------------------------------------------------------------------
285 //--------------------------------------------------------------------------------------------------
286 #define LE_SIM_PUK_MAX_LEN 8
287 
288 
289 //--------------------------------------------------------------------------------------------------
294 //--------------------------------------------------------------------------------------------------
295 #define LE_SIM_PUK_MAX_BYTES 9
296 
297 
298 //--------------------------------------------------------------------------------------------------
303 //--------------------------------------------------------------------------------------------------
304 #define LE_SIM_ICCID_LEN 20
305 
306 
307 //--------------------------------------------------------------------------------------------------
312 //--------------------------------------------------------------------------------------------------
313 #define LE_SIM_ICCID_BYTES 21
314 
315 
316 //--------------------------------------------------------------------------------------------------
320 //--------------------------------------------------------------------------------------------------
321 #define LE_SIM_IMSI_LEN 15
322 
323 
324 //--------------------------------------------------------------------------------------------------
329 //--------------------------------------------------------------------------------------------------
330 #define LE_SIM_IMSI_BYTES 16
331 
332 
333 //--------------------------------------------------------------------------------------------------
338 //--------------------------------------------------------------------------------------------------
339 typedef enum
340 {
343 
346 
349 
352 
355 
358 }
360 
361 
362 //--------------------------------------------------------------------------------------------------
367 //--------------------------------------------------------------------------------------------------
368 typedef enum
369 {
372 
375 
378 
381 
382  LE_SIM_ID_MAX
383 }
385 
386 
387 //--------------------------------------------------------------------------------------------------
392 //--------------------------------------------------------------------------------------------------
393 typedef enum
394 {
397 
400 
403 
406 
407  LE_SIM_MANUFACTURER_MAX
408 }
410 
411 
412 //--------------------------------------------------------------------------------------------------
416 //--------------------------------------------------------------------------------------------------
417 typedef enum
418 {
421 
424 
427 }
429 
430 
431 //--------------------------------------------------------------------------------------------------
435 //--------------------------------------------------------------------------------------------------
436 typedef struct le_sim_NewStateHandler* le_sim_NewStateHandlerRef_t;
437 
438 
439 //--------------------------------------------------------------------------------------------------
443 //--------------------------------------------------------------------------------------------------
444 typedef struct le_sim_SimToolkitEventHandler* le_sim_SimToolkitEventHandlerRef_t;
445 
446 
447 //--------------------------------------------------------------------------------------------------
458 //--------------------------------------------------------------------------------------------------
459 typedef void (*le_sim_NewStateHandlerFunc_t)
460 (
461  le_sim_Id_t simId,
462  le_sim_States_t simState,
463  void* contextPtr
464 );
465 
466 
467 //--------------------------------------------------------------------------------------------------
478 //--------------------------------------------------------------------------------------------------
480 (
481  le_sim_Id_t simId,
482  le_sim_StkEvent_t stkEvent,
483  void* contextPtr
484 );
485 
486 //--------------------------------------------------------------------------------------------------
492 //--------------------------------------------------------------------------------------------------
494 (
495  le_sim_NewStateHandlerFunc_t handlerPtr,
497 
498  void* contextPtr
500 );
501 
502 //--------------------------------------------------------------------------------------------------
506 //--------------------------------------------------------------------------------------------------
508 (
509  le_sim_NewStateHandlerRef_t addHandlerRef
511 );
512 
513 //--------------------------------------------------------------------------------------------------
519 //--------------------------------------------------------------------------------------------------
521 (
524 
525  void* contextPtr
527 );
528 
529 //--------------------------------------------------------------------------------------------------
533 //--------------------------------------------------------------------------------------------------
535 (
538 );
539 
540 //--------------------------------------------------------------------------------------------------
546 //--------------------------------------------------------------------------------------------------
548 (
549  void
550 );
551 
552 //--------------------------------------------------------------------------------------------------
560 //--------------------------------------------------------------------------------------------------
562 (
563  le_sim_Id_t simId
566 );
567 
568 //--------------------------------------------------------------------------------------------------
580 //--------------------------------------------------------------------------------------------------
582 (
583  le_sim_Id_t simId,
586 
587  char* iccid,
590 
591  size_t iccidNumElements
593 );
594 
595 //--------------------------------------------------------------------------------------------------
608 //--------------------------------------------------------------------------------------------------
610 (
611  le_sim_Id_t simId,
614 
615  char* imsi,
618 
619  size_t imsiNumElements
621 );
622 
623 //--------------------------------------------------------------------------------------------------
633 //--------------------------------------------------------------------------------------------------
634 bool le_sim_IsPresent
635 (
636  le_sim_Id_t simId
639 );
640 
641 //--------------------------------------------------------------------------------------------------
652 //--------------------------------------------------------------------------------------------------
653 bool le_sim_IsReady
654 (
655  le_sim_Id_t simId
658 );
659 
660 //--------------------------------------------------------------------------------------------------
676 //--------------------------------------------------------------------------------------------------
678 (
679  le_sim_Id_t simId,
682 
683  const char* pin
686 );
687 
688 //--------------------------------------------------------------------------------------------------
703 //--------------------------------------------------------------------------------------------------
705 (
706  le_sim_Id_t simId,
709 
710  const char* oldpin,
713 
714  const char* newpin
717 );
718 
719 //--------------------------------------------------------------------------------------------------
730 //--------------------------------------------------------------------------------------------------
732 (
733  le_sim_Id_t simId
736 );
737 
738 //--------------------------------------------------------------------------------------------------
753 //--------------------------------------------------------------------------------------------------
755 (
756  le_sim_Id_t simId,
759 
760  const char* pin
763 );
764 
765 //--------------------------------------------------------------------------------------------------
780 //--------------------------------------------------------------------------------------------------
782 (
783  le_sim_Id_t simId,
786 
787  const char* pin
790 );
791 
792 //--------------------------------------------------------------------------------------------------
808 //--------------------------------------------------------------------------------------------------
810 (
811  le_sim_Id_t simId,
814 
815  const char* puk,
818 
819  const char* newpin
822 );
823 
824 //--------------------------------------------------------------------------------------------------
833 //--------------------------------------------------------------------------------------------------
835 (
836  le_sim_Id_t simId
839 );
840 
841 //--------------------------------------------------------------------------------------------------
854 //--------------------------------------------------------------------------------------------------
856 (
857  le_sim_Id_t simId,
860 
861  char* phoneNumberStr,
864 
865  size_t phoneNumberStrNumElements
867 );
868 
869 //--------------------------------------------------------------------------------------------------
883 //--------------------------------------------------------------------------------------------------
885 (
886  le_sim_Id_t simId,
889 
890  char* nameStr,
893 
894  size_t nameStrNumElements
896 );
897 
898 //--------------------------------------------------------------------------------------------------
910 //--------------------------------------------------------------------------------------------------
912 (
913  le_sim_Id_t simId,
916 
917  char* mccPtr,
920 
921  size_t mccPtrNumElements,
923 
924  char* mncPtr,
927 
928  size_t mncPtrNumElements
930 );
931 
932 //--------------------------------------------------------------------------------------------------
944 //--------------------------------------------------------------------------------------------------
946 (
947  le_sim_Id_t simId,
950 
951  le_sim_Manufacturer_t manufacturer
954 );
955 
956 //--------------------------------------------------------------------------------------------------
969 //--------------------------------------------------------------------------------------------------
971 (
972  le_sim_Id_t simId,
975 
976  le_sim_Manufacturer_t manufacturer
979 );
980 
981 //--------------------------------------------------------------------------------------------------
995 //--------------------------------------------------------------------------------------------------
997 (
998  le_sim_Id_t simId,
1001 
1002  bool* isEcsPtr
1006 );
1007 
1008 //--------------------------------------------------------------------------------------------------
1015 //--------------------------------------------------------------------------------------------------
1017 (
1018  le_sim_Id_t simId
1021 );
1022 
1023 //--------------------------------------------------------------------------------------------------
1030 //--------------------------------------------------------------------------------------------------
1032 (
1033  le_sim_Id_t simId
1036 );
1037 
1038 
1039 #endif // LE_SIM_INTERFACE_H_INCLUDE_GUARD
1040 
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:368
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:353
void(* le_sim_SimToolkitEventHandlerFunc_t)(le_sim_Id_t simId, le_sim_StkEvent_t stkEvent, void *contextPtr)
Definition: le_sim_interface.h:480
le_sim_StkEvent_t
Definition: le_sim_interface.h:417
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:370
Oberthur.
Definition: le_sim_interface.h:395
le_sim_States_t
Definition: le_sim_interface.h:339
void(* le_sim_NewStateHandlerFunc_t)(le_sim_Id_t simId, le_sim_States_t simState, void *contextPtr)
Definition: le_sim_interface.h:460
struct le_sim_SimToolkitEventHandler * le_sim_SimToolkitEventHandlerRef_t
Definition: le_sim_interface.h:444
le_result_t le_sim_Unlock(le_sim_Id_t simId, const char *pin)
SIM card is absent.
Definition: le_sim_interface.h:344
SIM card is inserted and locked.
Definition: le_sim_interface.h:341
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:425
void le_sim_ConnectService(void)
SIM card ask to open a logical channel.
Definition: le_sim_interface.h:419
Gemalto.
Definition: le_sim_interface.h:398
SIM card ask for a refresh.
Definition: le_sim_interface.h:422
SIM inserted in external slot 1.
Definition: le_sim_interface.h:373
void le_sim_DisconnectService(void)
struct le_sim_NewStateHandler * le_sim_NewStateHandlerRef_t
Definition: le_sim_interface.h:436
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:393
Remote SIM.
Definition: le_sim_interface.h:379
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:350
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:401
le_result_t le_sim_GetIMSI(le_sim_Id_t simId, char *imsi, size_t imsiNumElements)
Morpho.
Definition: le_sim_interface.h:404
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:376
Unknown SIM state.
Definition: le_sim_interface.h:356
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:347