fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
el3208.h
Go to the documentation of this file.
1#ifndef FASTCAT_EL3208_H_
2#define FASTCAT_EL3208_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_el3208_pub.h"
11
12namespace fastcat
13{
14class El3208 : public JsdDeviceBase
15{
16 public:
17 El3208();
18 bool ConfigFromYaml(const YAML::Node& node) override;
19 bool Read() override;
20 FaultType Process() override;
21
22 protected:
23 bool ConfigFromYamlCommon(const YAML::Node& node);
24
25 bool ElementFromString(std::string element_string,
26 jsd_el3208_element_t& element);
27 bool ConnectionFromString(std::string connection_string,
28 jsd_el3208_connection_t& connection);
29
30 std::vector<std::string> element_strings_;
31 std::vector<std::string> connection_strings_;
32 jsd_slave_config_t jsd_slave_config_ = {0};
33
34 double* outputs_[JSD_EL3208_NUM_CHANNELS] = {0};
35 double low_threshold_[JSD_EL3208_NUM_CHANNELS] = {0};
36 double high_threshold_[JSD_EL3208_NUM_CHANNELS] = {0};
37 bool check_threshold_[JSD_EL3208_NUM_CHANNELS] = {0};
38};
39
40} // namespace fastcat
41
42#endif
Definition el3208.h:15
double * outputs_[JSD_EL3208_NUM_CHANNELS]
Definition el3208.h:34
El3208()
Definition el3208.cc:14
double high_threshold_[JSD_EL3208_NUM_CHANNELS]
Definition el3208.h:36
jsd_slave_config_t jsd_slave_config_
Definition el3208.h:32
bool ElementFromString(std::string element_string, jsd_el3208_element_t &element)
Definition el3208.cc:176
bool ConfigFromYamlCommon(const YAML::Node &node)
Definition el3208.cc:38
std::vector< std::string > element_strings_
Definition el3208.h:30
std::vector< std::string > connection_strings_
Definition el3208.h:31
bool check_threshold_[JSD_EL3208_NUM_CHANNELS]
Definition el3208.h:37
double low_threshold_[JSD_EL3208_NUM_CHANNELS]
Definition el3208.h:35
bool ConnectionFromString(std::string connection_string, jsd_el3208_connection_t &connection)
Definition el3208.cc:215
bool ConfigFromYaml(const YAML::Node &node) override
Definition el3208.cc:31
bool Read() override
Definition el3208.cc:122
FaultType Process() override
Definition el3208.cc:149
Definition jsd_device_base.h:16
Definition device_base.h:18