SiPM basded cosmic ray detector data acquisition system.

Dependencies:   DNSResolver EthernetNetIf FatFileSystem SDFileSystem mbed

Revision:
0:a8cee0e1d6d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SiPM.h	Mon Jan 21 13:51:58 2013 +0000
@@ -0,0 +1,26 @@
+#ifndef MBED_SIPM_H
+#define MBED_SIPM_H
+
+#include "mbed.h"
+
+class SiPM{
+    public:
+        SiPM(PinName, PinName);
+        void addother(SiPM *);
+        void setinterval_us(int);
+        void setdeadtime_us(int);
+        void trigger();
+        void start();
+        void stop();
+        void reset();
+        int n, ncoincidence, ntrig;
+        Timer time;
+    private:
+        bool checkcoincidence, running;
+        int interval, deadtime;
+        SiPM * other;
+        InterruptIn iin;
+        DigitalOut ledpin;
+};
+
+#endif
\ No newline at end of file