📄 ril.h
字号:
//
// @constants Notification Radio State Change | Radio State Change notifications (RIL_NCLASS_RADIOSTATE)
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_NOTIFY_RADIOEQUIPMENTSTATECHANGED (0x00000001 | RIL_NCLASS_RADIOSTATE) // @constdefine Carries a STRUCT (RILEQUIPMENTSTATE) stating The Radio equiptmentstate has changed, also notifies a driver defined Radio ON or OFF state
#define RIL_NOTIFY_RADIOPRESENCECHANGED (0x00000002 | RIL_NCLASS_RADIOSTATE) // @constdefine Carries a dword (RIL_RADIOPRESENCE_*) stating that a Radio Module/Driver has been changed (removed, inserted, etc)
#define RIL_NOTIFY_RADIORESET (0x00000003 | RIL_NCLASS_RADIOSTATE) // @constdefine The driver has detected that the radio reset itself. lpData points to NULL
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @constants Notification Misc | Miscellaneous notifications (RIL_NCLASS_MISC)
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_NOTIFY_SIMNOTACCESSIBLE (0x00000001 | RIL_NCLASS_MISC) // @constdefine SIM card has been removed or has failed to respond; lpData is NULL
#define RIL_NOTIFY_DTMFSIGNAL (0x00000002 | RIL_NCLASS_MISC) // @constdefine A DTMF signal has been detected; lpData points to char
#define RIL_NOTIFY_GPRSCLASS_NETWORKCHANGED (0x00000003 | RIL_NCLASS_MISC) // @constdefine Network has indicated a change in GPRS class
// lpData points to a DWORD containing the new RIL_GPRSCLASS_* value
#define RIL_NOTIFY_GPRSCLASS_RADIOCHANGED (0x00000004 | RIL_NCLASS_MISC) // @constdefine The radio has indicated a change in GPRS class
// lpData points to a DWORD containing the new RIL_GPRSCLASS_* value
#define RIL_NOTIFY_SIGNALQUALITY (0x00000005 | RIL_NCLASS_MISC) // @constdefine Signal Quality Notification
// lpData points to a RILSIGNALQUALITY structure
#define RIL_NOTIFY_MAINTREQUIRED (0x00000006 | RIL_NCLASS_MISC) // @constdefine BS notification that MS requires servicing; lpdata is NULL
#define RIL_NOTIFY_PRIVACYCHANGED (0x00000007 | RIL_NCLASS_MISC) // @constdefine Call Privacy Status; lpData points to DWORD of value RIL_CALLPRIVACY_*
#define RIL_NOTIFY_SIM_DATACHANGE (0x00000008 | RIL_NCLASS_MISC) // @constdefine data change notification; lpData points to DWORD of value RIL_SIMDATACHANGE_*
#define RIL_NOTIFY_ATLOGGING (0x00000009 | RIL_NCLASS_MISC) // @constdefine at command log data present
#define RIL_NOTIFY_SIMSTATUSCHANGED (0x0000000A | RIL_NCLASS_MISC) // @constdefine SIM card state has changed. Carries a DWORD (RIL_SIMSTATUSCHANGED_*) with the current state.
// Notification is sent only when encountering error conditions from the radio.
#define RIL_NOTIFY_EONS (0x0000000B | RIL_NCLASS_MISC) // @constdefine EONS information ready or updated; lpData is NULL
#define RIL_NOTIFY_SIMSECURITYSTATUS (0x0000000C | RIL_NCLASS_MISC) // @constdefine SIM security status change; lpData points to LPRILSIMSECURITYSTATUS
#define RIL_NOTIFY_LINESTATE (0x0000000D | RIL_NCLASS_MISC) // @constdefine line state; lpData points to a DWORD of value RIL_LINESTAT_*
#define RIL_NOTIFY_BEARERSVCINFO (0x0000000E | RIL_NCLASS_MISC) // @constdefine bearer service information; lpData points to LPRILBEARERSVCINFO
#define RIL_NOTIFY_DATACOMPINFO (0x0000000F | RIL_NCLASS_MISC) // @constdefine data compression information; lpData points to LPRILDATACOMPINFO
#define RIL_NOTIFY_EQUIPMENTINFO (0x00000010 | RIL_NCLASS_MISC) // @constdefine equipment information; lpData points to LPRILEQUIPMENTINFO
#define RIL_NOTIFY_ERRORCORRECTIONINFO (0x00000011 | RIL_NCLASS_MISC) // @constdefine error correction information; lpData points to LPRILERRORCORRECTIONINFO
#define RIL_NOTIFY_GPRSADDRESS (0x00000012 | RIL_NCLASS_MISC) // @constdefine GPRS address; lpData points to an array of WCHAR values that indicate the address
#define RIL_NOTIFY_GPRSATTACHED (0x00000013 | RIL_NCLASS_MISC) // @constdefine GPRS attach state; lpData points to a BOOL that indicates attach state
#define RIL_NOTIFY_GPRSCONTEXT (0x00000014 | RIL_NCLASS_MISC) // @constdefine GPRS context list; lpData points to LPRILGPRSCONTEXT
#define RIL_NOTIFY_GPRSCONTEXTACTIVATED (0x00000015 | RIL_NCLASS_MISC) // @constdefine GPRS context activated list; lpData points to LPRILGPRSCONTEXTACTIVATED
#define RIL_NOTIFY_QOSMIN (0x00000016 | RIL_NCLASS_MISC) // @constdefine minimum quality of service profile ; lpData points to LPRILGPRSQOSPROFILE
#define RIL_NOTIFY_QOSREQ (0x00000017 | RIL_NCLASS_MISC) // @constdefine requested quality of service profile ; lpData points to LPRILGPRSQOSPROFILE
#define RIL_NOTIFY_RLPOPTIONS (0x00000018 | RIL_NCLASS_MISC) // @constdefine requested quality of service profile ; lpData points to LPRILRLPINFO
#define RIL_NOTIFY_NITZ (0x00000019 | RIL_NCLASS_MISC) // @constdefine NITZ Date/Time notification. lpData points to a RILNITZINFO structure.
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @constants Notification Device Specific | Device Specific notifications (RIL_NCLASS_DEVSPECIFIC)
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_NOTIFY_LOCATION (0x00008000 | RIL_NCLASS_DEVSPECIFIC) // @constdefine Location Services; lpData points to DWORD of value RIL_LOCATION_*
#define RIL_NOTIFY_ROAMSTATUS (0x00008001 | RIL_NCLASS_DEVSPECIFIC) // @constdefine Roaming Status; lpData points to DWORD of value RIL_ROAMSTATUS_*
// lpData ponts to DWORD of [ RIL_NDIS_XON |RIL_NDIS_XOFF ]
//
// Macro to extract notification class from notification code
//
#define NCLASS_FROM_NOTIFICATION(code) ((code) & 0xffff0000)
//
// Structure parameter flags
//
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @params RILNDISIPCONFIG
//
// @comm None
//
// -----------------------------------------------------------------------------
//
#define RIL_PARAM_NDISIPCONFIG_PROTOCOL_IPV4 (0x00000001) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_PROTOCOL_IPV6 (0x00000002) // @paramdefine
//
// ipv4 defines
#define RIL_PARAM_NDISIPCONFIG_IPADDR (0x00000001) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_PRIMARYDNS (0x00000002) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_SECONDARYDNS (0x00000004) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_DEFAULTGATEWAY (0x00000008) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_SUBNETMASK (0x00000010) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_ALL (0x0000001f) // @paramdefine
//
// ipv6 defines
#define RIL_PARAM_NDISIPCONFIG_IPV6_IPADDR (0x00000001) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_PRIMARYDNS (0x00000002) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_SECONDARYDNS (0x00000004) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_DEFAULTGATEWAY (0x00000008) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_SUBNETMASK (0x00000010) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_FLOWINFO (0x00000020) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_SCOPEID (0x00000040) // @paramdefine
#define RIL_PARAM_NDISIPCONFIG_IPV6_ALL (0x0000007f) // @paramdefine
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @params RILNDISGPRSCONTEXT
//
// @comm None
//
// -----------------------------------------------------------------------------
//
#define RIL_PARAM_RILNDISGPRSCONTEXT_USERNAME (0x00000001) // @paramdefine
#define RIL_PARAM_RILNDISGPRSCONTEXT_PASSWORD (0x00000002) // @paramdefine
#define RIL_PARAM_RILNDISGPRSCONTEXT_DNS1 (0x00000004) // @paramdefine
#define RIL_PARAM_RILNDISGPRSCONTEXT_DNS2 (0x00000008) // @paramdefine
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @params RILNDISGPRSCONTEXTRESPONSE
//
// @comm None
//
// -----------------------------------------------------------------------------
//
#define RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_IPCONFIG (0x00000001) // @paramdefine
#define RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_FUNCTIONS (0x00000002) // @paramdefine
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @params RILNDISSTATUS
//
// @comm None
//
// -----------------------------------------------------------------------------
//
#define RIL_PARAM_RILNDISSTATUS_IPCONFIG (0x00000001) // @paramdefine
#define RIL_PARAM_RILNDISSTATUS_FLOWCONTROL (0x00000002) // @paramdefine
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @params RILADDRESS
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_PARAM_A_TYPE (0x00000001) // @paramdefine
#define RIL_PARAM_A_NUMPLAN (0x00000002) // @paramdefine
#define RIL_PARAM_A_ADDRESS (0x00000004) // @paramdefine
#define RIL_PARAM_A_ALL (0x00000007) // @paramdefine
// -----------------------------------------------------------------------------
//
// @doc EXTERNAL
//
// @params RILSUBADDRESS
//
// @comm None
//
// -----------------------------------------------------------------------------
#define RIL_PARAM_SA_TYPE (0x00000001) // @paramdefine
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -