21 #ifndef PLUGINS_SPIDMX_SPIDMXWIDGET_H_ 22 #define PLUGINS_SPIDMX_SPIDMXWIDGET_H_ 24 #include <linux/spi/spidev.h> 50 std::string
Name()
const {
return m_path; }
51 std::string Description()
const {
return m_path; }
66 bool ReadWrite(uint8_t *tx_buf, uint8_t *rx_buf, uint32_t blocklength);
72 const std::string m_path;
81 static const int NOT_OPEN = -2;
84 static const int FAILED_OPEN = -1;
87 static const uint32_t SPI_SPEED = 2000000;
90 static const uint16_t SPI_DELAY = 0;
93 static const uint8_t SPI_BITS_PER_WORD = 8;
96 static const uint8_t SPI_CS_CHANGE = 0;
99 static const uint16_t SPI_PAD = 0;
102 static const uint8_t SPI_MODE = SPI_MODE_0;
110 #endif // PLUGINS_SPIDMX_SPIDMXWIDGET_H_
A class used to hold a single universe of DMX data.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44