-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathControlUVC.h
61 lines (51 loc) · 1.19 KB
/
ControlUVC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef ControlUVC_h
#define ControlUVC_h
#include "Arduino.h"
#include <FS.h>
/**
* 920 Volumen de Aire por Hora según especificación del Ventilador.
* 0.2555555556 es la conversión de 920 vol/hora a vol/segundos
*/
#ifndef VOLUMEN_AIRE_SEGUNDO
#define VOLUMEN_AIRE_SEGUNDO 0.2555555556
#endif
/**
* La vida útil del tubo UVC es de 10000 Hrs. según el fabricante
* 36000000 es la conversión de 10000 Hrs. a segundos
*/
#ifndef VIDA_UTIL_TUBO_UVC
#define VIDA_UTIL_TUBO_UVC 36000000
#endif
/**
*
*/
class ControlUVC {
public:
/**
* Constructor de la clase
*/
ControlUVC();
/**
* Métodos
*/
void init();
void setVolumen(float volumen);
float getVolumen();
bool loadVolumen();
bool updateVolumen();
double getCiclos(uint32_t segundos);
double getCiclos();
void setTuboUVC(uint32_t segundos);
uint32_t getTuboUVC();
bool loadTuboUVC();
bool updateTuboUVC(uint32_t segundos);
bool isValidTuboUVC();
private:
/**
* Variables
*/
float __volumen;
float __ciclos;
uint32_t __tubo_UVC;
};
#endif /* #ifndef ControlUVC_h */