Align main with fix-DMA-and-Analyzer (encoder API, sketch, .gitignore)

Restore IR_SendResult + sendDataFULL, fix IR-protocol.ino, match .gitignore to analyzer branch.

Made-with: Cursor
This commit is contained in:
2026-04-17 15:07:54 +03:00
parent a75fd0c564
commit b4f644c258
4 changed files with 91 additions and 103 deletions

View File

@ -21,8 +21,7 @@ class IR_Encoder : public IR_FOX
static IR_Encoder *last;
IR_Encoder *next;
public:
private:
// uint16_t id; /// @brief Адрес передатчика
static HardwareTimer* IR_Timer;
using IR_TxGateRun = IrTxGateRun;
@ -97,9 +96,10 @@ public:
}
void rawSend(uint8_t *ptr, uint8_t len);
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);
IR_SendResult sendData(uint16_t addrTo, uint8_t dataByte, bool needAccept = false);
IR_SendResult sendData(uint16_t addrTo, uint8_t *data = nullptr, uint8_t len = 0, bool needAccept = false);
IR_SendResult sendDataFULL(uint16_t addrFrom, uint16_t addrTo, uint8_t *data = nullptr, uint8_t len = 0, bool needAccept = false);
IR_SendResult sendAccept(uint16_t addrTo, uint8_t customByte = 0);
IR_SendResult sendRequest(uint16_t addrTo);