mirror of
https://github.com/sigmasternchen/dosimeter-arduino
synced 2025-03-15 17:48:53 +00:00
24 lines
371 B
C
24 lines
371 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);
|
||
|
|
||
|
bool isValid();
|
||
|
|
||
|
float getEquivalentDoseRate();
|
||
|
int getCPM();
|
||
|
private:
|
||
|
};
|
||
|
|
||
|
extern DosimeterType Dosimeter;
|
||
|
|
||
|
#endif
|