mirror of
https://github.com/sigmasternchen/dosimeter-arduino
synced 2025-03-15 09:38:55 +00:00
27 lines
456 B
C++
27 lines
456 B
C++
#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);
|
|
void startRecording();
|
|
void stopRecording();
|
|
|
|
bool isValid();
|
|
|
|
float getEquivalentDoseRate();
|
|
float getEquivalentDose();
|
|
|
|
int getCPM();
|
|
private:
|
|
};
|
|
|
|
extern DosimeterType Dosimeter;
|
|
|
|
#endif
|