fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
ild1900.h
Go to the documentation of this file.
1#ifndef FASTCAT_ILD1900_H_
2#define FASTCAT_ILD1900_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_ild1900_pub.h"
11
12namespace fastcat
13{
14class Ild1900 : public JsdDeviceBase
15{
16 public:
17 Ild1900();
18 bool ConfigFromYaml(const YAML::Node& node) override;
19 bool Read() override;
20
21 protected:
22 bool ConfigFromYamlCommon(const YAML::Node& node);
23
24 private:
25 bool ModelFromString(std::string model_string, jsd_ild1900_model_t& model);
26 bool AveragingTypeFromString(std::string averaging_type_string,
27 jsd_ild1900_averaging_t& averaging_type);
28 bool ExposureModeFromString(std::string exposure_mode_string,
29 jsd_ild1900_exposure_mode_t& exposure_mode);
30 bool PeakSelectionFromString(std::string peak_selection_string,
31 jsd_ild1900_peak_selection_t& peak_selection);
32
33 jsd_slave_config_t jsd_slave_config_{0};
34};
35
36} // namespace fastcat
37
38#endif
Definition ild1900.h:15
bool ConfigFromYamlCommon(const YAML::Node &node)
Definition ild1900.cc:24
Ild1900()
Definition ild1900.cc:9
bool ConfigFromYaml(const YAML::Node &node) override
Definition ild1900.cc:17
bool Read() override
Definition ild1900.cc:85
Definition jsd_device_base.h:16
Definition device_base.h:18