FastLED 3.9.15
Loading...
Searching...
No Matches
Common.h
Go to the documentation of this file.
1// Common.h - Common data structures for AutoResearch.ino
2// Shared types used across multiple files
3
4#pragma once
5
6#include <FastLED.h>
7
8// ============================================================================
9// Test Configuration Constants
10// ============================================================================
11// Strip sizes are now fully runtime-configurable via JSON-RPC commands:
12// - setStripSizeValues(short, long)
13// - setStripSizes({small: bool, large: bool})
14// Default values are set in TestMatrixConfig constructor
15
16namespace fl {
17
21 fl::string failure_details; // e.g., "Byte mismatch at offset 5: expected 0xFF, got 0x00"
22 uint32_t frame_number; // Frame/iteration number when failure occurred
23
24 DriverFailureInfo(const char* name, const char* details, uint32_t frame)
25 : driver_name(name), failure_details(details), frame_number(frame) {}
26};
27
42
43// Legacy test matrix structures removed - validation now uses one-test-per-RPC architecture
44// See src/fl/channels/validation.h for the new SingleTestConfig/SingleTestResult API
45
46} // namespace fl
ClocklessEncoder
Identifies which encoder to use for clockless chipsets in the Channel API.
@ CLOCKLESS_ENCODER_WS2812
Default, no preamble (WS2812 and compatible)
fl::u32 uint32_t
Definition s16x16x4.h:219
Base definition for an LED controller.
Definition crgb.hpp:179
Runtime bit-period timing for a clockless chipset.
uint32_t frame_number
Definition Common.h:22
fl::string failure_details
Definition Common.h:21
fl::string driver_name
Definition Common.h:20
DriverFailureInfo(const char *name, const char *details, uint32_t frame)
Definition Common.h:24
fl::ClocklessEncoder encoder
Definition Common.h:35
const char * name
Definition Common.h:36
fl::ChipsetTimingConfig timing
Definition Common.h:34
NamedTimingConfig(const fl::ChipsetTimingConfig &timing_, const char *name_, fl::ClocklessEncoder enc=fl::ClocklessEncoder::CLOCKLESS_ENCODER_WS2812)
Definition Common.h:38