le_sim_common.h File Reference

#include "legato.h"
#include "le_mdmDefs_common.h"

Go to the source code of this file.

Macros

#define LE_SIM_PIN_MIN_LEN   4
 
#define LE_SIM_PIN_MAX_LEN   8
 
#define LE_SIM_PIN_MAX_BYTES   9
 
#define LE_SIM_PUK_MAX_LEN   8
 
#define LE_SIM_PUK_MAX_BYTES   9
 
#define LE_SIM_ICCID_LEN   20
 
#define LE_SIM_ICCID_BYTES   21
 
#define LE_SIM_IMSI_LEN   15
 
#define LE_SIM_IMSI_BYTES   16
 
#define LE_SIM_APDU_MAX_BYTES   255
 
#define LE_SIM_RESPONSE_MAX_BYTES   256
 
#define LE_SIM_FILE_ID_LEN   4
 
#define LE_SIM_FILE_ID_BYTES   5
 
#define LE_SIM_DATA_MAX_BYTES   100
 
#define LE_SIM_PATH_MAX_LEN   100
 
#define LE_SIM_PATH_MAX_BYTES   101
 
#define LE_SIM_EID_LEN   32
 
#define LE_SIM_EID_BYTES   33
 

Typedefs

typedef struct le_sim_FPLMNList * le_sim_FPLMNListRef_t
 
typedef struct le_sim_NewStateHandler * le_sim_NewStateHandlerRef_t
 
typedef struct le_sim_ProfileUpdateHandler * le_sim_ProfileUpdateHandlerRef_t
 
typedef struct le_sim_SimToolkitEventHandler * le_sim_SimToolkitEventHandlerRef_t
 
typedef struct le_sim_IccidChangeHandler * le_sim_IccidChangeHandlerRef_t
 
typedef void(* le_sim_NewStateHandlerFunc_t) (le_sim_Id_t simId, le_sim_States_t simState, void *contextPtr)
 
typedef void(* le_sim_ProfileUpdateHandlerFunc_t) (le_sim_Id_t simId, le_sim_StkEvent_t stkEvent, void *contextPtr)
 
typedef void(* le_sim_SimToolkitEventHandlerFunc_t) (le_sim_Id_t simId, le_sim_StkEvent_t stkEvent, void *contextPtr)
 
typedef void(* le_sim_IccidChangeHandlerFunc_t) (le_sim_Id_t simId, const char *LE_NONNULL iccid, void *contextPtr)
 

Enumerations

enum  le_sim_States_t {
  LE_SIM_INSERTED = 0, LE_SIM_ABSENT = 1, LE_SIM_READY = 2, LE_SIM_BLOCKED = 3,
  LE_SIM_BUSY = 4, LE_SIM_POWER_DOWN = 5, LE_SIM_STATE_UNKNOWN = 6
}
 
enum  le_sim_Id_t {
  LE_SIM_EMBEDDED = 0, LE_SIM_EXTERNAL_SLOT_1 = 1, LE_SIM_EXTERNAL_SLOT_2 = 2, LE_SIM_REMOTE = 3,
  LE_SIM_UNSPECIFIED = 4, LE_SIM_ID_MAX = 5
}
 
enum  le_sim_Manufacturer_t {
  LE_SIM_OBERTHUR = 0, LE_SIM_GEMALTO = 1, LE_SIM_G_AND_D = 2, LE_SIM_MORPHO = 3,
  LE_SIM_VALID = 4, LE_SIM_MANUFACTURER_MAX = 5
}
 
enum  le_sim_Command_t {
  LE_SIM_READ_RECORD = 0, LE_SIM_READ_BINARY = 1, LE_SIM_UPDATE_RECORD = 2, LE_SIM_UPDATE_BINARY = 3,
  LE_SIM_COMMAND_MAX = 4
}
 
enum  le_sim_StkEvent_t { LE_SIM_OPEN_CHANNEL = 0, LE_SIM_REFRESH = 1, LE_SIM_STK_EVENT_MAX = 2 }
 
enum  le_sim_StkRefreshMode_t {
  LE_SIM_REFRESH_INIT_FULL_FCN = 0, LE_SIM_REFRESH_FCN = 1, LE_SIM_REFRESH_INIT_FCN = 2, LE_SIM_REFRESH_INIT = 3,
  LE_SIM_REFRESH_RESET = 4, LE_SIM_REFRESH_APP_RESET = 5, LE_SIM_REFRESH_SESSION_RESET = 6, LE_SIM_REFRESH_STEERING_OF_ROAMING = 7,
  LE_SIM_REFRESH_STEERING_OF_ROAMING_IWLAN = 8, LE_SIM_REFRESH_EUICC_PROFILE_CHANGE = 9, LE_SIM_REFRESH_MODE_MAX = 10
}
 
enum  le_sim_StkRefreshStage_t { LE_SIM_STAGE_WAITING_FOR_OK = 0, LE_SIM_STAGE_END_WITH_SUCCESS = 1, LE_SIM_STAGE_END_WITH_FAILURE = 2, LE_SIM_STAGE_MAX = 3 }
 

Detailed Description

Type definitions for le_sim.