libm2k
enums.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 Analog Devices Inc.
3  *
4  * This file is part of libm2k
5  * (see http://www.github.com/analogdevicesinc/libm2k).
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation, either version 2.1 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ENUMS_ANALOG_HPP
23 #define ENUMS_ANALOG_HPP
24 
25 #include <vector>
26 #include <string>
27 #include <memory>
28 
34 namespace libm2k {
35 namespace analog {
36 
37 
43  struct DMM_READING {
44  std::string name;
45  std::string id;
46  double value;
47  std::string unit_name;
48  std::string unit_symbol;
49  };
50 
51 
60  ANALOG_IN_CHANNEL_1 = 0,
61  ANALOG_IN_CHANNEL_2 = 1
62  };
63 
64 
70  enum M2K_RANGE {
71  PLUS_MINUS_25V = 0,
72  PLUS_MINUS_2_5V = 1
73  };
74 }
75 }
76 
77 
78 #endif
std::string name
The name of the channel.
Definition: enums.hpp:44
The structure of a DMM.
Definition: enums.hpp:43
std::string unit_symbol
Unit symbol.
Definition: enums.hpp:48
std::string id
Channel's id.
Definition: enums.hpp:45
std::string unit_name
Unit of measurement.
Definition: enums.hpp:47
ANALOG_IN_CHANNEL
Indexes of the channels.
Definition: enums.hpp:59
double value
The measured value.
Definition: enums.hpp:46
M2K_RANGE
Range of the signal's amplitude.
Definition: enums.hpp:70