|
@@ -38,6 +38,12 @@
|
38
|
38
|
|
39
|
39
|
#define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0"
|
40
|
40
|
|
|
41
|
+// ADC analog ref voltage is 3.3v
|
|
42
|
+#define ADC_AREF 3.3
|
|
43
|
+
|
|
44
|
+// 10-bit precision (0-1023)
|
|
45
|
+#define ADC_PRECISION 10
|
|
46
|
+
|
41
|
47
|
namespace upm {
|
42
|
48
|
/**
|
43
|
49
|
* @brief NLGPIO16 module
|
|
@@ -82,11 +88,6 @@ namespace upm {
|
82
|
88
|
class NLGPIO16 {
|
83
|
89
|
public:
|
84
|
90
|
|
85
|
|
- // ADC analog ref voltage is 3.3v
|
86
|
|
- static const float ADC_AREF = 3.3;
|
87
|
|
- // 10-bit precision (0-1023)
|
88
|
|
- static const int ADC_PRECISION = 10;
|
89
|
|
-
|
90
|
91
|
/**
|
91
|
92
|
* NLGPIO16 object constructor
|
92
|
93
|
*
|