This commit is contained in:
2024-12-25 16:56:18 +03:00
parent 6375c4eed5
commit 37522f974f
2 changed files with 9 additions and 5 deletions

View File

@ -4,13 +4,13 @@
// TODO: Отложенная передача после завершения приема
class IR_DecoderRaw;
class IR_Encoder : IR_FOX
class IR_Encoder : public IR_FOX
{
friend IR_DecoderRaw;
public:
private:
uint16_t id; /// @brief Адрес передатчика
// uint16_t id; /// @brief Адрес передатчика
public:
/// @brief Класс передатчика
@ -49,6 +49,7 @@ public:
void sendData(uint16_t addrTo, uint8_t dataByte, bool needAccept = false);
void sendData(uint16_t addrTo, uint8_t *data = nullptr, uint8_t len = 0, bool needAccept = false);
void sendData(uint16_t addrFrom, uint16_t addrTo, uint8_t *data = nullptr, uint8_t len = 0, bool needAccept = false);
void sendAccept(uint16_t addrTo, uint8_t customByte = 0);
void sendRequest(uint16_t addrTo);