4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include "goby/common/protobuf/option_extensions.pb.h" 29 #include "goby/acomms/protobuf/driver_base.pb.h" 30 #include "goby/acomms/protobuf/modem_message.pb.h" 31 #include "dccl/option_extensions.pb.h" 32 #include <boost/units/quantity.hpp> 33 #include <boost/units/absolute.hpp> 34 #include <boost/units/dimensionless_type.hpp> 35 #include <boost/units/make_scaled_unit.hpp> 37 #include <boost/units/systems/si.hpp> 39 #include <boost/units/base_units/si/second.hpp> 46 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
47 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
48 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
50 class BenthosATM900DriverConfig;
52 class ReceiveStatistics;
55 enum ReceiveStatistics_CRCState {
56 ReceiveStatistics_CRCState_CRC_PASS = 1,
57 ReceiveStatistics_CRCState_CRC_FAIL = 2
59 bool ReceiveStatistics_CRCState_IsValid(
int value);
60 const ReceiveStatistics_CRCState ReceiveStatistics_CRCState_CRCState_MIN = ReceiveStatistics_CRCState_CRC_PASS;
61 const ReceiveStatistics_CRCState ReceiveStatistics_CRCState_CRCState_MAX = ReceiveStatistics_CRCState_CRC_FAIL;
62 const int ReceiveStatistics_CRCState_CRCState_ARRAYSIZE = ReceiveStatistics_CRCState_CRCState_MAX + 1;
64 const ::google::protobuf::EnumDescriptor* ReceiveStatistics_CRCState_descriptor();
65 inline const ::std::string& ReceiveStatistics_CRCState_Name(ReceiveStatistics_CRCState value) {
66 return ::google::protobuf::internal::NameOfEnum(
67 ReceiveStatistics_CRCState_descriptor(), value);
69 inline bool ReceiveStatistics_CRCState_Parse(
70 const ::std::string& name, ReceiveStatistics_CRCState* value) {
71 return ::google::protobuf::internal::ParseNamedEnum<ReceiveStatistics_CRCState>(
72 ReceiveStatistics_CRCState_descriptor(), name, value);
74 enum TransmissionType {
76 BENTHOS_TWO_WAY_PING = 1
78 bool TransmissionType_IsValid(
int value);
79 const TransmissionType TransmissionType_MIN = BASE_TYPE;
80 const TransmissionType TransmissionType_MAX = BENTHOS_TWO_WAY_PING;
81 const int TransmissionType_ARRAYSIZE = TransmissionType_MAX + 1;
83 const ::google::protobuf::EnumDescriptor* TransmissionType_descriptor();
84 inline const ::std::string& TransmissionType_Name(TransmissionType value) {
85 return ::google::protobuf::internal::NameOfEnum(
86 TransmissionType_descriptor(), value);
88 inline bool TransmissionType_Parse(
89 const ::std::string& name, TransmissionType* value) {
90 return ::google::protobuf::internal::ParseNamedEnum<TransmissionType>(
91 TransmissionType_descriptor(), name, value);
107 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
108 return _unknown_fields_;
111 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
112 return &_unknown_fields_;
115 static const ::google::protobuf::Descriptor* descriptor();
123 void CopyFrom(const ::google::protobuf::Message& from);
124 void MergeFrom(const ::google::protobuf::Message& from);
128 bool IsInitialized()
const;
130 int ByteSize()
const;
131 bool MergePartialFromCodedStream(
132 ::google::protobuf::io::CodedInputStream* input);
133 void SerializeWithCachedSizes(
134 ::google::protobuf::io::CodedOutputStream* output)
const;
135 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
136 int GetCachedSize()
const {
return _cached_size_; }
140 void SetCachedSize(
int size)
const;
142 ::google::protobuf::Metadata GetMetadata()
const;
148 static const int kFactoryResetFieldNumber = 1441;
150 ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8,
false >
152 static const int kConfigLoadFieldNumber = 1442;
153 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
154 ::google::protobuf::internal::StringTypeTraits, 9,
false >
156 static const int kConfigFieldNumber = 1443;
157 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
158 ::google::protobuf::internal::RepeatedStringTypeTraits, 9,
false >
160 static const int kStartTimeoutFieldNumber = 1445;
161 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
162 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5,
false >
164 static const int kMaxFrameSizeFieldNumber = 1446;
165 static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
166 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13,
false >
171 ::google::protobuf::UnknownFieldSet _unknown_fields_;
173 ::google::protobuf::uint32 _has_bits_[1];
174 mutable int _cached_size_;
175 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
176 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
177 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
179 void InitAsDefaultInstance();
196 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
197 return _unknown_fields_;
200 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
201 return &_unknown_fields_;
204 static const ::google::protobuf::Descriptor* descriptor();
212 void CopyFrom(const ::google::protobuf::Message& from);
213 void MergeFrom(const ::google::protobuf::Message& from);
217 bool IsInitialized()
const;
219 int ByteSize()
const;
220 bool MergePartialFromCodedStream(
221 ::google::protobuf::io::CodedInputStream* input);
222 void SerializeWithCachedSizes(
223 ::google::protobuf::io::CodedOutputStream* output)
const;
224 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
225 int GetCachedSize()
const {
return _cached_size_; }
229 void SetCachedSize(
int size)
const;
231 ::google::protobuf::Metadata GetMetadata()
const;
238 inline bool has_type()
const;
239 inline void clear_type();
240 static const int kTypeFieldNumber = 1;
241 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType type()
const;
242 inline void set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value);
245 inline bool has_ack_requested()
const;
246 inline void clear_ack_requested();
247 static const int kAckRequestedFieldNumber = 3;
248 inline bool ack_requested()
const;
249 inline void set_ack_requested(
bool value);
252 inline int acked_frame_size()
const;
253 inline void clear_acked_frame();
254 static const int kAckedFrameFieldNumber = 4;
255 inline ::google::protobuf::int32 acked_frame(
int index)
const;
256 inline void set_acked_frame(
int index, ::google::protobuf::int32 value);
257 inline void add_acked_frame(::google::protobuf::int32 value);
258 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
260 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
261 mutable_acked_frame();
265 inline void set_has_type();
266 inline void clear_has_type();
267 inline void set_has_ack_requested();
268 inline void clear_has_ack_requested();
270 ::google::protobuf::UnknownFieldSet _unknown_fields_;
272 ::google::protobuf::uint32 _has_bits_[1];
273 mutable int _cached_size_;
276 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > acked_frame_;
277 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
278 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
279 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
281 void InitAsDefaultInstance();
298 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
299 return _unknown_fields_;
302 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
303 return &_unknown_fields_;
306 static const ::google::protobuf::Descriptor* descriptor();
314 void CopyFrom(const ::google::protobuf::Message& from);
315 void MergeFrom(const ::google::protobuf::Message& from);
319 bool IsInitialized()
const;
321 int ByteSize()
const;
322 bool MergePartialFromCodedStream(
323 ::google::protobuf::io::CodedInputStream* input);
324 void SerializeWithCachedSizes(
325 ::google::protobuf::io::CodedOutputStream* output)
const;
326 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
327 int GetCachedSize()
const {
return _cached_size_; }
331 void SetCachedSize(
int size)
const;
333 ::google::protobuf::Metadata GetMetadata()
const;
337 typedef ReceiveStatistics_CRCState CRCState;
338 static const CRCState CRC_PASS = ReceiveStatistics_CRCState_CRC_PASS;
339 static const CRCState CRC_FAIL = ReceiveStatistics_CRCState_CRC_FAIL;
340 static inline bool CRCState_IsValid(
int value) {
341 return ReceiveStatistics_CRCState_IsValid(value);
343 static const CRCState CRCState_MIN =
344 ReceiveStatistics_CRCState_CRCState_MIN;
345 static const CRCState CRCState_MAX =
346 ReceiveStatistics_CRCState_CRCState_MAX;
347 static const int CRCState_ARRAYSIZE =
348 ReceiveStatistics_CRCState_CRCState_ARRAYSIZE;
349 static inline const ::google::protobuf::EnumDescriptor*
350 CRCState_descriptor() {
351 return ReceiveStatistics_CRCState_descriptor();
353 static inline const ::std::string& CRCState_Name(CRCState value) {
354 return ReceiveStatistics_CRCState_Name(value);
356 static inline bool CRCState_Parse(const ::std::string& name,
358 return ReceiveStatistics_CRCState_Parse(name, value);
364 inline bool has_crc()
const;
365 inline void clear_crc();
366 static const int kCrcFieldNumber = 1;
367 inline ::benthos::protobuf::ReceiveStatistics_CRCState crc()
const;
368 inline void set_crc(::benthos::protobuf::ReceiveStatistics_CRCState value);
371 inline bool has_multipath_delay()
const;
372 inline void clear_multipath_delay();
373 static const int kMultipathDelayFieldNumber = 2;
374 inline float multipath_delay()
const;
375 inline void set_multipath_delay(
float value);
378 inline bool has_snr()
const;
379 inline void clear_snr();
380 static const int kSnrFieldNumber = 3;
381 inline float snr()
const;
382 inline void set_snr(
float value);
385 inline bool has_relative_speed()
const;
386 inline void clear_relative_speed();
387 static const int kRelativeSpeedFieldNumber = 4;
388 inline float relative_speed()
const;
389 inline void set_relative_speed(
float value);
392 inline bool has_auto_gain_control()
const;
393 inline void clear_auto_gain_control();
394 static const int kAutoGainControlFieldNumber = 5;
395 inline float auto_gain_control()
const;
396 inline void set_auto_gain_control(
float value);
399 inline bool has_corrected_channel_error()
const;
400 inline void clear_corrected_channel_error();
401 static const int kCorrectedChannelErrorFieldNumber = 6;
402 inline ::google::protobuf::int32 corrected_channel_error()
const;
403 inline void set_corrected_channel_error(::google::protobuf::int32 value);
405 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type multipath_delay_dimension;
407 typedef boost::units::unit<multipath_delay_dimension,boost::units::si::system> multipath_delay_unit;
409 template<
typename Quantity >
410 void set_multipath_delay_with_units(Quantity value_w_units)
411 { set_multipath_delay(boost::units::quantity<multipath_delay_unit,float >(value_w_units).value() ); };
413 template<
typename Quantity >
414 Quantity multipath_delay_with_units()
const 415 {
return Quantity(multipath_delay() * multipath_delay_unit()); };
417 boost::units::quantity< multipath_delay_unit,float > multipath_delay_with_units()
const 418 {
return multipath_delay_with_units<boost::units::quantity< multipath_delay_unit,float > >(); };
420 typedef boost::units::derived_dimension< boost::units::length_base_dimension,1, boost::units::time_base_dimension,-1 >::type relative_speed_dimension;
422 typedef boost::units::unit<relative_speed_dimension,boost::units::si::system> relative_speed_unit;
424 template<
typename Quantity >
425 void set_relative_speed_with_units(Quantity value_w_units)
426 { set_relative_speed(boost::units::quantity<relative_speed_unit,float >(value_w_units).value() ); };
428 template<
typename Quantity >
429 Quantity relative_speed_with_units()
const 430 {
return Quantity(relative_speed() * relative_speed_unit()); };
432 boost::units::quantity< relative_speed_unit,float > relative_speed_with_units()
const 433 {
return relative_speed_with_units<boost::units::quantity< relative_speed_unit,float > >(); };
437 inline void set_has_crc();
438 inline void clear_has_crc();
439 inline void set_has_multipath_delay();
440 inline void clear_has_multipath_delay();
441 inline void set_has_snr();
442 inline void clear_has_snr();
443 inline void set_has_relative_speed();
444 inline void clear_has_relative_speed();
445 inline void set_has_auto_gain_control();
446 inline void clear_has_auto_gain_control();
447 inline void set_has_corrected_channel_error();
448 inline void clear_has_corrected_channel_error();
450 ::google::protobuf::UnknownFieldSet _unknown_fields_;
452 ::google::protobuf::uint32 _has_bits_[1];
453 mutable int _cached_size_;
455 float multipath_delay_;
457 float relative_speed_;
458 float auto_gain_control_;
459 ::google::protobuf::int32 corrected_channel_error_;
460 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
461 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
462 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
464 void InitAsDefaultInstance();
481 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
482 return _unknown_fields_;
485 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
486 return &_unknown_fields_;
489 static const ::google::protobuf::Descriptor* descriptor();
497 void CopyFrom(const ::google::protobuf::Message& from);
498 void MergeFrom(const ::google::protobuf::Message& from);
502 bool IsInitialized()
const;
504 int ByteSize()
const;
505 bool MergePartialFromCodedStream(
506 ::google::protobuf::io::CodedInputStream* input);
507 void SerializeWithCachedSizes(
508 ::google::protobuf::io::CodedOutputStream* output)
const;
509 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
510 int GetCachedSize()
const {
return _cached_size_; }
514 void SetCachedSize(
int size)
const;
516 ::google::protobuf::Metadata GetMetadata()
const;
523 inline bool has_one_way_travel_time()
const;
524 inline void clear_one_way_travel_time();
525 static const int kOneWayTravelTimeFieldNumber = 1;
526 inline double one_way_travel_time()
const;
527 inline void set_one_way_travel_time(
double value);
529 typedef boost::units::si::second_base_unit::unit_type one_way_travel_time_unit;
531 template<
typename Quantity >
532 void set_one_way_travel_time_with_units(Quantity value_w_units)
533 { set_one_way_travel_time(boost::units::quantity<one_way_travel_time_unit,double >(value_w_units).value() ); };
535 template<
typename Quantity >
536 Quantity one_way_travel_time_with_units()
const 537 {
return Quantity(one_way_travel_time() * one_way_travel_time_unit()); };
539 boost::units::quantity< one_way_travel_time_unit,double > one_way_travel_time_with_units()
const 540 {
return one_way_travel_time_with_units<boost::units::quantity< one_way_travel_time_unit,double > >(); };
544 inline void set_has_one_way_travel_time();
545 inline void clear_has_one_way_travel_time();
547 ::google::protobuf::UnknownFieldSet _unknown_fields_;
549 ::google::protobuf::uint32 _has_bits_[1];
550 mutable int _cached_size_;
551 double one_way_travel_time_;
552 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
553 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
554 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto();
556 void InitAsDefaultInstance();
561 static const int kTypeFieldNumber = 1401;
563 ::google::protobuf::internal::EnumTypeTraits< ::benthos::protobuf::TransmissionType, ::benthos::protobuf::TransmissionType_IsValid>, 14,
false >
565 static const int kReceiveStatFieldNumber = 1402;
566 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
567 ::google::protobuf::internal::MessageTypeTraits< ::benthos::protobuf::ReceiveStatistics >, 11,
false >
569 static const int kRangingReplyFieldNumber = 1403;
570 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::ModemTransmission,
571 ::google::protobuf::internal::MessageTypeTraits< ::benthos::protobuf::RangingReply >, 11,
false >
583 inline bool BenthosHeader::has_type()
const {
584 return (_has_bits_[0] & 0x00000001u) != 0;
586 inline void BenthosHeader::set_has_type() {
587 _has_bits_[0] |= 0x00000001u;
589 inline void BenthosHeader::clear_has_type() {
590 _has_bits_[0] &= ~0x00000001u;
592 inline void BenthosHeader::clear_type() {
596 inline ::goby::acomms::protobuf::ModemTransmission_TransmissionType BenthosHeader::type()
const {
598 return static_cast< ::goby::acomms::protobuf::ModemTransmission_TransmissionType
>(type_);
600 inline void BenthosHeader::set_type(::goby::acomms::protobuf::ModemTransmission_TransmissionType value) {
601 assert(::goby::acomms::protobuf::ModemTransmission_TransmissionType_IsValid(value));
608 inline bool BenthosHeader::has_ack_requested()
const {
609 return (_has_bits_[0] & 0x00000002u) != 0;
611 inline void BenthosHeader::set_has_ack_requested() {
612 _has_bits_[0] |= 0x00000002u;
614 inline void BenthosHeader::clear_has_ack_requested() {
615 _has_bits_[0] &= ~0x00000002u;
617 inline void BenthosHeader::clear_ack_requested() {
618 ack_requested_ =
false;
619 clear_has_ack_requested();
621 inline bool BenthosHeader::ack_requested()
const {
623 return ack_requested_;
625 inline void BenthosHeader::set_ack_requested(
bool value) {
626 set_has_ack_requested();
627 ack_requested_ = value;
632 inline int BenthosHeader::acked_frame_size()
const {
633 return acked_frame_.size();
635 inline void BenthosHeader::clear_acked_frame() {
636 acked_frame_.Clear();
638 inline ::google::protobuf::int32 BenthosHeader::acked_frame(
int index)
const {
640 return acked_frame_.Get(index);
642 inline void BenthosHeader::set_acked_frame(
int index, ::google::protobuf::int32 value) {
643 acked_frame_.Set(index, value);
646 inline void BenthosHeader::add_acked_frame(::google::protobuf::int32 value) {
647 acked_frame_.Add(value);
650 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
651 BenthosHeader::acked_frame()
const {
655 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
656 BenthosHeader::mutable_acked_frame() {
658 return &acked_frame_;
666 inline bool ReceiveStatistics::has_crc()
const {
667 return (_has_bits_[0] & 0x00000001u) != 0;
669 inline void ReceiveStatistics::set_has_crc() {
670 _has_bits_[0] |= 0x00000001u;
672 inline void ReceiveStatistics::clear_has_crc() {
673 _has_bits_[0] &= ~0x00000001u;
675 inline void ReceiveStatistics::clear_crc() {
679 inline ::benthos::protobuf::ReceiveStatistics_CRCState ReceiveStatistics::crc()
const {
681 return static_cast< ::benthos::protobuf::ReceiveStatistics_CRCState
>(crc_);
683 inline void ReceiveStatistics::set_crc(::benthos::protobuf::ReceiveStatistics_CRCState value) {
684 assert(::benthos::protobuf::ReceiveStatistics_CRCState_IsValid(value));
691 inline bool ReceiveStatistics::has_multipath_delay()
const {
692 return (_has_bits_[0] & 0x00000002u) != 0;
694 inline void ReceiveStatistics::set_has_multipath_delay() {
695 _has_bits_[0] |= 0x00000002u;
697 inline void ReceiveStatistics::clear_has_multipath_delay() {
698 _has_bits_[0] &= ~0x00000002u;
700 inline void ReceiveStatistics::clear_multipath_delay() {
701 multipath_delay_ = 0;
702 clear_has_multipath_delay();
704 inline float ReceiveStatistics::multipath_delay()
const {
706 return multipath_delay_;
708 inline void ReceiveStatistics::set_multipath_delay(
float value) {
709 set_has_multipath_delay();
710 multipath_delay_ = value;
715 inline bool ReceiveStatistics::has_snr()
const {
716 return (_has_bits_[0] & 0x00000004u) != 0;
718 inline void ReceiveStatistics::set_has_snr() {
719 _has_bits_[0] |= 0x00000004u;
721 inline void ReceiveStatistics::clear_has_snr() {
722 _has_bits_[0] &= ~0x00000004u;
724 inline void ReceiveStatistics::clear_snr() {
728 inline float ReceiveStatistics::snr()
const {
732 inline void ReceiveStatistics::set_snr(
float value) {
739 inline bool ReceiveStatistics::has_relative_speed()
const {
740 return (_has_bits_[0] & 0x00000008u) != 0;
742 inline void ReceiveStatistics::set_has_relative_speed() {
743 _has_bits_[0] |= 0x00000008u;
745 inline void ReceiveStatistics::clear_has_relative_speed() {
746 _has_bits_[0] &= ~0x00000008u;
748 inline void ReceiveStatistics::clear_relative_speed() {
750 clear_has_relative_speed();
752 inline float ReceiveStatistics::relative_speed()
const {
754 return relative_speed_;
756 inline void ReceiveStatistics::set_relative_speed(
float value) {
757 set_has_relative_speed();
758 relative_speed_ = value;
763 inline bool ReceiveStatistics::has_auto_gain_control()
const {
764 return (_has_bits_[0] & 0x00000010u) != 0;
766 inline void ReceiveStatistics::set_has_auto_gain_control() {
767 _has_bits_[0] |= 0x00000010u;
769 inline void ReceiveStatistics::clear_has_auto_gain_control() {
770 _has_bits_[0] &= ~0x00000010u;
772 inline void ReceiveStatistics::clear_auto_gain_control() {
773 auto_gain_control_ = 0;
774 clear_has_auto_gain_control();
776 inline float ReceiveStatistics::auto_gain_control()
const {
778 return auto_gain_control_;
780 inline void ReceiveStatistics::set_auto_gain_control(
float value) {
781 set_has_auto_gain_control();
782 auto_gain_control_ = value;
787 inline bool ReceiveStatistics::has_corrected_channel_error()
const {
788 return (_has_bits_[0] & 0x00000020u) != 0;
790 inline void ReceiveStatistics::set_has_corrected_channel_error() {
791 _has_bits_[0] |= 0x00000020u;
793 inline void ReceiveStatistics::clear_has_corrected_channel_error() {
794 _has_bits_[0] &= ~0x00000020u;
796 inline void ReceiveStatistics::clear_corrected_channel_error() {
797 corrected_channel_error_ = 0;
798 clear_has_corrected_channel_error();
800 inline ::google::protobuf::int32 ReceiveStatistics::corrected_channel_error()
const {
802 return corrected_channel_error_;
804 inline void ReceiveStatistics::set_corrected_channel_error(::google::protobuf::int32 value) {
805 set_has_corrected_channel_error();
806 corrected_channel_error_ = value;
815 inline bool RangingReply::has_one_way_travel_time()
const {
816 return (_has_bits_[0] & 0x00000001u) != 0;
818 inline void RangingReply::set_has_one_way_travel_time() {
819 _has_bits_[0] |= 0x00000001u;
821 inline void RangingReply::clear_has_one_way_travel_time() {
822 _has_bits_[0] &= ~0x00000001u;
824 inline void RangingReply::clear_one_way_travel_time() {
825 one_way_travel_time_ = 0;
826 clear_has_one_way_travel_time();
828 inline double RangingReply::one_way_travel_time()
const {
830 return one_way_travel_time_;
832 inline void RangingReply::set_one_way_travel_time(
double value) {
833 set_has_one_way_travel_time();
834 one_way_travel_time_ = value;
848 template <>
struct is_proto_enum< ::benthos::protobuf::ReceiveStatistics_CRCState> : ::google::protobuf::internal::true_type {};
850 inline const EnumDescriptor* GetEnumDescriptor< ::benthos::protobuf::ReceiveStatistics_CRCState>() {
851 return ::benthos::protobuf::ReceiveStatistics_CRCState_descriptor();
853 template <>
struct is_proto_enum< ::benthos::protobuf::TransmissionType> : ::google::protobuf::internal::true_type {};
855 inline const EnumDescriptor* GetEnumDescriptor< ::benthos::protobuf::TransmissionType>() {
856 return ::benthos::protobuf::TransmissionType_descriptor();
865 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fbenthos_5fatm900_2eproto__INCLUDED