ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::i2s_clockless_led_strip Namespace Reference

Data Structures

class  I2SClocklessLedStrip
 

Functions

 ESPHOME_LOG_TAG (TAG, "i2s_clockless_led_strip")
 
constexpr size_t num_i2s_samples_from_duration_us (uint32_t duration_us)
 
constexpr uint32_t num_i2s_samples_to_duration_us (size_t samples)
 

Variables

constexpr const char *const ERROR_ALLOCATION = "Allocation error"
 
constexpr const char *const ERROR_I2S = "I2S error"
 
constexpr uint32_t I2S_SAMPLE_RATE_HZ = 100000
 
constexpr size_t I2S_BYTES_PER_SAMPLE = 3
 
constexpr uint32_t I2S_RESET_DURATION_US = 300
 
constexpr size_t I2S_RESET_SAMPLES = num_i2s_samples_from_duration_us(I2S_RESET_DURATION_US)
 
constexpr size_t I2S_RESET_BYTES = I2S_RESET_SAMPLES * I2S_BYTES_PER_SAMPLE
 
constexpr uint32_t I2S_BUFFER_DURATION_US_IDEAL = 2500
 
constexpr size_t I2S_BUFFER_SAMPLES = (num_i2s_samples_from_duration_us(I2S_BUFFER_DURATION_US_IDEAL) + 2) / 3 * 3
 
constexpr uint32_t I2S_BUFFER_DURATION_US_ACTUAL = num_i2s_samples_to_duration_us(I2S_BUFFER_SAMPLES)
 

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::i2s_clockless_led_strip::ESPHOME_LOG_TAG ( TAG ,
"i2s_clockless_led_strip"  )

◆ num_i2s_samples_from_duration_us()

size_t esphome::i2s_clockless_led_strip::num_i2s_samples_from_duration_us ( uint32_t duration_us)
constexpr

Definition at line 29 of file i2s_clockless_led_strip.cpp.

◆ num_i2s_samples_to_duration_us()

uint32_t esphome::i2s_clockless_led_strip::num_i2s_samples_to_duration_us ( size_t samples)
constexpr

Definition at line 32 of file i2s_clockless_led_strip.cpp.

Variable Documentation

◆ ERROR_ALLOCATION

const char* const esphome::i2s_clockless_led_strip::ERROR_ALLOCATION = "Allocation error"
constexpr

Definition at line 17 of file i2s_clockless_led_strip.cpp.

◆ ERROR_I2S

const char* const esphome::i2s_clockless_led_strip::ERROR_I2S = "I2S error"
constexpr

Definition at line 18 of file i2s_clockless_led_strip.cpp.

◆ I2S_BUFFER_DURATION_US_ACTUAL

uint32_t esphome::i2s_clockless_led_strip::I2S_BUFFER_DURATION_US_ACTUAL = num_i2s_samples_to_duration_us(I2S_BUFFER_SAMPLES)
constexpr

Definition at line 47 of file i2s_clockless_led_strip.cpp.

◆ I2S_BUFFER_DURATION_US_IDEAL

uint32_t esphome::i2s_clockless_led_strip::I2S_BUFFER_DURATION_US_IDEAL = 2500
constexpr

Definition at line 45 of file i2s_clockless_led_strip.cpp.

◆ I2S_BUFFER_SAMPLES

size_t esphome::i2s_clockless_led_strip::I2S_BUFFER_SAMPLES = (num_i2s_samples_from_duration_us(I2S_BUFFER_DURATION_US_IDEAL) + 2) / 3 * 3
constexpr

Definition at line 46 of file i2s_clockless_led_strip.cpp.

◆ I2S_BYTES_PER_SAMPLE

size_t esphome::i2s_clockless_led_strip::I2S_BYTES_PER_SAMPLE = 3
constexpr

Definition at line 26 of file i2s_clockless_led_strip.cpp.

◆ I2S_RESET_BYTES

size_t esphome::i2s_clockless_led_strip::I2S_RESET_BYTES = I2S_RESET_SAMPLES * I2S_BYTES_PER_SAMPLE
constexpr

Definition at line 38 of file i2s_clockless_led_strip.cpp.

◆ I2S_RESET_DURATION_US

uint32_t esphome::i2s_clockless_led_strip::I2S_RESET_DURATION_US = 300
constexpr

Definition at line 36 of file i2s_clockless_led_strip.cpp.

◆ I2S_RESET_SAMPLES

size_t esphome::i2s_clockless_led_strip::I2S_RESET_SAMPLES = num_i2s_samples_from_duration_us(I2S_RESET_DURATION_US)
constexpr

Definition at line 37 of file i2s_clockless_led_strip.cpp.

◆ I2S_SAMPLE_RATE_HZ

uint32_t esphome::i2s_clockless_led_strip::I2S_SAMPLE_RATE_HZ = 100000
constexpr

Definition at line 25 of file i2s_clockless_led_strip.cpp.