1 /* 2 * uqmi -- tiny QMI support implementation 3 * 4 * Copyright (C) 2024 Alexander Couzens <lynxis@fe80.eu> 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301 USA. 20 */ 21 22 #ifndef __QMID_SIM_H 23 #define __QMID_SIM_H 24 25 #include <stdint.h> 26 27 enum uqmi_sim_state { 28 UQMI_SIM_UNKNOWN = 0, 29 UQMI_SIM_PIN_REQUIRED, /* Pin1 required */ 30 UQMI_SIM_PUK_REQUIRED, /* Puk1 required */ 31 UQMI_SIM_READY, /* Ready to operate, either no pin required or already enterd */ 32 UQMI_SIM_BLOCKED, /* Blocked without knowing how to unlock. */ 33 }; 34 35 enum uqmi_sim_state uim_card_application_state_to_uqmi_state(int app_state); 36 enum uqmi_sim_state uim_pin_to_uqmi_state(int upin_state); 37 38 int uqmi_sim_decode_imsi(uint8_t *imsi_ef, uint8_t imsi_ef_size, char *imsi_str, uint8_t imsi_str_len); 39 40 #endif /* __UTILS_H */ 41
This page was automatically generated by LXR 0.3.1. • OpenWrt