FastLED 3.9.15
Loading...
Searching...
No Matches
fl::TimingTraits< TIMING > Struct Template Reference

Detailed Description

template<typename TIMING>
struct fl::TimingTraits< TIMING >

Compile-time trait to extract timing values from timing types.

Template Parameters
TIMINGTiming type with enum-based T1, T2, T3 values
Note
Provides constexpr static members for T1, T2, T3 timing values

Usage:

template <typename TIMING, EOrder RGB_ORDER>
class ClocklessController {
static constexpr uint32_t T1 = TimingTraits<TIMING>::T1;
static constexpr uint32_t T2 = TimingTraits<TIMING>::T2;
static constexpr uint32_t T3 = TimingTraits<TIMING>::T3;
// ... use T1, T2, T3 in template instantiations
};
fl::u32 uint32_t
Definition s16x16x4.h:219
static constexpr u32 T2
Additional high time for bit 1 (nanoseconds)
static constexpr u32 T3
Low tail duration (nanoseconds)
static constexpr u32 T1
High time for bit 0 (nanoseconds)

Definition at line 35 of file timing_traits.h.

#include <timing_traits.h>

Static Public Attributes

static constexpr u32 BIT_PERIOD = TIMING::T1 + TIMING::T2 + TIMING::T3
 Total bit period (T1 + T2 + T3) in nanoseconds.
 
static constexpr u32 RESET = TIMING::RESET
 Reset/latch time (microseconds)
 
static constexpr u32 T1 = TIMING::T1
 High time for bit 0 (nanoseconds)
 
static constexpr u32 T2 = TIMING::T2
 Additional high time for bit 1 (nanoseconds)
 
static constexpr u32 T3 = TIMING::T3
 Low tail duration (nanoseconds)
 

The documentation for this struct was generated from the following file: