mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
multiBlind
This commit is contained in:
@ -21,8 +21,9 @@ public:
|
||||
/// @param pin Вывод передатчика
|
||||
/// @param tune Подстройка несущей частоты
|
||||
/// @param decPair Приёмник, для которого отключается приём в момент передачи передатчиком
|
||||
IR_Encoder(uint16_t addr, uint8_t pin, uint8_t decPairCount = 0, void* decPair = nullptr);
|
||||
IR_Encoder(uint16_t addr, uint8_t pin, IR_Decoder* decPair = nullptr);
|
||||
|
||||
void IR_Encoder::setBlindDecoders(IR_Decoder* decoders[], uint8_t count);
|
||||
template<typename T>
|
||||
void sendData(uint16_t addrTo, T& data, bool needAccept = false);
|
||||
void sendData(uint16_t addrTo, uint8_t* data, uint8_t len, bool needAccept = false);
|
||||
@ -49,13 +50,14 @@ private:
|
||||
sync = 3
|
||||
};
|
||||
|
||||
IR_Decoder* decoders;
|
||||
IR_Decoder* decPair;
|
||||
IR_Decoder** blindDecoders;
|
||||
uint8_t decodersCount;
|
||||
|
||||
uint8_t sendLen;
|
||||
uint8_t sendBuffer[dataByteSizeMax] { 0 }; /// @brief Буффер данных для отправки
|
||||
|
||||
volatile bool isSending = false;
|
||||
volatile bool isSending;
|
||||
volatile bool state; /// @brief Текущий уровень генерации
|
||||
|
||||
volatile uint8_t dataByteCounter;
|
||||
|
Reference in New Issue
Block a user