30 #ifndef UR_CLIENT_LIBRARY_UR_TOOL_COMMUNICATION_H_INCLUDED 31 #define UR_CLIENT_LIBRARY_UR_TOOL_COMMUNICATION_H_INCLUDED 78 Limited(
const T lower,
const T upper) : lower_(lower), upper_(upper)
92 if (data >= lower_ && data <= upper_)
98 throw std::runtime_error(
"Given data is out of range");
135 tool_voltage_ = tool_voltage;
143 return tool_voltage_;
168 void setBaudRate(
const uint32_t baud_rate);
185 stop_bits_.setData(stop_bits);
192 return stop_bits_.getData();
203 rx_idle_chars_.setData(rx_idle_chars);
210 return rx_idle_chars_.getData();
221 tx_idle_chars_.setData(tx_idle_chars);
228 return tx_idle_chars_.getData();
232 const std::set<uint32_t> baud_rates_allowed_{ 9600,
237 static_cast<uint32_t
>(1e6),
238 static_cast<uint32_t>(2e6),
239 static_cast<uint32_t
>(5e6) };
249 #endif // ifndef UR_CLIENT_LIBRARY_UR_TOOL_COMMUNICATION_H_INCLUDED Helper class that represents a numeric value with a lower and an upper boundary.
ToolVoltage
Possible values for the tool voltage.
Limited(const T lower, const T upper)
Create a new Limited object.
T getData() const
Returns the data stored in this object.
Parity
Possible values for th parity flag.
void setData(const T data)
Set the data field with a given value.