This lib is supposed to be used as a sensor's calibration or control program. This makes Cubic Spline Model from some sample plots(sets of (value, voltage)), and then discretize the model (dividing the range of voltage into some steps) in order to use the calibrated model data without getting the INVERSE function.

Revision:
18:b046bba4ffa7
Parent:
16:c2b0f3ca63dd
Child:
20:0453919a76b2
--- a/TRP105F_Spline.cpp	Wed Jun 08 13:14:17 2016 +0000
+++ b/TRP105F_Spline.cpp	Fri Jun 24 11:33:01 2016 +0000
@@ -45,7 +45,7 @@
 }
 
 TRP105FS::TRP105FS(
-    unsigned int arg_num
+    unsigned short arg_num
 )
     :_useType(AsMODULE)
     ,_ai(AnalogIn(DEFALT_AI_PIN))
@@ -63,7 +63,7 @@
 }
 
 TRP105FS::TRP105FS(
-    unsigned int arg_num,
+    unsigned short arg_num,
     UseType arg_type
 )
     :_useType(arg_type)
@@ -82,9 +82,10 @@
 }
 
 TRP105FS::TRP105FS(
-    unsigned int arg_num,
+    unsigned short arg_num,
     PinName pin
 )
+    :_useType(AsMODULE)
     :_ai(AnalogIn(pin))
 
 {
@@ -101,7 +102,7 @@
 }
 
 TRP105FS::TRP105FS(
-    unsigned int arg_num,
+    unsigned short arg_num,
     UseType arg_type,
     PinName pin
 )