21 #ifndef PLUGINS_SPI_SPIPORT_H_
22 #define PLUGINS_SPI_SPIPORT_H_
26 #include "olad/Port.h"
27 #include "plugins/spi/SPIDevice.h"
28 #include "plugins/spi/SPIOutput.h"
40 std::string GetDeviceLabel()
const;
41 bool SetDeviceLabel(
const std::string &device_label);
42 uint8_t GetPersonality()
const;
43 bool SetPersonality(uint16_t personality);
44 uint16_t GetStartAddress()
const;
45 bool SetStartAddress(uint16_t start_address);
46 unsigned int PixelCount()
const;
62 #endif // PLUGINS_SPI_SPIPORT_H_
bool WriteDMX(const DmxBuffer &buffer, uint8_t priority)
Write DMX data to this port.
Definition: SPIPort.cpp:79
Definition: SPIDevice.h:40
Definition: SPIOutput.h:41
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition: RDMCommand.h:233
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
std::string Description() const
Fetch the string description for a Port.
Definition: SPIPort.cpp:75
A class used to hold a single universe of DMX data.
Definition: SPIOutput.h:39
The base class for all 1 argument callbacks.
Definition: Callback.h:982
void RunFullDiscovery(ola::rdm::RDMDiscoveryCallback *callback)
This is a noop for ports that don't support RDM.
Definition: SPIPort.cpp:83
void RunIncrementalDiscovery(ola::rdm::RDMDiscoveryCallback *callback)
This is a noop for ports that don't support RDM.
Definition: SPIPort.cpp:87
Represents a RDM UID.
Definition: UID.h:57
Definition: SPIBackend.h:40
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
void SendRDMRequest(ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *callback)
Handle an RDMRequest, subclasses can implement this to support RDM.
Definition: SPIPort.cpp:91