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_
std::string Name() const
Get the plugin name.
Definition: UsbSerialPlugin.h:40
void NewWidget(ArduinoWidget *widget, const UsbProWidgetInformation &information)
Definition: UsbSerialPlugin.cpp:142
Definition: UsbSerialPlugin.h:36
Definition: PluginAdaptor.h:41
Definition: UsbSerialDevice.h:36
ola_plugin_id Id() const
Get the plugin ID of this plugin.
Definition: UsbSerialPlugin.h:42
std::string Description() const
Definition: UsbSerialPlugin.cpp:77
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
std::string PluginPrefix() const
The prefix to use for storing configuration files.
Definition: UsbSerialPlugin.h:44