dosimeter-arduino/dosimeter.h

28 lines
456 B
C
Raw Permalink 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);
2021-12-06 19:02:14 +00:00
void startRecording();
void stopRecording();
2021-12-04 21:22:46 +00:00
bool isValid();
float getEquivalentDoseRate();
2021-12-06 19:02:14 +00:00
float getEquivalentDose();
2021-12-04 21:22:46 +00:00
int getCPM();
private:
};
extern DosimeterType Dosimeter;
#endif