OSDN Git Service

android/hal-ipc-api: Add extra command to Health HAL api document
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Mon, 31 Mar 2014 13:13:33 +0000 (16:13 +0300)
committerSzymon Janc <szymon.janc@tieto.com>
Mon, 31 Mar 2014 13:47:54 +0000 (15:47 +0200)
Defined extra command for MDEP data which is required for Register
Application command. Also updated Opcode for rest of the commands.

android/hal-ipc-api.txt

index 5613e85..3cf8c16 100644 (file)
@@ -1125,28 +1125,37 @@ Commands and responses:
 
        Opcode 0x01 - Register Application command/response
 
-               Command parameters: Application name (string)
-                                   Provider name (string)
-                                   Service name (string)
-                                   Service description (string)
-                                   Number of MDEP (1 octet)
-                                   MDEP Role # (1 octet)
-                                   Data type # (1 octet)
-                                   Channel type # (1 octet)
-                                   MDEP description # (string)
-                                   ...
+               Command parameters: Number of MDEP (1 octet)
+                                   Application name offset (2 octets)
+                                   Provider name offset (2 octets)
+                                   Service name offset (2 octets)
+                                   Service description offset (2 octets)
+                                   Data length (2 octets)
+                                   Data (data length)
                Response parameters: Application ID (2 octets)
 
+               Strings are null terminated.
+               In case of an error, the error response will be returned.
+
+       Opcode 0x02 - Register Application MDEP data command/response
+
+               Command parameters: MDEP Role (1 octet)
+                                   Data type (1 octet)
+                                   Channel type (1 octet)
+                                   MDEP description length (2 octets)
+                                   MDEP description (MDEP desciption length)
+               Response parameters: <none>
+
                In case of an error, the error response will be returned.
 
-       Opcode 0x02 - Unregister Application command/response
+       Opcode 0x03 - Unregister Application command/response
 
                Command parameters: Application ID (2 octets)
                Response parameters: <none>
 
                In case of an error, the error response will be returned.
 
-       Opcode 0x03 - Connect Channel command/response
+       Opcode 0x04 - Connect Channel command/response
 
                Command parameters: Application ID (2 octets)
                                    Remote address (6 octets)
@@ -1155,7 +1164,7 @@ Commands and responses:
 
                In case of an error, the error response will be returned.
 
-       Opcode 0x04 - Destroy Channel command/response
+       Opcode 0x05 - Destroy Channel command/response
 
                Command parameters: Channel ID (2 octets)
                Response parameters: <none>