dosimeter-arduino/dosimeter.h

24 lines
371 B
C
Raw Normal View History

2021-12-04 21:22:46 +00:00
#ifndef _DOSIMETER_H_
#define _DOSIMETER_H_
#define M4011 (1)
#define J305 (2)
#define BUCKETS_PER_MINUTE (60)
#define BUCKET_WIDTH_IN_MS ((60l * 1000) / BUCKETS_PER_MINUTE)
class DosimeterType {
public:
void begin(int pin, int type);
bool isValid();
float getEquivalentDoseRate();
int getCPM();
private:
};
extern DosimeterType Dosimeter;
#endif