SiPM basded cosmic ray detector data acquisition system.

Dependencies:   DNSResolver EthernetNetIf FatFileSystem SDFileSystem mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SiPM.h Source File

SiPM.h

00001 #ifndef MBED_SIPM_H
00002 #define MBED_SIPM_H
00003 
00004 #include "mbed.h"
00005 
00006 class SiPM{
00007     public:
00008         SiPM(PinName, PinName);
00009         void addother(SiPM *);
00010         void setinterval_us(int);
00011         void setdeadtime_us(int);
00012         void trigger();
00013         void start();
00014         void stop();
00015         void reset();
00016         int n, ncoincidence, ntrig;
00017         Timer time;
00018     private:
00019         bool checkcoincidence, running;
00020         int interval, deadtime;
00021         SiPM * other;
00022         InterruptIn iin;
00023         DigitalOut ledpin;
00024 };
00025 
00026 #endif