• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_AT_SIM_H
17 
18 #include <ctype.h>
19 #include <stddef.h>
20 #include <stdlib.h>
21 
22 #include "securec.h"
23 
24 #include "hril_vendor_sim_defs.h"
25 
26 #define OHOS_AT_SIM_H
27 
28 void ReqGetSimStatus(const ReqDataInfo *requestInfo);
29 void ReqGetSimIO(const ReqDataInfo *requestInfo, const HRilSimIO *data, size_t dataLen);
30 void ReqGetSimImsi(const ReqDataInfo *requestInfo);
31 void ReqGetSimLockStatus(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen);
32 void ReqSetSimLock(const ReqDataInfo *requestInfo, const HRilSimClock *data, size_t dataLen);
33 void ReqChangeSimPassword(const ReqDataInfo *requestInfo, const HRilSimPassword *data, size_t dataLen);
34 void ReqUnlockPin(const ReqDataInfo *requestInfo, const char *pin);
35 void ReqUnlockPuk(const ReqDataInfo *requestInfo, const char *puk, const char *pin);
36 void ReqGetSimPinInputTimes(const ReqDataInfo *requestInfo);
37 void ReqUnlockPin2(const ReqDataInfo *requestInfo, const char *pin2);
38 void ReqUnlockPuk2(const ReqDataInfo *requestInfo, const char *puk2, const char *pin2);
39 void ReqGetSimPin2InputTimes(const ReqDataInfo *requestInfo);
40 void ReqSetActiveSim(const ReqDataInfo *requestInfo, int32_t index, int32_t enable);
41 void ReqSimStkSendTerminalResponse(const ReqDataInfo *requestInfo, const char *strCmd);
42 void ReqSimStkSendEnvelope(const ReqDataInfo *requestInfo, const char *strCmd);
43 void ReqSimStkIsReady(const ReqDataInfo *requestInfo);
44 void ReqSetRadioProtocol(const ReqDataInfo *requestInfo, const HRilSimProtocolRequest *data, size_t dataLen);
45 void ReqSimOpenLogicalChannel(const ReqDataInfo *requestInfo, const char *appID, int32_t p2);
46 void ReqSimCloseLogicalChannel(const ReqDataInfo *requestInfo, int32_t channelId);
47 void ReqSimTransmitApduLogicalChannel(const ReqDataInfo *requestInfo, HRilApduSimIO *data, size_t dataLen);
48 void ReqUnlockSimLock(const ReqDataInfo *requestInfo, int32_t lockType, const char *password);
49 #endif // OHOS_AT_SIM_H
50