hyperion.ng
LedDeviceTpm2net.h
1 #pragma once
2 
3 // hyperion includes
4 #include "ProviderUdp.h"
5 
6 #define TPM2_DEFAULT_PORT 65506
7 
12 {
13 public:
19  LedDeviceTpm2net(const QJsonObject &deviceConfig);
20 
26  virtual bool init(const QJsonObject &deviceConfig);
27 
29  static LedDevice* construct(const QJsonObject &deviceConfig);
30 
31 private:
38  virtual int write(const std::vector<ColorRgb> &ledValues);
39 
40  int _tpm2_max;
41  int _tpm2ByteCount;
42  int _tpm2TotalPackets;
43  int _tpm2ThisPacket;
44 };
LedDeviceTpm2net(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceTpm2net.cpp:3
The ProviderUdp implements an abstract base-class for LedDevices using UDP packets.
Definition: ProviderUdp.h:15
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceTpm2net.cpp:9
Implementation of the LedDevice interface for sending led colors via udp tpm2.net packets...
Definition: LedDeviceTpm2net.h:11
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceTpm2net.cpp:20