Additional Inherited Members |
static ThreadId | Self () |
Constructor & Destructor Documentation
Constructor
- Parameters
-
handler | the NewWidgetHandler object to call when we find new widgets. |
ss | the SelectServer to use when calling the handler object. This is also used by some of the widgets so it should be the same SelectServer that you intend to use the Widgets with. |
usb_pro_timeout | the time in ms between each USB Pro discovery message. |
robe_timeout | the time in ms between each Robe discovery message. |
Member Function Documentation
Indicate that this widget is no longer is use and can be deleted.
bool ola::plugin::usbpro::WidgetDetectorThread::Join |
( |
void * |
ptr | ) |
|
|
virtual |
Start the discovery sequence for a widget.
void * ola::plugin::usbpro::WidgetDetectorThread::Run |
( |
| ) |
|
|
virtual |
bool ola::plugin::usbpro::WidgetDetectorThread::RunScan |
( |
| ) |
|
|
protectedvirtual |
Scan for widgets, and launch the discovery process for any that we don't already know about.
void ola::plugin::usbpro::WidgetDetectorThread::SetDeviceDirectory |
( |
const std::string & |
directory | ) |
|
Set the directory in which to look for usb widgets. This should be called before Run() since it doesn't do any locking.
- Parameters
-
directory | the directory path e.g. /dev |
void ola::plugin::usbpro::WidgetDetectorThread::SetDevicePrefixes |
( |
const std::vector< std::string > & |
prefixes | ) |
|
Set the list of prefixes to consider as possible devices. This should be called before Run() since it doesn't do any locking.
- Parameters
-
prefixes | a vector of strings e.g. ["ttyUSB"] |
void ola::plugin::usbpro::WidgetDetectorThread::SetIgnoredDevices |
( |
const std::vector< std::string > & |
devices | ) |
|
Set the list of devices we wish to ignore
- Parameters
-
devices | a list of devices paths, e.g. /dev/ttyUSB0.NNNNNN |
void ola::plugin::usbpro::WidgetDetectorThread::WaitUntilRunning |
( |
| ) |
|
Block until the thread is up and running
The documentation for this class was generated from the following files: