fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
jed0101.h
Go to the documentation of this file.
1#ifndef FASTCAT_JED0101_H_
2#define FASTCAT_JED0101_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_jed0101_pub.h"
11
12namespace fastcat
13{
14class Jed0101 : public JsdDeviceBase
15{
16 public:
17 Jed0101();
18 bool ConfigFromYaml(const YAML::Node& node) override;
19 bool Read() override;
20 FaultType Process() override;
21 bool Write(DeviceCmd& cmd) override;
22
23 protected:
24 bool ConfigFromYamlCommon(const YAML::Node& node);
25
26 uint16_t initial_cmd_ = 0;
27
28 private:
29 jsd_slave_config_t jsd_slave_config_{0};
30};
31
32} // namespace fastcat
33
34#endif
Definition jed0101.h:15
bool ConfigFromYaml(const YAML::Node &node) override
Definition jed0101.cc:19
bool Read() override
Definition jed0101.cc:44
Jed0101()
Definition jed0101.cc:11
uint16_t initial_cmd_
Definition jed0101.h:26
bool ConfigFromYamlCommon(const YAML::Node &node)
Definition jed0101.cc:25
FaultType Process() override
Definition jed0101.cc:65
bool Write(DeviceCmd &cmd) override
Definition jed0101.cc:71
Definition jsd_device_base.h:16
Definition device_base.h:18