#include <stdbool.h>
#include <ti/sysbios/BIOS.h>
#include <driverlib/rom.h>
#include <inc/hw_memmap.h>
#include "Drivers/Peripheral_GPIO/GPIO.h"
//#define MAX_NUM_OF_REGISTRED_CALLBACKS 9 // screw,6 dispensers , 2 sw - start manual/stop manual
#define MAX_NUM_OF_REGISTRED_CALLBACKS 7 // screw,6 dispensers , 2 sw - start manual/stop manual
typedef struct
{
uint32_t m_port;
uint32_t m_pin;
} GPIOIntPortMap;
static GPIOIntPortMap portMap[NUM_OF_GPIO_INT] =
{
#ifdef EVALUATION_BOARD
{GPIO_PORTG_BASE, GPIO_INT_PIN_0}, // Dispenser LSW 1
{GPIO_PORTG_BASE, GPIO_INT_PIN_1}, // Dispenser LSW 2
{GPIO_PORTP_BASE, GPIO_INT_PIN_4}, // Dispenser LSW 3
{GPIO_PORTP_BASE, GPIO_INT_PIN_5}, // Dispenser LSW 4
{GPIO_PORTQ_BASE, GPIO_INT_PIN_7}, // Dispenser LSW 5
{GPIO_PORTS_BASE, GPIO_INT_PIN_0}, // Dispenser LSW 6
{GPIO_PORTS_BASE, GPIO_INT_PIN_3}, // Screw LSW
{GPIO_PORTD_BASE, GPIO_INT_PIN_1}, // Start Manual Btn
{GPIO_PORTJ_BASE, GPIO_INT_PIN_3}, // End Manual Btn
{GPIO_PORTE_BASE, GPIO_INT_PIN_4}, //
{GPIO_PORTH_BASE, GPIO_INT_PIN_5}, //
{GPIO_PORTP_BASE, GPIO_INT_PIN_0}, //
{GPIO_PORTQ_BASE, GPIO_INT_PIN_5}, //
#endif
};
typedef struct
{
bool m_isEnabled;
GPIOInt_t m_param;
GPIOIntCallback m_callback;
}PortConfig_t;
static PortConfig_t gpio_configuration[MAX_NUM_OF_REGISTRED_CALLBACKS];
bool PollGPIO (uint8_t index)
{
unsigned long ulStatus = ROM_GPIOPinRead(portMap[index].m_port, portMap[index].m_pin);
if ( ulStatus)
{
return true;
}
return false;
}
//********************************************************************************************************************
//genneral interrupt handler for all GPIO's
//********************************************************************************************************************
void IntGPIO(UArg arg0)
{
uint32_t port = (uint32_t)arg0;
unsigned long ulStatus = ROM_GPIOIntStatus(port, true);
uint8_t index;
for (index = 0; index < MAX_NUM_OF_REGISTRED_CALLBACKS; ++index)
{
GPIOInt_t gpioInt = gpio_configuration[index].m_param;
if (gpio_configuration[index].m_isEnabled && (portMap[gpioInt].m_port == port) && (portMap[gpioInt].m_pin<// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: StubDispenserRequest.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "StubDispenserRequest.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace Tango {
namespace PMR {
namespace Stubs {
class StubDispenserRequestDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<StubDispenserRequest>
_instance;
} _StubDispenserRequest_default_instance_;
namespace protobuf_StubDispenserRequest_2eproto {
namespace {
::google::protobuf::Metadata file_level_metadata[1];
} // namespace
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
::google::protobuf::internal::AuxillaryParseTableField(),
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
};
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, dispenserid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, start_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, setdirection_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, setmicrostepdivision_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, setspeed_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(StubDispenserRequest)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&_StubDispenserRequest_default_instance_),
};
namespace {
void protobuf_AssignDescriptors() {
AddDescriptors();
::google::protobuf::MessageFactory* factory = NULL;
AssignDescriptors(
"StubDispenserRequest.proto", schemas, file_default_instances, TableStruct::offsets, factory,
file_level_metadata, NULL, NULL);
}
void protobuf_AssignDescriptorsOnce() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
}
} // namespace
void TableStruct::InitDefaultsImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::internal::InitProtobufDefaults();
_StubDispenserRequest_default_instance_._instance.DefaultConstruct();
::google::protobuf::internal::OnShutdownDestroyMessage(
&_StubDispenserRequest_default_instance_);}
void InitDefaults() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
}
namespace {
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\032StubDispenserRequest.proto\022\017Tango.PMR."
"Stubs\"\200\001\n\024StubDispenserRequest\022\023\n\013Dispen"
"serId\030\001 \001(\r\022\r\n\005Start\030\002 \001(\010\022\024\n\014SetDirecti"
"on\030\003 \001(\010\022\034\n\024SetMicrostepDivision\030\004 \001(\r\022\020"
"\n\010SetSpeed\030\005 \001(\005B\033\n\031com.twine.tango.pmr."
"stubsb\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 213);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"StubDispenserRequest.proto", &protobuf_RegisterTypes);
}
} // anonymous namespace
void AddDescriptors() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
StaticDescriptorInitializer() {
AddDescriptors();
}
} static_descriptor_initializer;
} // namespace protobuf_StubDispenserRequest_2eproto
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StubDispenserRequest::kDispenserIdFieldNumber;
const int StubDispenserRequest::kStartFieldNumber;
const int StubDispenserRequest::kSetDirectionFieldNumber;
const int StubDispenserRequest::kSetMicrostepDivisionFieldNumber;
const int StubDispenserRequest::kSetSpeedFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StubDispenserRequest::StubDispenserRequest()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_StubDispenserRequest_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubDispenserRequest)
}
StubDispenserRequest::StubDispenserRequest(const StubDispenserRequest& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&dispenserid_, &from.dispenserid_,
static_cast<size_t>(reinterpret_cast<char*>(&setspeed_) -
reinterpret_cast<char*>(&dispenserid_)) + sizeof(setspeed_));
// @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubDispenserRequest)
}
void StubDispenserRequest::SharedCtor() {
::memset(&dispenserid_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&setspeed_) -
reinterpret_cast<char*>(&dispenserid_)) + sizeof(setspeed_));
_cached_size_ = 0;
}
StubDispenserRequest::~StubDispenserRequest() {
// @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubDispenserRequest)
SharedDtor();
}
void StubDispenserRequest::SharedDtor() {
}
void StubDispenserRequest::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StubDispenserRequest::descriptor() {
protobuf_StubDispenserRequest_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_StubDispenserRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const StubDispenserRequest& StubDispenserRequest::default_instance() {
protobuf_StubDispenserRequest_2eproto::InitDefaults();
return *internal_default_instance();
}
StubDispenserRequest* StubDispenserRequest::New(::google::protobuf::Arena* arena) const {
StubDispenserRequest* n = new StubDispenserRequest;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void StubDispenserRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubDispenserRequest)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&dispenserid_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&setspeed_) -
reinterpret_cast<char*>(&dispenserid_)) + sizeof(setspeed_));
_internal_metadata_.Clear();
}
bool StubDispenserRequest::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:Tango.PMR.Stubs.StubDispenserRequest)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// uint32 DispenserId = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &dispenserid_)));
} else {
goto handle_unusual;
}
break;
}
// bool Start = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &start_)));
} else {
goto handle_unusual;
}
break;
}
// bool SetDirection = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &setdirection_)));
} else {
goto handle_unusual;
}
break;
}
// uint32 SetMicrostepDivision = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &setmicrostepdivision_)));
} else {
goto handle_unusual;
}
break;
}
// int32 SetSpeed = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &setspeed_)));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:Tango.PMR.Stubs.StubDispenserRequest)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubDispenserRequest)
return false;
#undef DO_
}
void StubDispenserRequest::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubDispenserRequest)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 DispenserId = 1;
if (this->dispenserid() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->dispenserid(), output);
}
// bool Start = 2;
if (this->start() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->start(), output);
}
// bool SetDirection = 3;
if (this->setdirection() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->setdirection(), output);
}
// uint32 SetMicrostepDivision = 4;
if (this->setmicrostepdivision() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->setmicrostepdivision(), output);
}
// int32 SetSpeed = 5;
if (this->setspeed() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->setspeed(), output);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
}
// @@protoc_insertion_point(serialize_end:Tango.PMR.Stubs.StubDispenserRequest)
}
::google::protobuf::uint8* StubDispenserRequest::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubDispenserRequest)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// uint32 DispenserId = 1;
if (this->dispenserid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->dispenserid(), target);
}
// bool Start = 2;
if (this->start() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->start(), target);
}
// bool SetDirection = 3;
if (this->setdirection() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->setdirection(), target);
}
// uint32 SetMicrostepDivision = 4;
if (this->setmicrostepdivision() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->setmicrostepdivision(), target);
}
// int32 SetSpeed = 5;
if (this->setspeed() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->setspeed(), target);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:Tango.PMR.Stubs.StubDispenserRequest)
return target;
}
size_t StubDispenserRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubDispenserRequest)
size_t total_size = 0;
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
}
// uint32 DispenserId = 1;
if (this->dispenserid() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->dispenserid());
}
// bool Start = 2;
if (this->start() != 0) {
total_size += 1 + 1;
}
// bool SetDirection = 3;
if (this->setdirection() != 0) {
total_size += 1 + 1;
}
// uint32 SetMicrostepDivision = 4;
if (this->setmicrostepdivision() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->setmicrostepdivision());
}
// int32 SetSpeed = 5;
if (this->setspeed() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->setspeed());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StubDispenserRequest::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubDispenserRequest)
GOOGLE_DCHECK_NE(&from, this);
const StubDispenserRequest* source =
::google::protobuf::internal::DynamicCastToGenerated<const StubDispenserRequest>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubDispenserRequest)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubDispenserRequest)
MergeFrom(*source);
}
}
void StubDispenserRequest::MergeFrom(const StubDispenserRequest& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubDispenserRequest)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.dispenserid() != 0) {
set_dispenserid(from.dispenserid());
}
if (from.start() != 0) {
set_start(from.start());
}
if (from.setdirection() != 0) {
set_setdirection(from.setdirection());
}
if (from.setmicrostepdivision() != 0) {
set_setmicrostepdivision(from.setmicrostepdivision());
}
if (from.setspeed() != 0) {
set_setspeed(from.setspeed());
}
}
void StubDispenserRequest::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubDispenserRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StubDispenserRequest::CopyFrom(const StubDispenserRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubDispenserRequest)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StubDispenserRequest::IsInitialized() const {
return true;
}
void StubDispenserRequest::Swap(StubDispenserRequest* other) {
if (other == this) return;
InternalSwap(other);
}
void StubDispenserRequest::InternalSwap(StubDispenserRequest* other) {
using std::swap;
swap(dispenserid_, other->dispenserid_);
swap(start_, other->start_);
swap(setdirection_, other->setdirection_);
swap(setmicrostepdivision_, other->setmicrostepdivision_);
swap(setspeed_, other->setspeed_);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata StubDispenserRequest::GetMetadata() const {
protobuf_StubDispenserRequest_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_StubDispenserRequest_2eproto::file_level_metadata[kIndexInFileMessages];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StubDispenserRequest
// uint32 DispenserId = 1;
void StubDispenserRequest::clear_dispenserid() {
dispenserid_ = 0u;
}
::google::protobuf::uint32 StubDispenserRequest::dispenserid() const {
// @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.DispenserId)
return dispenserid_;
}
void StubDispenserRequest::set_dispenserid(::google::protobuf::uint32 value) {
dispenserid_ = value;
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.DispenserId)
}
// bool Start = 2;
void StubDispenserRequest::clear_start() {
start_ = false;
}
bool StubDispenserRequest::start() const {
// @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.Start)
return start_;
}
void StubDispenserRequest::set_start(bool value) {
start_ = value;
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.Start)
}
// bool SetDirection = 3;
void StubDispenserRequest::clear_setdirection() {
setdirection_ = false;
}
bool StubDispenserRequest::setdirection() const {
// @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetDirection)
return setdirection_;
}
void StubDispenserRequest::set_setdirection(bool value) {
setdirection_ = value;
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetDirection)
}
// uint32 SetMicrostepDivision = 4;
void StubDispenserRequest::clear_setmicrostepdivision() {
setmicrostepdivision_ = 0u;
}
::google::protobuf::uint32 StubDispenserRequest::setmicrostepdivision() const {
// @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetMicrostepDivision)
return setmicrostepdivision_;
}
void StubDispenserRequest::set_setmicrostepdivision(::google::protobuf::uint32 value) {
setmicrostepdivision_ = value;
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetMicrostepDivision)
}
// int32 SetSpeed = 5;
void StubDispenserRequest::clear_setspeed() {
setspeed_ = 0;
}
::google::protobuf::int32 StubDispenserRequest::setspeed() const {
// @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetSpeed)
return setspeed_;
}
void StubDispenserRequest::set_setspeed(::google::protobuf::int32 value) {
setspeed_ = value;
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetSpeed)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// @@protoc_insertion_point(namespace_scope)
} // namespace Stubs
} // namespace PMR
} // namespace Tango
// @@protoc_insertion_point(global_scope)