From 3008d4750370013e6e9750ddb00039df362dbb5a Mon Sep 17 00:00:00 2001 From: eutarass Date: Mon, 7 Apr 2008 19:56:45 +0000 Subject: Bug 223520: [tcf] Registers service changes: data formatting is removed from the service. --- docs/TCF Service - Registers.html | 46 ++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'docs') diff --git a/docs/TCF Service - Registers.html b/docs/TCF Service - Registers.html index ef346af69..1638c2306 100644 --- a/docs/TCF Service - Registers.html +++ b/docs/TCF Service - Registers.html @@ -78,8 +78,11 @@ Service sends contextChanged event to notify changes in context data.
"Description" : <string>
- context description.
- "Formats" : <array of string>
- - value formats available for register get/set commands.
+ "Size" : <boolean>
+ - context size in bytes. Byte arrays in get/set commandss should be same size.
+ Hardware register can be smaller then this size, for example in case
+ when register size is not an even number of bytes. In such case implementation
+ should add/remove padding that consists of necessary number of zero bits.
"Readable" : <boolean>
- true if context value can be read.
@@ -151,12 +154,11 @@ R
-C • <token> • Registers • set • <string: context ID> • <string: value format> • <string: value> • +C • <token> • Registers • set • <string: context ID> • <string: value> •
Writes value into given register context. Context ID must be one returned by getContexts. -Value format must be one that is supported by the register context. -Client can get list of supported formats from context attributes.
+Value is BASE64 encoded byte array of binary data. Array size should match the size of the register.Result message:
@@ -170,12 +172,11 @@ of error.-C • <token> • Registers • get • <string: context ID> • <string: value format> • +C • <token> • Registers • get • <string: context ID> •
Reads register value from given register context. Context ID must be one returned by getContexts. -Value format must be one that is supported by the register context. -Client can get list of supported formats from context attributes.
+Result message:
@@ -184,7 +185,7 @@ RError report provides integer error code and a short, human readable explanation -of error. Value is formatted according to requested format.
+of error. Value is BASE64 encoded byte array of binary data. Array size should match the size of the register.