Class holding a tool communication configuration.
More...
#include <tool_communication.h>
Class holding a tool communication configuration.
Definition at line 119 of file tool_communication.h.
◆ RxIdleCharsT
◆ StopBitsT
◆ TxIdleCharsT
◆ ToolCommSetup()
urcl::ToolCommSetup::ToolCommSetup |
( |
| ) |
|
◆ ~ToolCommSetup()
urcl::ToolCommSetup::~ToolCommSetup |
( |
| ) |
|
|
default |
◆ getBaudRate()
uint32_t urcl::ToolCommSetup::getBaudRate |
( |
| ) |
const |
|
inline |
◆ getParity()
Parity urcl::ToolCommSetup::getParity |
( |
| ) |
const |
|
inline |
◆ getRxIdleChars()
◆ getStopBits()
◆ getToolVoltage()
ToolVoltage urcl::ToolCommSetup::getToolVoltage |
( |
| ) |
const |
|
inline |
◆ getTxIdleChars()
◆ setBaudRate()
void urcl::ToolCommSetup::setBaudRate |
( |
const uint32_t |
baud_rate | ) |
|
Setup the tool communication baud rate that will be configured on the robot. This will not immediately change values on the robot, it will only be stored inside the ToolCommSetup object.
- Parameters
-
baud_rate | must be one of baud_rates_allowed_ or an exception will be thrown |
Definition at line 43 of file tool_communication.cpp.
◆ setParity()
void urcl::ToolCommSetup::setParity |
( |
const Parity |
parity | ) |
|
|
inline |
Setup the tool communication parity that will be configured on the robot. This will not immediately change values on the robot, it will only be stored inside the ToolCommSetup object.
Definition at line 150 of file tool_communication.h.
◆ setRxIdleChars()
Setup the tool communication number of idle chars for the rx channel that will be configured on the robot. This will not immediately change values on the robot, it will only be stored inside the ToolCommSetup object.
- Parameters
-
rx_idle_chars | must be inside [1.0, 40] or this will throw an exception. |
Definition at line 201 of file tool_communication.h.
◆ setStopBits()
Setup the tool communication number of stop bits that will be configured on the robot. This will not immediately change values on the robot, it will only be stored inside the ToolCommSetup object.
- Parameters
-
stop_bits | must be inside [1,2] or this will throw an exception. |
Definition at line 183 of file tool_communication.h.
◆ setToolVoltage()
void urcl::ToolCommSetup::setToolVoltage |
( |
const ToolVoltage |
tool_voltage | ) |
|
|
inline |
Setup the tool voltage that will be configured on the robot. This will not immediately change values on the robot, it will only be stored inside the ToolCommSetup object.
Definition at line 133 of file tool_communication.h.
◆ setTxIdleChars()
Setup the tool communication number of idle chars for the tx channel that will be configured on the robot. This will not immediately change values on the robot, it will only be stored inside the ToolCommSetup object.
- Parameters
-
tx_idle_chars | must be inside [0.0, 40] or this will throw an exception. |
Definition at line 219 of file tool_communication.h.
◆ baud_rate_
uint32_t urcl::ToolCommSetup::baud_rate_ |
|
private |
◆ baud_rates_allowed_
const std::set<uint32_t> urcl::ToolCommSetup::baud_rates_allowed_ |
|
private |
Initial value:{ 9600,
19200,
38400,
57600,
115200,
static_cast<uint32_t>(1e6),
static_cast<uint32_t>(2e6),
static_cast<uint32_t>(5e6) }
Definition at line 232 of file tool_communication.h.
◆ parity_
Parity urcl::ToolCommSetup::parity_ |
|
private |
◆ rx_idle_chars_
◆ stop_bits_
◆ tool_voltage_
◆ tx_idle_chars_
The documentation for this class was generated from the following files:
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Mon May 26 2025 02:35:58