diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-06-28 11:03:24 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-03 16:08:58 +0200 |
commit | 0a07f3d4ea23500c5ae28063528c7518a1356dd8 (patch) | |
tree | 4fe0e9a2733377ee87103abdbe230a1dc5c1b31e | |
parent | 07cb9e338c417ef4642ca2a8123fdd33d0539108 (diff) |
dms: implement "Set Operating Mode" request/response
-rw-r--r-- | data/qmi-service-dms.json | 15 | ||||
-rw-r--r-- | src/qmi-enums-dms.h | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/data/qmi-service-dms.json b/data/qmi-service-dms.json index c765312..f4295e7 100644 --- a/data/qmi-service-dms.json +++ b/data/qmi-service-dms.json @@ -320,5 +320,18 @@ "type" : "TLV", "format" : "guint8", "public-format" : "gboolean", - "prerequisites": [ { "common-ref" : "Success" } ] } ] } + "prerequisites": [ { "common-ref" : "Success" } ] } ] }, + + // ********************************************************************************* + { "name" : "Set Operating Mode", + "type" : "Message", + "service" : "DMS", + "id" : "0x002E", + "input" : [ { "name" : "Mode", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "guint8", + "public-format" : "QmiDmsOperatingMode" } ], + "output" : [ { "common-ref" : "Operation Result" } ] } ] diff --git a/src/qmi-enums-dms.h b/src/qmi-enums-dms.h index f87172d..7f0ae5e 100644 --- a/src/qmi-enums-dms.h +++ b/src/qmi-enums-dms.h @@ -161,6 +161,7 @@ typedef enum { * @QMI_DMS_OPERATING_MODE_OFFLINE: Device has deactivated RF and is partially shutdown. * @QMI_DMS_OPERATING_MODE_RESETTING: Device is in the process of power cycling. * @QMI_DMS_OPERATING_MODE_SHUTTING_DOWN: Device is in the process of shutting down. + * @QMI_DMS_OPERATING_MODE_MODE_ONLY_LOW_POWER: Mode-only Low Power. * * Operating mode of the device. */ @@ -171,7 +172,8 @@ typedef enum { QMI_DMS_OPERATING_MODE_OFFLINE = 3, QMI_DMS_OPERATING_MODE_RESETTING = 4, QMI_DMS_OPERATING_MODE_SHUTTING_DOWN = 5, - QMI_DMS_OPERATING_MODE_PERSISTENT_LOW_POWER = 6 + QMI_DMS_OPERATING_MODE_PERSISTENT_LOW_POWER = 6, + QMI_DMS_OPERATING_MODE_MODE_ONLY_LOW_POWER = 7 } QmiDmsOperatingMode; /** |