feat(protocol): derive wire size and airtime at compile time

This commit is contained in:
2026-08-28 14:53:55 +03:00
parent 96ffb91b97
commit 36f234739a
5 changed files with 298 additions and 21 deletions

View File

@ -25,7 +25,7 @@ class Print;
#define riseTimeMin (riseTime - riseTolerance)
#define aroundRise(t) (riseTimeMin < t && t < riseTimeMax)
#define IR_timeout (riseTimeMax * (8 + syncBits + 1)) // us // таймаут в 8 data + 3 sync + 1
constexpr uint16_t IR_ResponseDelay = ((uint16_t)(((bitTime+riseTolerance) * (8 + syncBits + 1))*2.7735))/1000;
constexpr uint16_t IR_ResponseDelay = irproto::kMandatoryInterPacketQuietMs;
class IR_Encoder;
class IR_DecoderRaw : virtual public IR_FOX