fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
el3602.h
Go to the documentation of this file.
1#ifndef FASTCAT_EL3602_H_
2#define FASTCAT_EL3602_H_
3
4// Include related header (for cc files)
5
6// Include c then c++ libraries
7
8// Include external then project includes
9#include "fastcat/jsd/jsd_device_base.h"
10#include "jsd/jsd_el3602_pub.h"
11
12namespace fastcat
13{
14class El3602 : public JsdDeviceBase
15{
16 public:
17 El3602();
18 bool ConfigFromYaml(const YAML::Node& node) override;
19 bool Read() override;
20
21 protected:
22 bool ConfigFromYamlCommon(const YAML::Node& node);
23 bool RangeFromString(std::string range_string, jsd_el3602_range_t& range);
24 std::string range_ch1_string_;
25 std::string range_ch2_string_;
26 jsd_el3602_range_t range_ch1_{JSD_EL3602_RANGE_10V};
27 jsd_el3602_range_t range_ch2_{JSD_EL3602_RANGE_10V};
28
29 private:
30 jsd_slave_config_t jsd_slave_config_{0};
31};
32
33} // namespace fastcat
34
35#endif
Definition el3602.h:15
jsd_el3602_range_t range_ch2_
Definition el3602.h:27
std::string range_ch2_string_
Definition el3602.h:25
bool ConfigFromYamlCommon(const YAML::Node &node)
Definition el3602.cc:28
bool ConfigFromYaml(const YAML::Node &node) override
Definition el3602.cc:21
std::string range_ch1_string_
Definition el3602.h:24
bool Read() override
Definition el3602.cc:62
bool RangeFromString(std::string range_string, jsd_el3602_range_t &range)
Definition el3602.cc:76
El3602()
Definition el3602.cc:13
jsd_el3602_range_t range_ch1_
Definition el3602.h:26
Definition jsd_device_base.h:16
Definition device_base.h:18