HF-WS2812 Driver 0.1.0-dev
HF-WS2812 ESP32 RMT Driver
Loading...
Searching...
No Matches
esp32_ws2812_test_config.hpp File Reference

Hardware configuration for WS2812 driver on ESP32-C6. More...

#include <cstdint>
Include dependency graph for esp32_ws2812_test_config.hpp:

Go to the source code of this file.

Classes

struct  ws2812_test_config::LedPins
 LED Strip Pin Configuration for ESP32-C6. More...
 
struct  ws2812_test_config::RMTConfig
 RMT Channel Configuration. More...
 
struct  ws2812_test_config::StripSpecs
 LED Strip Specifications. More...
 
struct  ws2812_test_config::SignalTiming
 WS2812 Signal Timing Parameters (nanoseconds) More...
 
struct  ws2812_test_config::SupplyVoltage
 Supply Voltage Specifications (volts) More...
 
struct  ws2812_test_config::PowerSpecs
 Current Consumption Estimates. More...
 
struct  ws2812_test_config::Temperature
 Temperature Specifications (celsius) More...
 
struct  ws2812_test_config::Timing
 Timing Parameters. More...
 
struct  ws2812_test_config::Diagnostics
 Diagnostic Thresholds. More...
 
struct  ws2812_test_config::TestConfig
 Test Configuration. More...
 
struct  ws2812_test_config::AppConfig
 Application-specific Configuration. More...
 

Namespaces

namespace  ws2812_test_config
 

Macros

#define ESP32_WS2812_ENABLE_DETAILED_LOGGING   0
 Enable detailed RMT/LED transaction logging.
 
#define WS2812_VALIDATE_GPIO(pin)    static_assert((pin) >= 0 && (pin) < 30, "Invalid GPIO pin number for ESP32-C6")
 Hardware configuration validation.
 

Detailed Description

Hardware configuration for WS2812 driver on ESP32-C6.

This file contains the actual hardware configuration that is used by the HAL and example applications. Modify these values to match your hardware setup.

Note
The WS2812 driver uses Kconfig for default values. This test config provides compile-time constants that can override Kconfig defaults or be used when Kconfig is not available.

Macro Definition Documentation

◆ ESP32_WS2812_ENABLE_DETAILED_LOGGING

#define ESP32_WS2812_ENABLE_DETAILED_LOGGING   0

Enable detailed RMT/LED transaction logging.

When enabled (set to 1), the WS2812 driver will log detailed information about each LED update including:

  • RMT timing parameters
  • Pixel data buffer contents
  • Effect animation state

When disabled (set to 0), only basic error logging is performed.

Default: 0 (disabled) - Set to 1 to enable for debugging

◆ WS2812_VALIDATE_GPIO

#define WS2812_VALIDATE_GPIO ( pin)     static_assert((pin) >= 0 && (pin) < 30, "Invalid GPIO pin number for ESP32-C6")

Hardware configuration validation.

Compile-time checks to ensure configuration is valid.

Helper macro for compile-time GPIO pin validation