From ee65e6d992e5fd7c81f62ced1cbed532989c09f7 Mon Sep 17 00:00:00 2001 From: Patrick Benavoli Date: Sun, 20 Nov 2011 18:52:24 +0100 Subject: PFW: Parameter adaptation (platform interface) BZ: 15069 Adaptation nodes have been added to integer parameter types in the structural description. They all convert values between a platform value and the actual parameter value. When a conversion node affects the definition of an integer type parameter, its interface type becomes "double" (instead of integer). For now only linear adaptation type is supported. Linear adaptation: ================= Linear adaptation nodes consists of the following attributes: - slope numerator (double, default = 1) - slope denominator (double, defult = 1) - offset (signed integer, default = 0) Conversions from user (platform) values to blackboard are done the follwing way: blackboard_value = user_value * slope_numerator / slope_denominator + offset Change-Id: I00abe9ba5961d8e541b616225531bbc7c8b465b0 Signed-off-by: Patrick Benavoli Reviewed-on: http://android.intel.com:8080/25407 Reviewed-by: Barthes, FabienX Tested-by: Barthes, FabienX Reviewed-by: buildbot Tested-by: buildbot --- Schemas/Parameter.xsd | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'Schemas') diff --git a/Schemas/Parameter.xsd b/Schemas/Parameter.xsd index 17d256a..10d506a 100644 --- a/Schemas/Parameter.xsd +++ b/Schemas/Parameter.xsd @@ -1,7 +1,7 @@ - + @@ -18,6 +18,19 @@ + + + + + + + + + + + + + @@ -35,6 +48,9 @@ + + + @@ -48,7 +64,7 @@ - + @@ -71,7 +87,7 @@ - + -- cgit v1.1