| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | /* | ||
| 3 | * This file is part of the Falcon Player (FPP) and is Copyright (C) | ||
| 4 | * 2013-2024 by the Falcon Player Developers. | ||
| 5 | * | ||
| 6 | * The Falcon Player (FPP) is free software, and is covered under | ||
| 7 | * multiple Open Source licenses. Please see the included 'LICENSES' | ||
| 8 | * file for descriptions of what files are covered by each license. | ||
| 9 | * | ||
| 10 | * This source file is covered under the GPL v2 as described in the | ||
| 11 | * included LICENSE.GPL file. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #include <map> | ||
| 15 | #include "fpp-json-fwd.h" | ||
| 16 | #include <list> | ||
| 17 | |||
| 18 | #include "ChannelOutput.h" | ||
| 19 | |||
| 20 | class ControlChannelOutput : public ChannelOutput { | ||
| 21 | public: | ||
| 22 | |||
| 23 | ControlChannelOutput(unsigned int startChannel, unsigned int channelCount); | ||
| 24 | ~ControlChannelOutput(); | ||
| 25 | |||
| 26 | virtual int Init(Json::Value config) override; | ||
| 27 | |||
| 28 | virtual int SendData(unsigned char* channelData) override; | ||
| 29 | |||
| 30 | virtual void DumpConfig(void) override; | ||
| 31 | |||
| 32 | 7 | virtual void GetRequiredChannelRanges(const std::function<void(int, int)>& addRange) override { | |
| 33 | 7 | addRange(m_startChannel, m_startChannel); | |
| 34 | 7 | } | |
| 35 | |||
| 36 | private: | ||
| 37 | std::map<uint8_t, std::list<std::string>> presets; | ||
| 38 | uint8_t lastValue = 0; | ||
| 39 | }; | ||
| 40 |