21 #ifndef PLUGINS_SPI_SPIPLUGIN_H_
22 #define PLUGINS_SPI_SPIPLUGIN_H_
26 #include "olad/Plugin.h"
27 #include "ola/plugin_id.h"
36 :
Plugin(plugin_adaptor) {}
38 string Name()
const {
return PLUGIN_NAME; }
39 string Description()
const;
40 ola_plugin_id Id()
const {
return OLA_PLUGIN_SPI; }
41 string PluginPrefix()
const {
return PLUGIN_PREFIX; }
44 std::vector<class SPIDevice*> m_devices;
48 bool SetDefaultPreferences();
49 void FindMatchingFiles(
const string &directory,
50 const vector<string> &prefixes,
51 vector<string> *files);
53 static const char DEFAULT_BASE_UID[];
54 static const char DEFAULT_SPI_DEVICE_PREFIX[];
55 static const char PLUGIN_NAME[];
56 static const char PLUGIN_PREFIX[];
57 static const char SPI_BASE_UID_KEY[];
58 static const char SPI_DEVICE_PREFIX_KEY[];
63 #endif // PLUGINS_SPI_SPIPLUGIN_H_