| 109 | namespace { |
| 110 | |
| 111 | uint32_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 | |
| 120 | uint32_t maxLaneLeds(const fl::vector<fl::ChannelConfig>& tx_configs) { |
| 121 | uint32_t max_leds = 0; |
no test coverage detected