summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-12-12 11:19:54 -0800
committerAleksander Morgado <aleksander@aleksander.es>2018-12-16 08:57:54 +0100
commitbf60c79d20dd85116b49f46333ad1c8084e8def9 (patch)
tree9535b8422924dcc6f23e76c231b3d24e01ef8da0
parentf5a0919857030f64a79c43bd04de4e710a8402e1 (diff)
downloadlibqmi-bf60c79d20dd85116b49f46333ad1c8084e8def9.tar.gz
uim: implement 'Card Status' indication
-rw-r--r--data/qmi-service-uim.json165
-rw-r--r--docs/reference/libqmi-glib/libqmi-glib-docs.xml4
2 files changed, 95 insertions, 74 deletions
diff --git a/data/qmi-service-uim.json b/data/qmi-service-uim.json
index 860acbe8..89045d82 100644
--- a/data/qmi-service-uim.json
+++ b/data/qmi-service-uim.json
@@ -14,6 +14,86 @@
"type" : "Message-ID-Enum" },
// *********************************************************************************
+ { "name" : "QMI Indication UIM",
+ "type" : "Indication-ID-Enum" },
+
+ // *********************************************************************************
+ { "common-ref" : "UIM Card Status",
+ "name" : "Card Status",
+ "id" : "0x10",
+ "type" : "TLV",
+ "since" : "1.22",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Index GW Primary",
+ "format" : "guint16" },
+ { "name" : "Index 1x Primary",
+ "format" : "guint16" },
+ { "name" : "Index GW Secondary",
+ "format" : "guint16" },
+ { "name" : "Index 1x Secondary",
+ "format" : "guint16" },
+ { "name" : "Cards",
+ "format" : "array",
+ "size-prefix-format" : "guint8",
+ "array-element" : { "name" : "Element",
+ "format" : "struct",
+ "contents" : [ { "name" : "Card State",
+ "format" : "guint8",
+ "public-format" : "QmiUimCardState" },
+ { "name" : "UPIN State",
+ "format" : "guint8",
+ "public-format" : "QmiUimPinState" },
+ { "name" : "UPIN Retries",
+ "format" : "guint8" },
+ { "name" : "UPUK Retries",
+ "format" : "guint8" },
+ { "name" : "Error code",
+ "format" : "guint8",
+ "public-format" : "QmiUimCardError" },
+ { "name" : "Applications",
+ "format" : "array",
+ "size-prefix-format" : "guint8",
+ "array-element" : { "name" : "Element",
+ "format" : "struct",
+ "contents" : [ { "name" : "Type",
+ "format" : "guint8",
+ "public-format" : "QmiUimCardApplicationType" },
+ { "name" : "State",
+ "format" : "guint8",
+ "public-format" : "QmiUimCardApplicationState" },
+ { "name" : "Personalization State",
+ "format" : "guint8",
+ "public-format" : "QmiUimCardApplicationPersonalizationState" },
+ { "name" : "Personalization Feature",
+ "format" : "guint8",
+ "public-format" : "QmiUimCardApplicationPersonalizationFeature" },
+ { "name" : "Personalization Retries",
+ "format" : "guint8" },
+ { "name" : "Personalization Unblock Retries",
+ "format" : "guint8" },
+ { "name" : "Application Identifier Value",
+ "format" : "array",
+ "size-prefix-format" : "guint8",
+ "array-element" : { "format" : "guint8" } },
+ { "name" : "UPIN replaces PIN1",
+ "format" : "guint8",
+ "public-format" : "gboolean" },
+ { "name" : "PIN1 State",
+ "format" : "guint8",
+ "public-format" : "QmiUimPinState" },
+ { "name" : "PIN1 Retries",
+ "format" : "guint8" },
+ { "name" : "PUK1 Retries",
+ "format" : "guint8" },
+ { "name" : "PIN2 State",
+ "format" : "guint8",
+ "public-format" : "QmiUimPinState" },
+ { "name" : "PIN2 Retries",
+ "format" : "guint8" },
+ { "name" : "PUK2 Retries",
+ "format" : "guint8" } ] } } ] } } ] },
+
+ // *********************************************************************************
{ "common-ref" : "UIM Session",
"name" : "Session",
"fullname" : "Qmi UIM Session",
@@ -492,79 +572,7 @@
"version" : "1.0",
"since" : "1.10",
"output" : [ { "common-ref" : "Operation Result" },
- { "name" : "Card Status",
- "id" : "0x10",
- "type" : "TLV",
- "since" : "1.10",
- "format" : "sequence",
- "contents" : [ { "name" : "Index GW Primary",
- "format" : "guint16" },
- { "name" : "Index 1x Primary",
- "format" : "guint16" },
- { "name" : "Index GW Secondary",
- "format" : "guint16" },
- { "name" : "Index 1x Secondary",
- "format" : "guint16" },
- { "name" : "Cards",
- "format" : "array",
- "size-prefix-format" : "guint8",
- "array-element" : { "name" : "Element",
- "format" : "struct",
- "contents" : [ { "name" : "Card State",
- "format" : "guint8",
- "public-format" : "QmiUimCardState" },
- { "name" : "UPIN State",
- "format" : "guint8",
- "public-format" : "QmiUimPinState" },
- { "name" : "UPIN Retries",
- "format" : "guint8" },
- { "name" : "UPUK Retries",
- "format" : "guint8" },
- { "name" : "Error code",
- "format" : "guint8",
- "public-format" : "QmiUimCardError" },
- { "name" : "Applications",
- "format" : "array",
- "size-prefix-format" : "guint8",
- "array-element" : { "name" : "Element",
- "format" : "struct",
- "contents" : [ { "name" : "Type",
- "format" : "guint8",
- "public-format" : "QmiUimCardApplicationType" },
- { "name" : "State",
- "format" : "guint8",
- "public-format" : "QmiUimCardApplicationState" },
- { "name" : "Personalization State",
- "format" : "guint8",
- "public-format" : "QmiUimCardApplicationPersonalizationState" },
- { "name" : "Personalization Feature",
- "format" : "guint8",
- "public-format" : "QmiUimCardApplicationPersonalizationFeature" },
- { "name" : "Personalization Retries",
- "format" : "guint8" },
- { "name" : "Personalization Unblock Retries",
- "format" : "guint8" },
- { "name" : "Application Identifier Value",
- "format" : "array",
- "size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } },
- { "name" : "UPIN replaces PIN1",
- "format" : "guint8",
- "public-format" : "gboolean" },
- { "name" : "PIN1 State",
- "format" : "guint8",
- "public-format" : "QmiUimPinState" },
- { "name" : "PIN1 Retries",
- "format" : "guint8" },
- { "name" : "PUK1 Retries",
- "format" : "guint8" },
- { "name" : "PIN2 State",
- "format" : "guint8",
- "public-format" : "QmiUimPinState" },
- { "name" : "PIN2 Retries",
- "format" : "guint8" },
- { "name" : "PUK2 Retries",
- "format" : "guint8" } ] } } ] } } ] } ] },
+ { "common-ref" : "UIM Card Status" } ] },
// *********************************************************************************
{ "name" : "Power Off SIM",
@@ -593,6 +601,15 @@
"type" : "TLV",
"since" : "1.18",
"format" : "guint8" } ],
- "output" : [ { "common-ref" : "Operation Result" } ] }
+ "output" : [ { "common-ref" : "Operation Result" } ] },
+
+ // *********************************************************************************
+ { "name" : "Card Status",
+ "type" : "Indication",
+ "service" : "UIM",
+ "id" : "0x0032",
+ "version" : "1.0",
+ "since" : "1.22",
+ "output" : [ { "common-ref" : "UIM Card Status" } ] }
]
diff --git a/docs/reference/libqmi-glib/libqmi-glib-docs.xml b/docs/reference/libqmi-glib/libqmi-glib-docs.xml
index 34bbb6ff..24f33266 100644
--- a/docs/reference/libqmi-glib/libqmi-glib-docs.xml
+++ b/docs/reference/libqmi-glib/libqmi-glib-docs.xml
@@ -309,6 +309,10 @@
<xi:include href="xml/qmi-client-uim.xml"/>
<xi:include href="xml/qmi-enums-uim.xml"/>
<section>
+ <title>UIM Indications</title>
+ <xi:include href="xml/qmi-indication-uim-card-status.xml"/>
+ </section>
+ <section>
<title>UIM Requests</title>
<xi:include href="xml/qmi-message-uim-reset.xml"/>
<xi:include href="xml/qmi-message-uim-set-pin-protection.xml"/>