blob: e9889df346637c747196f72c78099d2630b8b116 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*=============================================================================
2# FileName: lynq_sim.cpp
3# Desc: about SIMAPI
4# Author: mobiletek
5# Version: V1.0
6# LastChange: 2020-07-29
7# History:
8# If you need to use any API under lynq_sim, you must first call the init_sim() function to initialize these functions.
9=============================================================================*/
10#ifndef __LYNQ_SIM__
11#define __LYNQ_SIM__
12#include <sys/types.h>
13#include "lib_tele.h"
14#define MAX_IMSI 20
15#ifdef __cplusplus
16extern "C" {
17#endif
18typedef struct
19{
20 lynqBase base;
21 RIL_CardState card_status;
22 RIL_AppType card_type;
23 RIL_PinState pin_state;
24}simStatus;
25typedef struct
26{
27 lynqBase base;
28 char imsi[MAX_IMSI];
29 //char *imsi;
30}simImsi;
31int init_sim();
32int lynq_set_default_sim_all(int sim_id);
33int lynq_get_sim_status(simStatus *msg);
34int lynq_get_sim_status_ext(int sim_id );
35int lynq_get_imsi(simImsi * msg);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif
42