21 #ifndef PLUGINS_USBPRO_USBSERIALPLUGIN_H_
22 #define PLUGINS_USBPRO_USBSERIALPLUGIN_H_
26 #include "ola/io/Descriptor.h"
27 #include "ola/plugin_id.h"
28 #include "olad/Plugin.h"
29 #include "plugins/usbpro/UsbSerialDevice.h"
30 #include "plugins/usbpro/WidgetDetectorThread.h"
42 string Name()
const {
return PLUGIN_NAME; }
43 string Description()
const;
44 ola_plugin_id Id()
const {
return OLA_PLUGIN_USBPRO; }
46 string PluginPrefix()
const {
return PLUGIN_PREFIX; }
65 bool SetDefaultPreferences();
68 unsigned int GetProFrameLimit();
69 unsigned int GetDmxTriFrameLimit();
70 unsigned int GetUltraDMXProFrameLimit();
72 vector<UsbSerialDevice*> m_devices;
75 static const char DEFAULT_DEVICE_DIR[];
76 static const char DEFAULT_PRO_FPS_LIMIT[];
77 static const char DEFAULT_ULTRA_FPS_LIMIT[];
78 static const char DEVICE_DIR_KEY[];
79 static const char DEVICE_PREFIX_KEY[];
80 static const char IGNORED_DEVICES_KEY[];
81 static const char LINUX_DEVICE_PREFIX[];
82 static const char BSD_DEVICE_PREFIX[];
83 static const char MAC_DEVICE_PREFIX[];
84 static const char PLUGIN_NAME[];
85 static const char PLUGIN_PREFIX[];
86 static const char ROBE_DEVICE_NAME[];
87 static const char TRI_USE_RAW_RDM_KEY[];
88 static const char USBPRO_DEVICE_NAME[];
89 static const char USB_PRO_FPS_LIMIT_KEY[];
90 static const char ULTRA_FPS_LIMIT_KEY[];
91 static const unsigned int MAX_PRO_FPS_LIMIT = 1000;
92 static const unsigned int MAX_ULTRA_FPS_LIMIT = 1000;
97 #endif // PLUGINS_USBPRO_USBSERIALPLUGIN_H_