Loading...
Searching...
No Matches
analog/enums.hpp
Go to the documentation of this file.
/*
* Copyright (c) 2019 Analog Devices Inc.
*
* This file is part of libm2k
* (see http://www.github.com/analogdevicesinc/libm2k).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef ENUMS_ANALOG_HPP
#define ENUMS_ANALOG_HPP
#include <vector>
#include <string>
#include <memory>
namespace libm2k {
namespace analog {
struct DMM_READING {
std::string name;
std::string id;
double value;
std::string unit_name;
std::string unit_symbol;
};
enum ANALOG_IN_CHANNEL {
ANALOG_IN_CHANNEL_1 = 0,
ANALOG_IN_CHANNEL_2 = 1
};
enum M2K_RANGE {
PLUS_MINUS_25V = 0,
PLUS_MINUS_2_5V = 1
};
}
}
#endif
libm2k::analog::M2K_RANGE
M2K_RANGE
Range of the signal's amplitude.
Definition analog/enums.hpp:70
libm2k::analog::ANALOG_IN_CHANNEL
ANALOG_IN_CHANNEL
Indexes of the channels.
Definition analog/enums.hpp:59
libm2k::analog::DMM_READING
The structure of a DMM.
Definition analog/enums.hpp:43
libm2k::analog::DMM_READING::unit_name
std::string unit_name
Unit of measurement.
Definition analog/enums.hpp:47
libm2k::analog::DMM_READING::name
std::string name
The name of the channel.
Definition analog/enums.hpp:44
libm2k::analog::DMM_READING::id
std::string id
Channel's id.
Definition analog/enums.hpp:45
libm2k::analog::DMM_READING::unit_symbol
std::string unit_symbol
Unit symbol.
Definition analog/enums.hpp:48
libm2k::analog::DMM_READING::value
double value
The measured value.
Definition analog/enums.hpp:46