Interface to a standard tarco sensor. Measure the periode and the cal the speed

Revision:
12:9269bd188bfa
Parent:
11:284b87a84cdd
Child:
13:4b58c9730bc7
--- a/Tarco.h	Tue Nov 10 12:28:18 2015 +0000
+++ b/Tarco.h	Sun Feb 28 15:26:18 2016 +0000
@@ -7,7 +7,7 @@
 #define HirthMode 2
 #define SwitchAuto 1
 #define RunMeanSwitchAuto 0
-typedef void (*callback_type)(int);
+//typedef void (*callback_type)(int);
 /************************************************************************************* 
 *  Tarco sensor on the SwitchAuto
 *  Have 2 mode to measure the rotation
@@ -18,7 +18,7 @@
 class Tarco {
 private:
     InterruptIn _tarcosensor;
-    callback_type callback;
+ //   callback_type callback;
     int AdvPeriode[TarcoRunMean]; //running mean for tarco
     Timer t; //time for one rotation
 
@@ -39,7 +39,7 @@
     * 0: Standard Prescale to one measure pr rotation
     * 1: Running mean
      ********************************************************************************/
-    Tarco(PinName tarcosignal,char mode,callback_type _callback);
+    Tarco(PinName tarcosignal,char mode);
     
     /********************************************************************************
     * gives the tarco value in hz