All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
143 #ifndef LE_SIM_H_INCLUDE_GUARD
144 #define LE_SIM_H_INCLUDE_GUARD
145 
146 
147 #include "legato.h"
148 
149 //--------------------------------------------------------------------------------------------------
153 //--------------------------------------------------------------------------------------------------
155 (
156  const char* serviceInstanceName
158 );
159 
160 //--------------------------------------------------------------------------------------------------
164 //--------------------------------------------------------------------------------------------------
166 (
167  void
168 );
169 
170 
171 //--------------------------------------------------------------------------------------------------
176 //--------------------------------------------------------------------------------------------------
177 #define LE_SIM_PIN_MIN_LEN 4
178 
179 
180 //--------------------------------------------------------------------------------------------------
185 //--------------------------------------------------------------------------------------------------
186 #define LE_SIM_PIN_MAX_LEN 8
187 
188 
189 //--------------------------------------------------------------------------------------------------
194 //--------------------------------------------------------------------------------------------------
195 #define LE_SIM_PUK_LEN 8
196 
197 
198 //--------------------------------------------------------------------------------------------------
203 //--------------------------------------------------------------------------------------------------
204 #define LE_SIM_ICCID_LEN 21
205 
206 
207 //--------------------------------------------------------------------------------------------------
212 //--------------------------------------------------------------------------------------------------
213 #define LE_SIM_IMSI_LEN 16
214 
215 
216 //--------------------------------------------------------------------------------------------------
221 //--------------------------------------------------------------------------------------------------
222 typedef enum
223 {
226 
229 
232 
235 
238 
241 }
243 
244 
245 //--------------------------------------------------------------------------------------------------
249 //--------------------------------------------------------------------------------------------------
250 typedef struct le_sim_Obj* le_sim_ObjRef_t;
251 
252 
253 //--------------------------------------------------------------------------------------------------
257 //--------------------------------------------------------------------------------------------------
258 typedef struct le_sim_NewStateHandler* le_sim_NewStateHandlerRef_t;
259 
260 
261 //--------------------------------------------------------------------------------------------------
270 //--------------------------------------------------------------------------------------------------
271 typedef void (*le_sim_NewStateHandlerFunc_t)
272 (
273  le_sim_ObjRef_t simRef,
274  void* contextPtr
275 );
276 
277 //--------------------------------------------------------------------------------------------------
281 //--------------------------------------------------------------------------------------------------
283 (
284  le_sim_NewStateHandlerFunc_t handlerPtr,
286 
287  void* contextPtr
289 );
290 
291 //--------------------------------------------------------------------------------------------------
295 //--------------------------------------------------------------------------------------------------
297 (
298  le_sim_NewStateHandlerRef_t addHandlerRef
300 );
301 
302 //--------------------------------------------------------------------------------------------------
308 //--------------------------------------------------------------------------------------------------
309 uint32_t le_sim_CountSlots
310 (
311  void
312 );
313 
314 //--------------------------------------------------------------------------------------------------
320 //--------------------------------------------------------------------------------------------------
321 uint32_t le_sim_GetSelectedCard
322 (
323  void
324 );
325 
326 //--------------------------------------------------------------------------------------------------
335 //--------------------------------------------------------------------------------------------------
337 (
338  uint32_t cardNum
341 );
342 
343 //--------------------------------------------------------------------------------------------------
355 //--------------------------------------------------------------------------------------------------
356 void le_sim_Delete
357 (
358  le_sim_ObjRef_t simRef
361 );
362 
363 //--------------------------------------------------------------------------------------------------
372 //--------------------------------------------------------------------------------------------------
373 uint32_t le_sim_GetSlotNumber
374 (
375  le_sim_ObjRef_t simRef
378 );
379 
380 //--------------------------------------------------------------------------------------------------
391 //--------------------------------------------------------------------------------------------------
393 (
394  le_sim_ObjRef_t simRef,
397 
398  char* iccid,
401 
402  size_t iccidNumElements
404 );
405 
406 //--------------------------------------------------------------------------------------------------
417 //--------------------------------------------------------------------------------------------------
419 (
420  le_sim_ObjRef_t simRef,
423 
424  char* imsi,
427 
428  size_t imsiNumElements
430 );
431 
432 //--------------------------------------------------------------------------------------------------
442 //--------------------------------------------------------------------------------------------------
443 bool le_sim_IsPresent
444 (
445  le_sim_ObjRef_t simRef
448 );
449 
450 //--------------------------------------------------------------------------------------------------
461 //--------------------------------------------------------------------------------------------------
462 bool le_sim_IsReady
463 (
464  le_sim_ObjRef_t simRef
467 );
468 
469 //--------------------------------------------------------------------------------------------------
484 //--------------------------------------------------------------------------------------------------
486 (
487  le_sim_ObjRef_t simRef,
490 
491  const char* pin
494 );
495 
496 //--------------------------------------------------------------------------------------------------
511 //--------------------------------------------------------------------------------------------------
513 (
514  le_sim_ObjRef_t simRef,
517 
518  const char* oldpin,
521 
522  const char* newpin
525 );
526 
527 //--------------------------------------------------------------------------------------------------
538 //--------------------------------------------------------------------------------------------------
540 (
541  le_sim_ObjRef_t simRef
544 );
545 
546 //--------------------------------------------------------------------------------------------------
561 //--------------------------------------------------------------------------------------------------
563 (
564  le_sim_ObjRef_t simRef,
567 
568  const char* pin
571 );
572 
573 //--------------------------------------------------------------------------------------------------
588 //--------------------------------------------------------------------------------------------------
590 (
591  le_sim_ObjRef_t simRef,
594 
595  const char* pin
598 );
599 
600 //--------------------------------------------------------------------------------------------------
616 //--------------------------------------------------------------------------------------------------
618 (
619  le_sim_ObjRef_t simRef,
622 
623  const char* puk,
626 
627  const char* newpin
630 );
631 
632 //--------------------------------------------------------------------------------------------------
641 //--------------------------------------------------------------------------------------------------
643 (
644  le_sim_ObjRef_t simRef
647 );
648 
649 //--------------------------------------------------------------------------------------------------
661 //--------------------------------------------------------------------------------------------------
663 (
664  le_sim_ObjRef_t simRef,
667 
668  char* phoneNumberStr,
671 
672  size_t phoneNumberStrNumElements
674 );
675 
676 
677 #endif // LE_SIM_H_INCLUDE_GUARD
678 
struct le_sim_Obj * le_sim_ObjRef_t
Definition: le_sim_interface.h:250
le_sim_NewStateHandlerRef_t le_sim_AddNewStateHandler(le_sim_NewStateHandlerFunc_t handlerPtr, void *contextPtr)
uint32_t le_sim_GetSlotNumber(le_sim_ObjRef_t simRef)
uint32_t le_sim_CountSlots(void)
le_result_t
Definition: le_basics.h:34
SIM card is busy.
Definition: le_sim_interface.h:236
le_sim_ObjRef_t le_sim_Create(uint32_t cardNum)
void le_sim_StopClient(void)
le_result_t le_sim_Lock(le_sim_ObjRef_t simRef, const char *pin)
le_sim_States_t
Definition: le_sim_interface.h:222
le_sim_States_t le_sim_GetState(le_sim_ObjRef_t simRef)
void le_sim_Delete(le_sim_ObjRef_t simRef)
SIM card is absent.
Definition: le_sim_interface.h:227
void(* le_sim_NewStateHandlerFunc_t)(le_sim_ObjRef_t simRef, void *contextPtr)
Definition: le_sim_interface.h:272
le_result_t le_sim_Unlock(le_sim_ObjRef_t simRef, const char *pin)
SIM card is inserted and locked.
Definition: le_sim_interface.h:224
le_result_t le_sim_ChangePIN(le_sim_ObjRef_t simRef, const char *oldpin, const char *newpin)
le_result_t le_sim_GetIMSI(le_sim_ObjRef_t simRef, char *imsi, size_t imsiNumElements)
int32_t le_sim_GetRemainingPINTries(le_sim_ObjRef_t simRef)
bool le_sim_IsReady(le_sim_ObjRef_t simRef)
struct le_sim_NewStateHandler * le_sim_NewStateHandlerRef_t
Definition: le_sim_interface.h:258
le_result_t le_sim_EnterPIN(le_sim_ObjRef_t simRef, const char *pin)
le_result_t le_sim_GetSubscriberPhoneNumber(le_sim_ObjRef_t simRef, char *phoneNumberStr, size_t phoneNumberStrNumElements)
void le_sim_RemoveNewStateHandler(le_sim_NewStateHandlerRef_t addHandlerRef)
SIM card is blocked.
Definition: le_sim_interface.h:233
bool le_sim_IsPresent(le_sim_ObjRef_t simRef)
le_result_t le_sim_GetICCID(le_sim_ObjRef_t simRef, char *iccid, size_t iccidNumElements)
void le_sim_StartClient(const char *serviceInstanceName)
le_result_t le_sim_Unblock(le_sim_ObjRef_t simRef, const char *puk, const char *newpin)
uint32_t le_sim_GetSelectedCard(void)
Unknown SIM state.
Definition: le_sim_interface.h:239
SIM card is inserted and unlocked.
Definition: le_sim_interface.h:230