|
Robot Raconteur Core C++ Library
|
Transport for USB, Bluetooth, and PCIe hardware devices. More...
#include <HardwareTransport.h>
Public Member Functions | |
| HardwareTransport (const boost::shared_ptr< RobotRaconteurNode > &node=RobotRaconteurNode::sp()) | |
| Construct a new HardwareTransport. | |
| virtual int32_t | GetMaxMessageSize () |
| Get the maximum serialized message size. | |
| virtual void | SetMaxMessageSize (int32_t size) |
| Set the maximum serialized message size. | |
| virtual bool | GetDisableMessage4 () |
| Get disable Message Format Version 4. | |
| virtual void | SetDisableMessage4 (bool d) |
| Set disable Message Format Version 4. | |
| virtual bool | GetDisableStringTable () |
| Get disable string table. | |
| virtual void | SetDisableStringTable (bool d) |
| Set disable string table. | |
| virtual bool | GetDisableAsyncMessageIO () |
| Get if async message io is disabled. | |
| virtual void | SetDisableAsyncMessageIO (bool d) |
| Get if async message io is disabled. | |
| virtual void | AddUsbDevice (uint16_t vid, uint16_t pid, uint8_t interface_) |
| Add a USB VID/PID pair to the search list. | |
| virtual void | RemoveUsbDevice (uint16_t vid, uint16_t pid, uint8_t interface_) |
| Remove a registered USB VID/PID pair. | |
| virtual bool | IsValidUsbDevice (uint16_t vid, uint16_t pid, uint8_t interface_) |
| Check if VID/PID pair has been registered. | |
Transport for USB, Bluetooth, and PCIe hardware devices.
WARNING: THE HARDWARE TRANSPORT IS EXPERIMENTAL!
The HardwareTransport is disabled by default by the node setup classes. Use --robotraconteur-hardware-enable=true option to enable.
It is recommended that ClientNodeSetup, ServerNodeSetup, or SecureServerNodeSetup be used to construct this class.
See robotraconteur_url for more information on URLs.
Contact Wason Technology, LLC for more information on the hardware transport.
| RobotRaconteur::HardwareTransport::HardwareTransport | ( | const boost::shared_ptr< RobotRaconteurNode > & | node = RobotRaconteurNode::sp() | ) |
Construct a new HardwareTransport.
Must use boost::make_shared<HardwareTransport>()
The use of RobotRaconteurNodeSetup and subclasses is recommended to construct transports.
The transport must be registered with the node using RobotRaconteurNode::RegisterTransport() after construction.
| node | The node that will use the transport. Default is the singleton node |
|
virtual |
Add a USB VID/PID pair to the search list.
| vid | The USB VID |
| pid | The USB PID |
| interface_ | The Robot Raconteur USB interface number |
|
virtual |
Get if async message io is disabled.
Async message io has better memory handling, at the expense of slightly higher latency.
Default: Async io enabled
|
virtual |
Get disable Message Format Version 4.
Message Format Version 2 will be used
Default: Message V4 is enabled
|
virtual |
Get disable string table.
Default: false
RobotRaconteurNodeSetup and its subclasses will disable the string table by default
|
virtual |
Get the maximum serialized message size.
Default: 10 MB
|
virtual |
Check if VID/PID pair has been registered.
| vid | The USB VID |
| pid | The USB PID |
| interface_ | The Robot Raconteur USB interface number |
|
virtual |
Remove a registered USB VID/PID pair.
| vid | The USB VID |
| pid | The USB PID |
| interface_ | The Robot Raconteur USB interface number |
|
virtual |
Get if async message io is disabled.
Async message io has better memory handling, at the expense of slightly higher latency.
Default: Async io enabled
|
virtual |
Set disable Message Format Version 4.
Message Format Version 2 will be used
Default: Message V4 is enabled
| d | If true, Message V4 is disabled |
|
virtual |
Set disable string table.
Default: false
RobotRaconteurNodeSetup and its subclasses will disable the string table by default
| d | If true, string table is disabled |
|
virtual |
Set the maximum serialized message size.
Default: 10 MB
| size | The size in bytes |