29 #ifndef UR_CLIENT_LIBRARY_UR_TOOL_COMMUNICATION_H_INCLUDED 30 #define UR_CLIENT_LIBRARY_UR_TOOL_COMMUNICATION_H_INCLUDED 77 Limited(
const T lower,
const T upper) : lower_(lower), upper_(upper)
91 if (data >= lower_ && data <= upper_)
97 throw std::runtime_error(
"Given data is out of range");
134 tool_voltage_ = tool_voltage;
142 return tool_voltage_;
167 void setBaudRate(
const uint32_t baud_rate);
184 stop_bits_.setData(stop_bits);
191 return stop_bits_.getData();
202 rx_idle_chars_.setData(rx_idle_chars);
209 return rx_idle_chars_.getData();
220 tx_idle_chars_.setData(tx_idle_chars);
227 return tx_idle_chars_.getData();
231 const std::set<uint32_t> baud_rates_allowed_{ 9600,
236 static_cast<uint32_t
>(1e6),
237 static_cast<uint32_t>(2e6),
238 static_cast<uint32_t
>(5e6) };
248 #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.