• 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_RIL_VENDOR_MODEM_DEFS_H
17 #define OHOS_RIL_VENDOR_MODEM_DEFS_H
18 
19 #include "hril_public_struct.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /**
26  * @brief Enumerates RIL system service states.
27  */
28 typedef struct {
29     /**
30      * System service status
31      */
32     HRilSrvStatus srvStatus;
33     /**
34      * System service domain
35      */
36     HRilSrvDomain srvDomain;
37     /**
38      * Roaming status
39      */
40     HRilRoamStatus roamStatus;
41     /**
42      * SIM card status
43      */
44     HRilSimStatus simStatus;
45     /**
46      * SIM card lock status
47      */
48     HRilSimLockStatus lockStatus;
49     /**
50      * System mode
51      */
52     HRilSysMode sysMode;
53     /**
54      * String corresponding to the system mode
55      */
56     char *sysModeName;
57     /**
58      * Radio access technology type. For details, see {@link RilRadioTech}.
59      */
60     HRilRadioTech actType;
61     /**
62      * String corresponding to the radio access technology type
63      */
64     char *actName;
65 } HRilVoiceRadioInfo;
66 
67 typedef struct {
68     void (*SetRadioState)(const ReqDataInfo *requestInfo, int32_t fun, int32_t rst);
69     void (*GetRadioState)(const ReqDataInfo *requestInfo);
70     void (*GetImei)(const ReqDataInfo *requestInfo);
71     void (*GetMeid)(const ReqDataInfo *requestInfo);
72     void (*GetVoiceRadioTechnology)(const ReqDataInfo *requestInfo);
73     void (*GetBasebandVersion)(const ReqDataInfo *requestInfo);
74     void (*ShutDown)(const ReqDataInfo *requestInfo);
75 } HRilModemReq;
76 #ifdef __cplusplus
77 }
78 #endif
79 #endif // OHOS_RIL_VENDOR_MODEM_DEFS_H
80