// Generated by the protocol buffer compiler. DO NOT EDIT! // source: HardwareMotor.proto #ifndef PROTOBUF_HardwareMotor_2eproto__INCLUDED #define PROTOBUF_HardwareMotor_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 3004000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "HardwareMotorType.pb.h" // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace Hardware { class HardwareMotor; class HardwareMotorDefaultTypeInternal; extern HardwareMotorDefaultTypeInternal _HardwareMotor_default_instance_; } // namespace Hardware } // namespace PMR } // namespace Tango namespace Tango { namespace PMR { namespace Hardware { namespace protobuf_HardwareMotor_2eproto { // Internal implementation detail -- do not call these. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[]; static const ::google::protobuf::uint32 offsets[]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static void InitDefaultsImpl(); }; void AddDescriptors(); void InitDefaults(); } // namespace protobuf_HardwareMotor_2eproto // =================================================================== class HardwareMotor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Hardware.HardwareMotor) */ { public: HardwareMotor(); virtual ~HardwareMotor(); HardwareMotor(const HardwareMotor& from); inline HardwareMotor& operator=(const HardwareMotor& from) { CopyFrom(from); return *this; } #if LANG_CXX11 HardwareMotor(HardwareMotor&& from) noexcept : HardwareMotor() { *this = ::std::move(from); } inline HardwareMotor& operator=(HardwareMotor&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif static const ::google::protobuf::Descriptor* descriptor(); static const HardwareMotor& default_instance(); static inline const HardwareMotor* internal_default_instance() { return reinterpret_cast( &_HardwareMotor_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void Swap(HardwareMotor* other); friend void swap(HardwareMotor& a, HardwareMotor& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline HardwareMotor* New() const PROTOBUF_FINAL { return New(NULL); } HardwareMotor* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const HardwareMotor& from); void MergeFrom(const HardwareMotor& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(HardwareMotor* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; void clear_hardwaremotortype(); static const int kHardwareMotorTypeFieldNumber = 1; ::Tango::PMR::Hardware::HardwareMotorType hardwaremotortype() const; void set_hardwaremotortype(::Tango::PMR::Hardware::HardwareMotorType value); // int32 MinFrequency = 2; void clear_minfrequency(); static const int kMinFrequencyFieldNumber = 2; ::google::protobuf::int32 minfrequency() const; void set_minfrequency(::google::protobuf::int32 value); // int32 MaxFrequency = 3; void clear_maxfrequency(); static const int kMaxFrequencyFieldNumber = 3; ::google::protobuf::int32 maxfrequency() const; void set_maxfrequency(::google::protobuf::int32 value); // int32 SetMicroStep = 4; void clear_setmicrostep(); static const int kSetMicroStepFieldNumber = 4; ::google::protobuf::int32 setmicrostep() const; void set_setmicrostep(::google::protobuf::int32 value); // double MaxChangeSlope = 6; void clear_maxchangeslope(); static const int kMaxChangeSlopeFieldNumber = 6; double maxchangeslope() const; void set_maxchangeslope(double value); // double HighLengthMicroSecond = 7; void clear_highlengthmicrosecond(); static const int kHighLengthMicroSecondFieldNumber = 7; double highlengthmicrosecond() const; void set_highlengthmicrosecond(double value); // int32 MicroStep = 5; void clear_microstep(); static const int kMicroStepFieldNumber = 5; ::google::protobuf::int32 microstep() const; void set_microstep(::google::protobuf::int32 value); // int32 PulsePerRound = 9; void clear_pulseperround(); static const int kPulsePerRoundFieldNumber = 9; ::google::protobuf::int32 pulseperround() const; void set_pulseperround(::google::protobuf::int32 value); // double PulleyRadius = 10; void clear_pulleyradius(); static const int kPulleyRadiusFieldNumber = 10; double pulleyradius() const; void set_pulleyradius(double value); // int32 ConfigWord = 11; void clear_configword(); static const int kConfigWordFieldNumber = 11; ::google::protobuf::int32 configword() const; void set_configword(::google::protobuf::int32 value); // int32 KvalHold = 13; void clear_kvalhold(); static const int kKvalHoldFieldNumber = 13; ::google::protobuf::int32 kvalhold() const; void set_kvalhold(::google::protobuf::int32 value); // bool SpeedMaster = 8; void clear_speedmaster(); static const int kSpeedMasterFieldNumber = 8; bool speedmaster() const; void set_speedmaster(bool value); // bool DirectionThreadWize = 12; void clear_directionthreadwize(); static const int kDirectionThreadWizeFieldNumber = 12; bool directionthreadwize() const; void set_directionthreadwize(bool value); // bool LowSpeedOptimization = 20; void clear_lowspeedoptimization(); static const int kLowSpeedOptimizationFieldNumber = 20; bool lowspeedoptimization() const; void set_lowspeedoptimization(bool value); // int32 KvalRun = 14; void clear_kvalrun(); static const int kKvalRunFieldNumber = 14; ::google::protobuf::int32 kvalrun() const; void set_kvalrun(::google::protobuf::int32 value); // int32 KvalAcc = 15; void clear_kvalacc(); static const int kKvalAccFieldNumber = 15; ::google::protobuf::int32 kvalacc() const; void set_kvalacc(::google::protobuf::int32 value); // int32 KvalDec = 16; void clear_kvaldec(); static const int kKvalDecFieldNumber = 16; ::google::protobuf::int32 kvaldec() const; void set_kvaldec(::google::protobuf::int32 value); // int32 OverCurrentThreshold = 17; void clear_overcurrentthreshold(); static const int kOverCurrentThresholdFieldNumber = 17; ::google::protobuf::int32 overcurrentthreshold() const; void set_overcurrentthreshold(::google::protobuf::int32 value); // int32 StallThreshold = 18; void clear_stallthreshold(); static const int kStallThresholdFieldNumber = 18; ::google::protobuf::int32 stallthreshold() const; void set_stallthreshold(::google::protobuf::int32 value); // int32 ThermalCompensationFactor = 19; void clear_thermalcompensationfactor(); static const int kThermalCompensationFactorFieldNumber = 19; ::google::protobuf::int32 thermalcompensationfactor() const; void set_thermalcompensationfactor(::google::protobuf::int32 value); // int32 StSlp = 21; void clear_stslp(); static const int kStSlpFieldNumber = 21; ::google::protobuf::int32 stslp() const; void set_stslp(::google::protobuf::int32 value); // int32 IntSpd = 22; void clear_intspd(); static const int kIntSpdFieldNumber = 22; ::google::protobuf::int32 intspd() const; void set_intspd(::google::protobuf::int32 value); // int32 FnSlpAcc = 23; void clear_fnslpacc(); static const int kFnSlpAccFieldNumber = 23; ::google::protobuf::int32 fnslpacc() const; void set_fnslpacc(::google::protobuf::int32 value); // int32 FnSlpDec = 24; void clear_fnslpdec(); static const int kFnSlpDecFieldNumber = 24; ::google::protobuf::int32 fnslpdec() const; void set_fnslpdec(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwareMotor) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; int hardwaremotortype_; ::google::protobuf::int32 minfrequency_; ::google::protobuf::int32 maxfrequency_; ::google::protobuf::int32 setmicrostep_; double maxchangeslope_; double highlengthmicrosecond_; ::google::protobuf::int32 microstep_; ::google::protobuf::int32 pulseperround_; double pulleyradius_; ::google::protobuf::int32 configword_; ::google::protobuf::int32 kvalhold_; bool speedmaster_; bool directionthreadwize_; bool lowspeedoptimization_; ::google::protobuf::int32 kvalrun_; ::google::protobuf::int32 kvalacc_; ::google::protobuf::int32 kvaldec_; ::google::protobuf::int32 overcurrentthreshold_; ::google::protobuf::int32 stallthreshold_; ::google::protobuf::int32 thermalcompensationfactor_; ::google::protobuf::int32 stslp_; ::google::protobuf::int32 intspd_; ::google::protobuf::int32 fnslpacc_; ::google::protobuf::int32 fnslpdec_; mutable int _cached_size_; friend struct protobuf_HardwareMotor_2eproto::TableStruct; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // HardwareMotor // .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; inline void HardwareMotor::clear_hardwaremotortype() { hardwaremotortype_ = 0; } inline ::Tango::PMR::Hardware::HardwareMotorType HardwareMotor::hardwaremotortype() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.HardwareMotorType) return static_cast< ::Tango::PMR::Hardware::HardwareMotorType >(hardwaremotortype_); } inline void HardwareMotor::set_hardwaremotortype(::Tango::PMR::Hardware::HardwareMotorType value) { hardwaremotortype_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.HardwareMotorType) } // int32 MinFrequency = 2; inline void HardwareMotor::clear_minfrequency() { minfrequency_ = 0; } inline ::google::protobuf::int32 HardwareMotor::minfrequency() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.MinFrequency) return minfrequency_; } inline void HardwareMotor::set_minfrequency(::google::protobuf::int32 value) { minfrequency_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.MinFrequency) } // int32 MaxFrequency = 3; inline void HardwareMotor::clear_maxfrequency() { maxfrequency_ = 0; } inline ::google::protobuf::int32 HardwareMotor::maxfrequency() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.MaxFrequency) return maxfrequency_; } inline void HardwareMotor::set_maxfrequency(::google::protobuf::int32 value) { maxfrequency_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.MaxFrequency) } // int32 SetMicroStep = 4; inline void HardwareMotor::clear_setmicrostep() { setmicrostep_ = 0; } inline ::google::protobuf::int32 HardwareMotor::setmicrostep() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.SetMicroStep) return setmicrostep_; } inline void HardwareMotor::set_setmicrostep(::google::protobuf::int32 value) { setmicrostep_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.SetMicroStep) } // int32 MicroStep = 5; inline void HardwareMotor::clear_microstep() { microstep_ = 0; } inline ::google::protobuf::int32 HardwareMotor::microstep() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.MicroStep) return microstep_; } inline void HardwareMotor::set_microstep(::google::protobuf::int32 value) { microstep_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.MicroStep) } // double MaxChangeSlope = 6; inline void HardwareMotor::clear_maxchangeslope() { maxchangeslope_ = 0; } inline double HardwareMotor::maxchangeslope() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.MaxChangeSlope) return maxchangeslope_; } inline void HardwareMotor::set_maxchangeslope(double value) { maxchangeslope_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.MaxChangeSlope) } // double HighLengthMicroSecond = 7; inline void HardwareMotor::clear_highlengthmicrosecond() { highlengthmicrosecond_ = 0; } inline double HardwareMotor::highlengthmicrosecond() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.HighLengthMicroSecond) return highlengthmicrosecond_; } inline void HardwareMotor::set_highlengthmicrosecond(double value) { highlengthmicrosecond_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.HighLengthMicroSecond) } // bool SpeedMaster = 8; inline void HardwareMotor::clear_speedmaster() { speedmaster_ = false; } inline bool HardwareMotor::speedmaster() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.SpeedMaster) return speedmaster_; } inline void HardwareMotor::set_speedmaster(bool value) { speedmaster_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.SpeedMaster) } // int32 PulsePerRound = 9; inline void HardwareMotor::clear_pulseperround() { pulseperround_ = 0; } inline ::google::protobuf::int32 HardwareMotor::pulseperround() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.PulsePerRound) return pulseperround_; } inline void HardwareMotor::set_pulseperround(::google::protobuf::int32 value) { pulseperround_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.PulsePerRound) } // double PulleyRadius = 10; inline void HardwareMotor::clear_pulleyradius() { pulleyradius_ = 0; } inline double HardwareMotor::pulleyradius() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.PulleyRadius) return pulleyradius_; } inline void HardwareMotor::set_pulleyradius(double value) { pulleyradius_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.PulleyRadius) } // int32 ConfigWord = 11; inline void HardwareMotor::clear_configword() { configword_ = 0; } inline ::google::protobuf::int32 HardwareMotor::configword() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.ConfigWord) return configword_; } inline void HardwareMotor::set_configword(::google::protobuf::int32 value) { configword_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.ConfigWord) } // bool DirectionThreadWize = 12; inline void HardwareMotor::clear_directionthreadwize() { directionthreadwize_ = false; } inline bool HardwareMotor::directionthreadwize() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.DirectionThreadWize) return directionthreadwize_; } inline void HardwareMotor::set_directionthreadwize(bool value) { directionthreadwize_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.DirectionThreadWize) } // int32 KvalHold = 13; inline void HardwareMotor::clear_kvalhold() { kvalhold_ = 0; } inline ::google::protobuf::int32 HardwareMotor::kvalhold() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.KvalHold) return kvalhold_; } inline void HardwareMotor::set_kvalhold(::google::protobuf::int32 value) { kvalhold_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.KvalHold) } // int32 KvalRun = 14; inline void HardwareMotor::clear_kvalrun() { kvalrun_ = 0; } inline ::google::protobuf::int32 HardwareMotor::kvalrun() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.KvalRun) return kvalrun_; } inline void HardwareMotor::set_kvalrun(::google::protobuf::int32 value) { kvalrun_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.KvalRun) } // int32 KvalAcc = 15; inline void HardwareMotor::clear_kvalacc() { kvalacc_ = 0; } inline ::google::protobuf::int32 HardwareMotor::kvalacc() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.KvalAcc) return kvalacc_; } inline void HardwareMotor::set_kvalacc(::google::protobuf::int32 value) { kvalacc_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.KvalAcc) } // int32 KvalDec = 16; inline void HardwareMotor::clear_kvaldec() { kvaldec_ = 0; } inline ::google::protobuf::int32 HardwareMotor::kvaldec() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.KvalDec) return kvaldec_; } inline void HardwareMotor::set_kvaldec(::google::protobuf::int32 value) { kvaldec_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.KvalDec) } // int32 OverCurrentThreshold = 17; inline void HardwareMotor::clear_overcurrentthreshold() { overcurrentthreshold_ = 0; } inline ::google::protobuf::int32 HardwareMotor::overcurrentthreshold() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.OverCurrentThreshold) return overcurrentthreshold_; } inline void HardwareMotor::set_overcurrentthreshold(::google::protobuf::int32 value) { overcurrentthreshold_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.OverCurrentThreshold) } // int32 StallThreshold = 18; inline void HardwareMotor::clear_stallthreshold() { stallthreshold_ = 0; } inline ::google::protobuf::int32 HardwareMotor::stallthreshold() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.StallThreshold) return stallthreshold_; } inline void HardwareMotor::set_stallthreshold(::google::protobuf::int32 value) { stallthreshold_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.StallThreshold) } // int32 ThermalCompensationFactor = 19; inline void HardwareMotor::clear_thermalcompensationfactor() { thermalcompensationfactor_ = 0; } inline ::google::protobuf::int32 HardwareMotor::thermalcompensationfactor() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.ThermalCompensationFactor) return thermalcompensationfactor_; } inline void HardwareMotor::set_thermalcompensationfactor(::google::protobuf::int32 value) { thermalcompensationfactor_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.ThermalCompensationFactor) } // bool LowSpeedOptimization = 20; inline void HardwareMotor::clear_lowspeedoptimization() { lowspeedoptimization_ = false; } inline bool HardwareMotor::lowspeedoptimization() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.LowSpeedOptimization) return lowspeedoptimization_; } inline void HardwareMotor::set_lowspeedoptimization(bool value) { lowspeedoptimization_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.LowSpeedOptimization) } // int32 StSlp = 21; inline void HardwareMotor::clear_stslp() { stslp_ = 0; } inline ::google::protobuf::int32 HardwareMotor::stslp() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.StSlp) return stslp_; } inline void HardwareMotor::set_stslp(::google::protobuf::int32 value) { stslp_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.StSlp) } // int32 IntSpd = 22; inline void HardwareMotor::clear_intspd() { intspd_ = 0; } inline ::google::protobuf::int32 HardwareMotor::intspd() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.IntSpd) return intspd_; } inline void HardwareMotor::set_intspd(::google::protobuf::int32 value) { intspd_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.IntSpd) } // int32 FnSlpAcc = 23; inline void HardwareMotor::clear_fnslpacc() { fnslpacc_ = 0; } inline ::google::protobuf::int32 HardwareMotor::fnslpacc() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.FnSlpAcc) return fnslpacc_; } inline void HardwareMotor::set_fnslpacc(::google::protobuf::int32 value) { fnslpacc_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.FnSlpAcc) } // int32 FnSlpDec = 24; inline void HardwareMotor::clear_fnslpdec() { fnslpdec_ = 0; } inline ::google::protobuf::int32 HardwareMotor::fnslpdec() const { // @@protoc_insertion_point(field_get:Tango.PMR.Hardware.HardwareMotor.FnSlpDec) return fnslpdec_; } inline void HardwareMotor::set_fnslpdec(::google::protobuf::int32 value) { fnslpdec_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Hardware.HardwareMotor.FnSlpDec) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Hardware } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_HardwareMotor_2eproto__INCLUDED