| 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 | |||
| 17 | class ILI9488Output : public ThreadedChannelOutput { | ||
| 18 | public: | ||
| 19 | ILI9488Output(unsigned int startChannel, unsigned int channelCount); | ||
| 20 | virtual ~ILI9488Output(); | ||
| 21 | |||
| 22 | virtual int Init(Json::Value config) override; | ||
| 23 | virtual int Close(void) override; | ||
| 24 | |||
| 25 | virtual int RawSendData(unsigned char* channelData) override; | ||
| 26 | |||
| 27 | virtual void DumpConfig(void) override; | ||
| 28 | |||
| 29 | ✗ | virtual void GetRequiredChannelRanges(const std::function<void(int, int)>& addRange) override { | |
| 30 | ✗ | addRange(m_startChannel, m_startChannel + m_pixels * 3 - 1); | |
| 31 | ✗ | } | |
| 32 | |||
| 33 | private: | ||
| 34 | int m_initialized; | ||
| 35 | int m_rows; | ||
| 36 | int m_cols; | ||
| 37 | int m_pixels; | ||
| 38 | int m_bpp; | ||
| 39 | void* m_gpio_map; | ||
| 40 | |||
| 41 | unsigned int m_dataValues[256]; | ||
| 42 | unsigned int m_clearWRXDataBits; | ||
| 43 | unsigned int m_bitDCX; | ||
| 44 | unsigned int m_bitWRX; | ||
| 45 | |||
| 46 | volatile unsigned int* m_gpio; | ||
| 47 | |||
| 48 | bool ILI9488_Init(void); | ||
| 49 | void ILI9488_SendByte(unsigned char byte); | ||
| 50 | void ILI9488_Command(unsigned char cmd); | ||
| 51 | void ILI9488_Data(unsigned char cmd); | ||
| 52 | void ILI9488_Cleanup(void); | ||
| 53 | |||
| 54 | void SetColumnRange(unsigned int x1, unsigned int x2); | ||
| 55 | void SetRowRange(unsigned int y1, unsigned int y2); | ||
| 56 | void SetRegion(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2); | ||
| 57 | }; | ||
| 58 |