rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /*============================================================================= |
| 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 |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | typedef struct |
| 19 | { |
| 20 | lynqBase base; |
| 21 | RIL_CardState card_status; |
| 22 | RIL_AppType card_type; |
| 23 | RIL_PinState pin_state; |
| 24 | }simStatus; |
| 25 | typedef struct |
| 26 | { |
| 27 | lynqBase base; |
| 28 | char imsi[MAX_IMSI]; |
| 29 | //char *imsi; |
| 30 | }simImsi; |
| 31 | int init_sim(); |
| 32 | int lynq_set_default_sim_all(int sim_id); |
| 33 | int lynq_get_sim_status(simStatus *msg); |
| 34 | int lynq_get_sim_status_ext(int sim_id ); |
| 35 | int lynq_get_imsi(simImsi * msg); |
| 36 | |
| 37 | #ifdef __cplusplus |
| 38 | } |
| 39 | #endif |
| 40 | |
| 41 | #endif |
| 42 | |