for child

Fork of TRP105F_Spline by Akifumi Takahashi

Revision:
7:f2e139f8bd68
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TRP105FS_SPIWrapper.h	Mon Jun 06 13:23:49 2016 +0000
@@ -0,0 +1,34 @@
+#ifndef TRP105F_SPLINE_SPI_WRAPPER
+#define TRP105F_SPLINE_SPI_WRAPPER
+
+#include "mbed.h"
+
+class SPI_TRP105FS
+{
+private:
+    unsigned int channel;   //SPI cs number
+    unsigned int nsample;   //number of sumples
+    TRP105FS trp;
+    char filename[13];      //name of file chalibration results saved
+
+public:
+    SPI_TRP105FS();
+    SPI_TRP105FS(unsigned int arg_ch);
+
+    void setSample(unsigned short arg_x);
+
+    void calibrate();
+
+    unsigned short getDistance();
+
+    unsigned int getChannel();
+
+    unsigned int getNsample();
+
+    void savedata();
+
+    void loaddata();
+    
+    void printCalibrationiLOG();
+};
+#endif
\ No newline at end of file