| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | /* | ||
| 3 | * This file is part of the Falcon Player (FPP) and is Copyright (C) | ||
| 4 | * 2013-2022 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 "ThreadedChannelOutput.h" | ||
| 15 | #include "fpp-json-fwd.h" | ||
| 16 | #include "util/GPIOUtils.h" | ||
| 17 | |||
| 18 | class GPIO595Output : public ThreadedChannelOutput { | ||
| 19 | public: | ||
| 20 | GPIO595Output(unsigned int startChannel, unsigned int channelCount); | ||
| 21 | virtual ~GPIO595Output(); | ||
| 22 | |||
| 23 | virtual int Init(Json::Value config) override; | ||
| 24 | |||
| 25 | virtual int Close(void) override; | ||
| 26 | |||
| 27 | virtual int RawSendData(unsigned char* channelData) override; | ||
| 28 | |||
| 29 | virtual void DumpConfig(void) override; | ||
| 30 | |||
| 31 | ✗ | virtual void GetRequiredChannelRanges(const std::function<void(int, int)>& addRange) override { | |
| 32 | ✗ | addRange(m_startChannel, m_startChannel + m_channelCount - 1); | |
| 33 | ✗ | } | |
| 34 | |||
| 35 | private: | ||
| 36 | const PinCapabilities* m_clockPin; | ||
| 37 | const PinCapabilities* m_dataPin; | ||
| 38 | const PinCapabilities* m_latchPin; | ||
| 39 | }; | ||
| 40 |