Veethree D7 SDK
Loading...
Searching...
No Matches
profile_builder.h
Go to the documentation of this file.
1
5#ifndef PROFILE_BUILDER_H
6#define PROFILE_BUILDER_H
7
8#include "analog.h"
9#include "analog_common.h"
10
11#include <memory>
12#include <string>
13
14namespace vsdk::io {
19
41class profile_builder {
42public:
43 profile_builder();
44
51
59 bool add_one_wire_resistive_sensor(std::string label, analog::pin_t positive_a);
60
68 bool add_two_wire_resistive_sensor(std::string label, analog::pin_t positive_a);
69
77 bool add_voltage_sensor(std::string label, analog::pin_t positive_pin);
78
87 bool add_thermocouple(std::string label,
89 analog::pin_t positive_pin,
90 analog::pin_t negative_pin);
91
99 bool add_two_wire_rtd(std::string label, analog::pin_t positive_a);
100
109 bool add_three_wire_rtd(std::string label, analog::pin_t positive_a, analog::pin_t negative_b);
110
120 bool add_four_wire_rtd(std::string label,
121 analog::pin_t positive_a,
122 analog::pin_t negative_b,
123 analog::pin_t positive_b);
124
129
134 profile_builder(const profile_builder &) = delete;
135 profile_builder(profile_builder &&) = delete;
136 profile_builder &operator=(const profile_builder &) = delete;
137 profile_builder &operator=(profile_builder &&) = delete;
139private:
140 struct impl;
141 std::unique_ptr<impl> _impl;
142};
143
145
146}; /* namespace vsdk::io */
147
148#endif /* PROFILE_BUILDER_H */
The analog interface.
The analog common data definitions.
bool add_four_wire_rtd(std::string label, analog::pin_t positive_a, analog::pin_t negative_b, analog::pin_t positive_b)
Add a 4 wire Pt100 resistive thermal detector.
profile_builder & operator=(const profile_builder &)=delete
Deleted constructors.
bool add_one_wire_resistive_sensor(std::string label, analog::pin_t positive_a)
Add a one wire resistive sensor.
bool add_three_wire_rtd(std::string label, analog::pin_t positive_a, analog::pin_t negative_b)
Add a 3 wire Pt100 resistive thermal detector.
profile_builder(const profile_builder &)=delete
Deleted constructors.
bool add_thermocouple(std::string label, analog::thermocouple_t type, analog::pin_t positive_pin, analog::pin_t negative_pin)
Add a thermocouple.
profile_builder(profile_builder &&)=delete
Deleted constructors.
bool add_two_wire_rtd(std::string label, analog::pin_t positive_a)
Add a 2 wire Pt100 resistive thermal detector.
bool add_two_wire_resistive_sensor(std::string label, analog::pin_t positive_a)
Add a two wire resistive sensor which uses RREF for a more accurate reading. The trade-off is that on...
bool add_voltage_sensor(std::string label, analog::pin_t positive_pin)
Add a voltage sensor.
profile_builder & operator=(profile_builder &&)=delete
Deleted constructors.
analog::analog_profile to_profile()
Export the profile.
~profile_builder()
Destructor.
std::tuple< std::vector< sensor >, std::vector< function_channel > > analog_profile
Representation of an analog profile.
Definition analog.h:32
thermocouple_t
Thermocouple type.
Definition analog_common.h:206
pin_t
Pin designations.
Definition analog_common.h:169
Any entities that belong to the IO library.