MCPcopy Create free account
hub / github.com/FastLED/FastLED / expectedClocklessWireUs

Function expectedClocklessWireUs

examples/AutoResearch/AutoResearchRemote.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109namespace {
110
111uint32_t expectedClocklessWireUs(const fl::ChipsetTimingConfig& timing,
112 uint32_t max_leds) {
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}
119
120uint32_t maxLaneLeds(const fl::vector<fl::ChannelConfig>& tx_configs) {
121 uint32_t max_leds = 0;

Callers 1

measureTightTimingFunction · 0.85

Calls 1

total_period_nsMethod · 0.80

Tested by

no test coverage detected