FastLED 3.9.15
Loading...
Searching...
No Matches

◆ expectedClocklessWireUs()

uint32_t anonymous_namespace{AutoResearchRemote.cpp}::expectedClocklessWireUs ( const fl::ChipsetTimingConfig & timing,
uint32_t max_leds )

Definition at line 111 of file AutoResearchRemote.cpp.

112 {
113 const uint64_t bit_period_ns = timing.total_period_ns();
114 const uint64_t payload_ns =
115 static_cast<uint64_t>(max_leds) * 24ULL * bit_period_ns;
116 return static_cast<uint32_t>((payload_ns + 999ULL) / 1000ULL) +
117 timing.reset_us;
118}
u32 reset_us
Reset/latch time (microseconds)
constexpr u32 total_period_ns() const FL_NOEXCEPT
Get total bit period (T1 + T2 + T3)

References fl::ChipsetTimingConfig::reset_us, and fl::ChipsetTimingConfig::total_period_ns().

Referenced by measureTightTiming().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: