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