Go to the source code of this file.
Data Structures | |
| struct | pa_sim_Event_t |
Macros | |
| #define | PA_SIM_CARDID_MAX_LEN 20 |
| #define | PA_SIM_IMSI_MAX_LEN 15 |
| #define | PA_SIM_PIN_MAX_LEN 8 |
| #define | PA_SIM_PUK_MAX_LEN 8 |
Typedefs | |
| typedef char | pa_sim_CardId_t [PA_SIM_CARDID_MAX_LEN+1] |
| typedef char | pa_sim_Imsi_t [PA_SIM_IMSI_MAX_LEN+1] |
| typedef char | pa_sim_Pin_t [PA_SIM_PIN_MAX_LEN+1] |
| typedef char | pa_sim_Puk_t [PA_SIM_PUK_MAX_LEN+1] |
| typedef void(* | pa_sim_NewStateHdlrFunc_t )(pa_sim_Event_t *eventPtr) |
Enumerations | |
| enum | pa_sim_PinType_t { PA_SIM_PIN =0, PA_SIM_PIN2 } |
| enum | pa_sim_PukType_t { PA_SIM_PUK =0, PA_SIM_PUK2 } |
Legato Modem SIM Platform Adapter API include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
| #define PA_SIM_CARDID_MAX_LEN 20 |
Maximum identification number length.
| #define PA_SIM_IMSI_MAX_LEN 15 |
Maximum International Mobile Subscriber Identity length.
| #define PA_SIM_PIN_MAX_LEN 8 |
Maximum PIN Code length.
| #define PA_SIM_PUK_MAX_LEN 8 |
Maximum PUK Code length.
| typedef char pa_sim_CardId_t[PA_SIM_CARDID_MAX_LEN+1] |
Type definition for an Identification number of the SIM card (20 digit)
| typedef char pa_sim_Imsi_t[PA_SIM_IMSI_MAX_LEN+1] |
Type definition for an International Mobile Subscriber Identity (16 digit)
| typedef void(* pa_sim_NewStateHdlrFunc_t)(pa_sim_Event_t *eventPtr) |
Prototype for handler functions used to report that a new SIM state notification.
| event | The event notification. |
| typedef char pa_sim_Pin_t[PA_SIM_PIN_MAX_LEN+1] |
Type definition for a pin code (8 digit max)
| typedef char pa_sim_Puk_t[PA_SIM_PUK_MAX_LEN+1] |
Type definition for a puk code (8 digit max)
| enum pa_sim_PinType_t |
| enum pa_sim_PukType_t |
| le_event_HandlerRef_t pa_sim_AddNewStateHandler | ( | pa_sim_NewStateHdlrFunc_t | handler | ) |
This function must be called to register a handler for new SIM state notification handling.
| [in] | handler | The handler function. |
| le_result_t pa_sim_ChangePIN | ( | pa_sim_PinType_t | type, |
| const pa_sim_Pin_t | oldcode, | ||
| const pa_sim_Pin_t | newcode | ||
| ) |
This function change a code.
| [in] | type | The code type |
| [in] | oldcode | Old code |
| [in] | newcode | New code |
| uint32_t pa_sim_CountSlots | ( | void | ) |
This function counts number of sim card available
| le_result_t pa_sim_DisablePIN | ( | pa_sim_PinType_t | type, |
| const pa_sim_Pin_t | code | ||
| ) |
This function disables PIN locking (PIN or PIN2).
| [in] | type | The code type. |
| [in] | code | code |
| le_result_t pa_sim_EnablePIN | ( | pa_sim_PinType_t | type, |
| const pa_sim_Pin_t | code | ||
| ) |
This function enables PIN locking (PIN or PIN2).
| [in] | type | The pin type |
| [in] | code | code |
| le_result_t pa_sim_EnterPIN | ( | pa_sim_PinType_t | type, |
| const pa_sim_Pin_t | pin | ||
| ) |
This function enter the PIN code.
| [in] | type | pin type |
| [in] | pin | pin code |
| le_result_t pa_sim_EnterPUK | ( | pa_sim_PukType_t | type, |
| const pa_sim_Puk_t | puk, | ||
| const pa_sim_Pin_t | pin | ||
| ) |
This function set the new PIN code.
All depends on SIM state which must be retrieved by pa_sim_GetState
| [in] | type | puk type |
| [in] | puk | PUK code |
| [in] | pin | new PIN code |
| le_result_t pa_sim_GetCardIdentification | ( | pa_sim_CardId_t | iccid | ) |
This function get the card identification (ICCID).
| [out] | iccid | ICCID value |
| le_result_t pa_sim_GetIMSI | ( | pa_sim_Imsi_t | imsi | ) |
This function get the International Mobile Subscriber Identity (IMSI).
| [out] | imsi | IMSI value |
| le_result_t pa_sim_GetPINRemainingAttempts | ( | pa_sim_PinType_t | type, |
| uint32_t * | attemptsPtr | ||
| ) |
This function get the remaining attempts of a pin code.
| [in] | type | The pin type |
| [out] | attemptsPtr | The number of attempts still possible |
| le_result_t pa_sim_GetPUKRemainingAttempts | ( | pa_sim_PukType_t | type, |
| uint32_t * | attemptsPtr | ||
| ) |
This function get the remaining attempts of a puk code.
| [in] | type | The puk type |
| [out] | attemptsPtr | The number of attempts still possible |
| le_result_t pa_sim_GetSelectedCard | ( | uint32_t * | cardNumPtr | ) |
This function get the card on which operations are operated.
| [out] | cardNumPtr | The card number selected. |
| le_result_t pa_sim_GetState | ( | le_sim_States_t * | statePtr | ) |
This function get the SIM Status.
| [out] | statePtr | SIM state |
| le_result_t pa_sim_GetSubscriberPhoneNumber | ( | char * | phoneNumberStr, |
| size_t | phoneNumberStrSize | ||
| ) |
Get the SIM Phone Number.
| [out] | phoneNumberStr | The phone Number |
| [in] | phoneNumberStrSize | Size of phoneNumberStr |
| le_result_t pa_sim_RemoveNewStateHandler | ( | le_event_HandlerRef_t | handlerRef | ) |
This function must be called to unregister the handler for new SIM state notification handling.
| le_result_t pa_sim_SelectCard | ( | uint32_t | cardNum | ) |
This function selects the Card on which all further SIM operations have to be operated.
| [in] | cardNum | The card number to be selected. |