measurement_report_config.h
Go to the documentation of this file.
1 
26 #ifndef OMRON_OS32C_DRIVER_MEASUREMENT_REPORT_CONFIG_H
27 #define OMRON_OS32C_DRIVER_MEASUREMENT_REPORT_CONFIG_H
28 
29 #include <string>
30 
35 
36 using std::string;
40 
41 namespace omron_os32c_driver {
42 
48 {
49 public:
55 
57  {
58  memset(beam_selection_mask, 0, sizeof(beam_selection_mask));
59  }
60 
64  virtual size_t getLength() const
65  {
66  return 110;
67  }
68 
75  virtual Writer& serialize(Writer& writer) const
76  {
77  EIP_UINT reserved = 0;
78  writer.write(sequence_num);
79  writer.write(trigger);
80  writer.write(range_report_format);
82  writer.write(reserved);
83  writer.write(reserved);
84  writer.write(reserved);
85  writer.write(reserved);
86  writer.write(reserved);
87  writer.write(reserved);
89  return writer;
90  }
91 
95  virtual Reader& deserialize(Reader& reader, size_t length)
96  {
97  return deserialize(reader);
98  }
99 
106  virtual Reader& deserialize(Reader& reader)
107  {
108  reader.read(sequence_num);
109  reader.read(trigger);
110  reader.read(range_report_format);
112  reader.skip(12);
114  return reader;
115  }
116 };
117 
118 } // namespace omron_os32c_driver
119 
120 #endif // OMRON_OS32C_DRIVER_MEASUREMENT_REPORT_CONFIG_H
eip::serialization::Writer
eip::serialization::Reader
omron_os32c_driver::MeasurementReportConfig::getLength
virtual size_t getLength() const
Definition: measurement_report_config.h:64
EIP_BYTE
uint8_t EIP_BYTE
omron_os32c_driver::MeasurementReportConfig::range_report_format
EIP_UINT range_report_format
Definition: measurement_report_config.h:52
eip::serialization::Writer::write
void write(const T &v)
EIP_UINT
uint16_t EIP_UINT
reader.h
eip_types.h
eip::serialization::Reader::read
void read(T &v)
eip::serialization::Reader::skip
virtual void skip(size_t n)=0
eip::serialization::Writer::writeBytes
virtual void writeBytes(const void *p, size_t n)=0
eip::serialization::Serializable
eip::serialization::Reader::readBytes
virtual void readBytes(void *buf, size_t n)=0
omron_os32c_driver::MeasurementReportConfig
Definition: measurement_report_config.h:47
omron_os32c_driver::MeasurementReportConfig::reflectivity_report_format
EIP_UINT reflectivity_report_format
Definition: measurement_report_config.h:53
omron_os32c_driver
Definition: measurement_report.h:43
omron_os32c_driver::MeasurementReportConfig::beam_selection_mask
EIP_BYTE beam_selection_mask[88]
Definition: measurement_report_config.h:54
omron_os32c_driver::MeasurementReportConfig::MeasurementReportConfig
MeasurementReportConfig()
Definition: measurement_report_config.h:56
omron_os32c_driver::MeasurementReportConfig::serialize
virtual Writer & serialize(Writer &writer) const
Definition: measurement_report_config.h:75
omron_os32c_driver::MeasurementReportConfig::deserialize
virtual Reader & deserialize(Reader &reader)
Definition: measurement_report_config.h:106
omron_os32c_driver::MeasurementReportConfig::deserialize
virtual Reader & deserialize(Reader &reader, size_t length)
Definition: measurement_report_config.h:95
omron_os32c_driver::MeasurementReportConfig::sequence_num
EIP_UINT sequence_num
Definition: measurement_report_config.h:50
serializable.h
omron_os32c_driver::MeasurementReportConfig::trigger
EIP_UDINT trigger
Definition: measurement_report_config.h:51
EIP_UDINT
uint32_t EIP_UDINT
writer.h


omron_os32c_driver
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:39:14