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; }
42 ola_plugin_id
Id()
const {
return OLA_PLUGIN_USBPRO; }
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 DEVICE_DIR_KEY[];
75 static const char DEVICE_PREFIX_KEY[];
76 static const char IGNORED_DEVICES_KEY[];
77 static const char LINUX_DEVICE_PREFIX[];
78 static const char BSD_DEVICE_PREFIX[];
79 static const char MAC_DEVICE_PREFIX[];
80 static const char PLUGIN_NAME[];
81 static const char PLUGIN_PREFIX[];
82 static const char ROBE_DEVICE_NAME[];
83 static const char TRI_USE_RAW_RDM_KEY[];
84 static const char USBPRO_DEVICE_NAME[];
85 static const char USB_PRO_FPS_LIMIT_KEY[];
86 static const char ULTRA_FPS_LIMIT_KEY[];
88 static const uint8_t DEFAULT_PRO_FPS_LIMIT = 190;
89 static const uint8_t DEFAULT_ULTRA_FPS_LIMIT = 40;
90 static const unsigned int MAX_PRO_FPS_LIMIT = 1000;
91 static const unsigned int MAX_ULTRA_FPS_LIMIT = 1000;
96 #endif // PLUGINS_USBPRO_USBSERIALPLUGIN_H_