summaryrefslogtreecommitdiff
path: root/data/mbim-service-basic-connect.json
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-11 20:07:12 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-21 19:28:14 +0200
commitf9e3f791c9e53e604cdd2e2fe35e735a0cc34259 (patch)
treebdf6c7a30ccf511ba6b02ad76894a12cdd0b6548 /data/mbim-service-basic-connect.json
parent0d2dbd0585075d1b339fbe411e4f188c03f8d5dd (diff)
mbim-codegen: properly define the 4 types of messages that we may have
MBIM defines 4 types of messages: * Query (host->function) * Set (host->function) * Response (function->host) * Indication (function->host) In particular, the Response message is used as reply for both Query and Set.
Diffstat (limited to 'data/mbim-service-basic-connect.json')
-rw-r--r--data/mbim-service-basic-connect.json217
1 files changed, 111 insertions, 106 deletions
diff --git a/data/mbim-service-basic-connect.json b/data/mbim-service-basic-connect.json
index 669f9c1..b969eba 100644
--- a/data/mbim-service-basic-connect.json
+++ b/data/mbim-service-basic-connect.json
@@ -1,106 +1,111 @@
[
// *********************************************************************************
- { "name" : "Device Caps",
- "service" : "Basic Connect",
- "type" : "Command",
- "query" : { "output" : [ { "name" : "DeviceType",
- "format" : "guint32",
- "public-format" : "MbimDeviceType" },
- { "name" : "CellularClass",
- "format" : "guint32",
- "public-format" : "MbimCellularClass" },
- { "name" : "VoiceClass",
- "format" : "guint32",
- "public-format" : "MbimVoiceClass" },
- { "name" : "SimClass",
- "format" : "guint32",
- "public-format" : "MbimSimClass" },
- { "name" : "DataClass",
- "format" : "guint32",
- "public-format" : "MbimDataClass" },
- { "name" : "SmsCaps",
- "format" : "guint32",
- "public-format" : "MbimSmsCaps" },
- { "name" : "ControlCaps",
- "format" : "guint32",
- "public-format" : "MbimCtrlCaps" },
- { "name" : "MaxSessions",
- "format" : "guint32" },
- { "name" : "CustomDataClass",
- "format" : "string",
- "max-size" : "22" },
- { "name" : "DeviceId",
- "format" : "string",
- "max-size" : "36" },
- { "name" : "FirmwareInfo",
- "format" : "string",
- "max-size" : "60" },
- { "name" : "HardwareInfo",
- "format" : "string",
- "max-size" : "60" } ] } },
+ { "name" : "Device Caps",
+ "service" : "Basic Connect",
+ "type" : "Command",
+ "query" : [],
+ "response" : [ { "name" : "DeviceType",
+ "format" : "guint32",
+ "public-format" : "MbimDeviceType" },
+ { "name" : "CellularClass",
+ "format" : "guint32",
+ "public-format" : "MbimCellularClass" },
+ { "name" : "VoiceClass",
+ "format" : "guint32",
+ "public-format" : "MbimVoiceClass" },
+ { "name" : "SimClass",
+ "format" : "guint32",
+ "public-format" : "MbimSimClass" },
+ { "name" : "DataClass",
+ "format" : "guint32",
+ "public-format" : "MbimDataClass" },
+ { "name" : "SmsCaps",
+ "format" : "guint32",
+ "public-format" : "MbimSmsCaps" },
+ { "name" : "ControlCaps",
+ "format" : "guint32",
+ "public-format" : "MbimCtrlCaps" },
+ { "name" : "MaxSessions",
+ "format" : "guint32" },
+ { "name" : "CustomDataClass",
+ "format" : "string",
+ "max-size" : "22" },
+ { "name" : "DeviceId",
+ "format" : "string",
+ "max-size" : "36" },
+ { "name" : "FirmwareInfo",
+ "format" : "string",
+ "max-size" : "60" },
+ { "name" : "HardwareInfo",
+ "format" : "string",
+ "max-size" : "60" } ] },
// *********************************************************************************
- { "name" : "Subscriber Ready Status",
- "service" : "Basic Connect",
- "type" : "Command",
- "query" : { "output" : [ { "name" : "ReadyState",
- "format" : "guint32",
- "public-format" : "MbimSubscriberReadyState" },
- { "name" : "SubscriberID",
- "format" : "string" },
- { "name" : "SimIccId",
- "format" : "string" },
- { "name" : "ReadyInfo",
- "format" : "guint32",
- "public-format" : "MbimReadyInfoFlag" },
- { "name" : "TelephoneNumbersCount",
- "format" : "guint32" },
- { "name" : "TelephoneNumbers",
- "format" : "string-array",
- "array-size-field" : "TelephoneNumbersCount" } ] } },
+ { "name" : "Subscriber Ready Status",
+ "service" : "Basic Connect",
+ "type" : "Command",
+ "query" : [],
+ "response" : [ { "name" : "ReadyState",
+ "format" : "guint32",
+ "public-format" : "MbimSubscriberReadyState" },
+ { "name" : "SubscriberID",
+ "format" : "string" },
+ { "name" : "SimIccId",
+ "format" : "string" },
+ { "name" : "ReadyInfo",
+ "format" : "guint32",
+ "public-format" : "MbimReadyInfoFlag" },
+ { "name" : "TelephoneNumbersCount",
+ "format" : "guint32" },
+ { "name" : "TelephoneNumbers",
+ "format" : "string-array",
+ "array-size-field" : "TelephoneNumbersCount" } ] },
// *********************************************************************************
- { "name" : "Radio State",
- "service" : "Basic Connect",
- "type" : "Command",
- "query" : { "output" : [ { "name" : "HwRadioState",
- "format" : "guint32",
- "public-format" : "MbimRadioSwitchState" },
- { "name" : "SwRadioState",
- "format" : "guint32",
- "public-format" : "MbimRadioSwitchState" } ] } },
+ { "name" : "Radio State",
+ "service" : "Basic Connect",
+ "type" : "Command",
+ "set" : [ { "name" : "RadioState",
+ "format" : "guint32",
+ "public-format" : "MbimRadioSwitchState" } ],
+ "query" : [],
+ "response" : [ { "name" : "HwRadioState",
+ "format" : "guint32",
+ "public-format" : "MbimRadioSwitchState" },
+ { "name" : "SwRadioState",
+ "format" : "guint32",
+ "public-format" : "MbimRadioSwitchState" } ],
+ "notification" : [ { "name" : "HwRadioState",
+ "format" : "guint32",
+ "public-format" : "MbimRadioSwitchState" },
+ { "name" : "SwRadioState",
+ "format" : "guint32",
+ "public-format" : "MbimRadioSwitchState" } ] },
// *********************************************************************************
- { "name" : "Pin",
- "service" : "Basic Connect",
- "type" : "Command",
- "set" : { "input" : [ { "name" : "PinType",
- "format" : "guint32",
- "public-format" : "MbimPinType" },
- { "name" : "PinOperation",
- "format" : "guint32",
- "public-format" : "MbimPinOperation" },
- { "name" : "Pin",
- "format" : "string" },
- { "name" : "NewPin",
- "format" : "string" } ],
- "output" : [ { "name" : "PinType",
- "format" : "guint32",
- "public-format" : "MbimPinType" },
- { "name" : "PinState",
- "format" : "guint32",
- "public-format" : "MbimPinState" },
- { "name" : "RemainingAttempts",
- "format" : "guint32" } ] },
- "query" : { "output" : [ { "name" : "PinType",
- "format" : "guint32",
- "public-format" : "MbimPinType" },
- { "name" : "PinState",
- "format" : "guint32",
- "public-format" : "MbimPinState" },
- { "name" : "RemainingAttempts",
- "format" : "guint32" } ] } },
+ { "name" : "Pin",
+ "service" : "Basic Connect",
+ "type" : "Command",
+ "set" : [ { "name" : "PinType",
+ "format" : "guint32",
+ "public-format" : "MbimPinType" },
+ { "name" : "PinOperation",
+ "format" : "guint32",
+ "public-format" : "MbimPinOperation" },
+ { "name" : "Pin",
+ "format" : "string" },
+ { "name" : "NewPin",
+ "format" : "string" } ],
+ "query" : [],
+ "response" : [ { "name" : "PinType",
+ "format" : "guint32",
+ "public-format" : "MbimPinType" },
+ { "name" : "PinState",
+ "format" : "guint32",
+ "public-format" : "MbimPinState" },
+ { "name" : "RemainingAttempts",
+ "format" : "guint32" } ] },
// *********************************************************************************
{ "name" : "MbimDeviceServiceElement",
@@ -117,16 +122,16 @@
"format" : "guint32-array",
"array-size-field" : "CidsCount" } ] },
- // *********************************************************************************
- { "name" : "Device Services",
- "service" : "Basic Connect",
- "type" : "Command",
- "query" : { "output" : [ { "name" : "DeviceServicesCount",
- "format" : "guint32" },
- { "name" : "MaxDssSessions",
- "format" : "guint32" },
- { "name" : "DeviceServices",
- "format" : "struct-array",
- "struct-type" : "MbimDeviceServiceElement",
- "array-size-field" : "DeviceServicesCount" } ] } }
+ { "name" : "Device Services",
+ "service" : "Basic Connect",
+ "type" : "Command",
+ "query" : [],
+ "response" : [ { "name" : "DeviceServicesCount",
+ "format" : "guint32" },
+ { "name" : "MaxDssSessions",
+ "format" : "guint32" },
+ { "name" : "DeviceServices",
+ "format" : "struct-array",
+ "struct-type" : "MbimDeviceServiceElement",
+ "array-size-field" : "DeviceServicesCount" } ] }
]