mirror of
https://gitee.com/openharmony/telephony_ril_adapter
synced 2024-11-30 11:20:46 +00:00
add left hdi
Signed-off-by: jyh926 <jiayanhong@huawei.com>
This commit is contained in:
parent
7de1df3300
commit
e0a4b5a889
@ -434,4 +434,17 @@ typedef enum {
|
||||
HRIL_RADIO_PROTOCOL_STATUS_FAIL
|
||||
} HRilRadioProtocolStatus;
|
||||
|
||||
typedef enum {
|
||||
TTY_MODE_OFF = 0,
|
||||
TTY_MODE_FULL,
|
||||
TTY_MODE_HCO,
|
||||
TTY_MODE_VCO
|
||||
} TTYMode;
|
||||
|
||||
typedef enum {
|
||||
CARD_POWER_DOWN = 0,
|
||||
CARD_POWER_UP,
|
||||
CARD_POWER_UP_PASS_THROUGH
|
||||
} CardPowerState;
|
||||
|
||||
#endif // OHOS_HRIL_ENUM_H
|
||||
|
@ -49,6 +49,9 @@ typedef enum {
|
||||
/** Called when RSRVCC status is updated. */
|
||||
HNOTI_CALL_RSRVCC_STATUS_REPORT,
|
||||
|
||||
/** Called when supplementary service related notification is received from the network. */
|
||||
HNOTI_CALL_SUPP_SVC_NOTIFY,
|
||||
|
||||
HNOTI_SMS_BASE = 1100,
|
||||
|
||||
/** Called when new SMS is received. */
|
||||
@ -66,6 +69,9 @@ typedef enum {
|
||||
/** Called when new cell broadcast is received. */
|
||||
HNOTI_CB_CONFIG_REPORT,
|
||||
|
||||
/** Called when sms storage on SIM card is full. */
|
||||
HNOTI_SMS_SIM_SMS_MEMORY_FULL,
|
||||
|
||||
HNOTI_SIM_BASE = 1200,
|
||||
|
||||
/** Called when sim status is changed. */
|
||||
@ -135,6 +141,9 @@ typedef enum {
|
||||
/** Called when resident network is updated.*/
|
||||
HNOTI_NETWORK_RESIDENT_NETWORK_UPDATED,
|
||||
|
||||
/** Called when network restricted state is updated. */
|
||||
HNOTI_NETWORK_RESTRICTED_STATE_UPDATED,
|
||||
|
||||
HNOTI_COMMON_BASE = 1500,
|
||||
|
||||
/** Called when radio state is updated. */
|
||||
|
@ -139,6 +139,15 @@ typedef enum {
|
||||
HREQ_EXPLICIT_CALL_TRANSFER_CONNECTION,
|
||||
HREQ_SET_VONR_SWITCH,
|
||||
|
||||
/** Enable or disable supplementary service related notification from the network. */
|
||||
HREQ_CALL_SET_SUPP_SRV_NOTIFICATION,
|
||||
|
||||
/** Set the TTY mode. */
|
||||
HREQ_CALL_GET_TTY_MODE,
|
||||
|
||||
/** Get the TTY mode. */
|
||||
HREQ_CALL_SET_TTY_MODE,
|
||||
|
||||
HREQ_SMS_BASE = 100,
|
||||
|
||||
/** Send GSM SMS. */
|
||||
@ -192,6 +201,9 @@ typedef enum {
|
||||
/** Updates CDMA SMS messages from SIM card. */
|
||||
HREQ_SMS_UPDATE_CDMA_SIM_MESSAGE,
|
||||
|
||||
/** Set whether memory is available for new SMS messages. */
|
||||
HREQ_SMS_SET_MEMORY_STATUS,
|
||||
|
||||
HREQ_SIM_BASE = 200,
|
||||
|
||||
/** Gets the SIM card status. */
|
||||
@ -289,6 +301,9 @@ typedef enum {
|
||||
/** Send SIM matched OperatorInfo. */
|
||||
HREQ_SIM_SEND_NCFG_OPER_INFO,
|
||||
|
||||
/** Set SIM card power state. */
|
||||
HREQ_SIM_SET_SIM_POWER_STATE,
|
||||
|
||||
HREQ_DATA_BASE = 300,
|
||||
|
||||
/** Sets an apn to initial attach network. */
|
||||
|
@ -437,6 +437,26 @@ typedef struct {
|
||||
int32_t voiceDomain;
|
||||
} HRilCallCsChannelInfo;
|
||||
|
||||
/**
|
||||
* @brief Defines the supplementary service notifications information.
|
||||
*/
|
||||
typedef struct {
|
||||
/** Type of notification: 0 = code1(MO); 1 = code2(MT) */
|
||||
int32_t notificationType;
|
||||
|
||||
/** TS 27.007 7.17 "code1" or "code2" */
|
||||
int32_t code;
|
||||
|
||||
/** TS 27.007 7.17 "index" */
|
||||
int32_t index;
|
||||
|
||||
/** TS 27.007 7.17 "type" (MT only) */
|
||||
int32_t type;
|
||||
|
||||
/** TS 27.007 7.17 "number" (MT only) */
|
||||
char *number;
|
||||
} SuppSvcNotification;
|
||||
|
||||
typedef struct {
|
||||
/**
|
||||
* @brief Gets the call status list.
|
||||
@ -823,6 +843,39 @@ typedef struct {
|
||||
void (*CloseUnFinishedUssd)(const ReqDataInfo *requestInfo);
|
||||
void (*ExplicitCallTransferConnection)(const ReqDataInfo *requestInfo);
|
||||
void (*SetVonrSwitch)(const ReqDataInfo *requestInfo, int32_t status);
|
||||
|
||||
/**
|
||||
* @brief Enable or disable supplementary service related notification from the network.
|
||||
*
|
||||
* @param requestInfo Request data info, for details, see {@link
|
||||
* ReqDataInfo}.
|
||||
* @param enable Whether to enable notification, 0 indicates disable, 1 indicates enable.
|
||||
* @see ReqDataInfo
|
||||
*/
|
||||
void (*SetSuppSrvNotification)(const ReqDataInfo *requestInfo, int32_t enable);
|
||||
|
||||
/**
|
||||
* @brief Get the TTY mode.
|
||||
*
|
||||
* @param requestInfo Request data info, for details, see {@link
|
||||
* ReqDataInfo}.
|
||||
* @see ReqDataInfo
|
||||
*/
|
||||
void (*GetTTYMode)(const ReqDataInfo *requestInfo);
|
||||
|
||||
/**
|
||||
* @brief Set the TTY mode.
|
||||
*
|
||||
* @param requestInfo Request data info, for details, see {@link
|
||||
* ReqDataInfo}.
|
||||
* @param mode The TTY mode to set, value as following:
|
||||
* - 0 indicates TTYMode#TTY_MODE_OFF
|
||||
* - 1 indicates TTYMode#TTY_MODE_FULL
|
||||
* - 2 indicates TTYMode#TTY_MODE_HCO
|
||||
* - 3 indicates TTYMode#TTY_MODE_VCO
|
||||
* @see ReqDataInfo
|
||||
*/
|
||||
void (*SetTTYMode)(const ReqDataInfo *requestInfo, int32_t mode);
|
||||
} HRilCallReq;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -382,6 +382,18 @@ typedef struct {
|
||||
void (*SimAuthentication)(const ReqDataInfo *requestInfo, HRilSimAuthenticationRequestInfo *data, size_t dataLen);
|
||||
void (*UnlockSimLock)(const ReqDataInfo *requestInfo, int32_t lockType, const char *password);
|
||||
void (*SendSimMatchedOperatorInfo)(const ReqDataInfo *requestInfo, HRilNcfgOperatorInfo *data, size_t dataLen);
|
||||
/**
|
||||
* @brief Set SIM card power state.
|
||||
*
|
||||
* @param requestInfo Request data info, for details, see {@link
|
||||
* ReqDataInfo}.
|
||||
* @param state The power state of SIM card to set, value as following:
|
||||
* - 0 indicates CardPowerState#CARD_POWER_DOWN
|
||||
* - 1 indicates CardPowerState#CARD_POWER_UP
|
||||
* - 2 indicates CardPowerState#CARD_POWER_UP_PASS_THROUGH
|
||||
* @see ReqDataInfo
|
||||
*/
|
||||
void (*SetSimPowerState)(const ReqDataInfo *requestInfo, int32_t state);
|
||||
} HRilSimReq;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -221,6 +221,16 @@ typedef struct {
|
||||
void (*AddCdmaSimMessageV2)(const ReqDataInfo *requestInfo, const HRilSmsWriteCdmaSms *data, size_t dataLen);
|
||||
void (*DelCdmaSimMessage)(const ReqDataInfo *requestInfo, const int32_t *data, size_t dataLen);
|
||||
void (*UpdateCdmaSimMessage)(const ReqDataInfo *requestInfo, const HRilSmsWriteSms *data, size_t dataLen);
|
||||
/**
|
||||
* @brief Set whether memory is available for new SMS messages.
|
||||
*
|
||||
* @param requestInfo Request data info, for details, see {@link
|
||||
* ReqDataInfo}.
|
||||
* @param available Whether memory is available, 0 indicates memory is not available,
|
||||
* 1 indicates available otherwise.
|
||||
* @see ReqDataInfo
|
||||
*/
|
||||
void (*SetSmsMemoryStatus)(const ReqDataInfo *requestInfo, int32_t available);
|
||||
} HRilSmsReq;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user