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

Function wave3ClockFrequencyHz

src/fl/channels/wave3.cpp.hpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51// ============================================================================
52
53FL_OPTIMIZE_FUNCTION
54u32 wave3ClockFrequencyHz(const ChipsetTiming& timing) {
55 const u32 period = timing.T1 + timing.T2 + timing.T3;
56 if (period == 0) {
57 return 0;
58 }
59 // clock_hz = 3,000,000,000 / total_period_ns
60 // Use u64 to avoid overflow
61 return static_cast<u32>(3000000000ULL / period);
62}
63
64// ============================================================================
65// LUT Builder from Timing Data

Callers 3

initializeMethod · 0.85
beginTransmissionMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected