FastLED 3.9.15
Loading...
Searching...
No Matches
fl::EdgeTime Struct Reference

Detailed Description

Universal edge timing representation (platform-agnostic)

Represents a single edge transition with duration in nanoseconds. RX devices convert their internal format (e.g., RMT ticks) to this universal format for debugging and analysis.

Memory layout: 32-bit packed bit field

  • 31 bits: Duration in nanoseconds (max 2147483647ns ~= 2.1 seconds)
  • 1 bit: High/low level flag

Example sequence for WS2812B bit pattern:

  • Bit 0: {high: true, ns: 400}, {high: false, ns: 850}
  • Bit 1: {high: true, ns: 800}, {high: false, ns: 450}

Definition at line 34 of file rx.h.

#include <rx.h>

Public Member Functions

constexpr EdgeTime () FL_NOEXCEPT
 Default constructor (low, 0ns)
 
constexpr EdgeTime (bool high_level, u32 ns_duration) FL_NOEXCEPT
 Construct from high/low state and duration.
 

Public Attributes

u32 high: 1
 High/low level (1 bit: 1=high, 0=low)
 
u32 ns: 31
 Duration in nanoseconds (31 bits, max ~2.1s)
 

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