FastLED 3.9.15
Loading...
Searching...
No Matches
AutoResearchHelpers.h
Go to the documentation of this file.
1// AutoResearchHelpers.h - Helper functions for AutoResearch.ino
2// Contains utility functions for driver testing, RX channel setup, and result reporting
3
4#pragma once
5
6#include <FastLED.h>
7#include "Common.h"
8#include "AutoResearchTest.h"
9
17bool testRxChannel(
19 int pin_tx,
20 int pin_rx,
21 uint32_t hz,
22 size_t buffer_size);
23
27
45bool autoResearchSetExclusiveDriverByName(const char* name);
46
60void testDriver(
61 const char* driver_name,
62 const fl::NamedTimingConfig& timing_config,
63 int pin_data,
64 size_t num_leds,
65 CRGB* leds,
66 EOrder color_order,
68 fl::span<uint8_t> rx_buffer,
69 int base_strip_size,
70 fl::RxDeviceType rx_type,
71 fl::DriverTestResult& result);
72
75void printSummaryTable(const fl::vector<fl::DriverTestResult>& driver_results);
fl::CRGB leds[NUM_LEDS]
void testDriver(const char *driver_name, const fl::NamedTimingConfig &timing_config, int pin_data, size_t num_leds, CRGB *leds, EOrder color_order, fl::shared_ptr< fl::RxChannel > rx_channel, fl::span< uint8_t > rx_buffer, int base_strip_size, fl::RxDeviceType rx_type, fl::DriverTestResult &result)
Test a specific driver with given timing configuration.
bool testRxChannel(fl::shared_ptr< fl::RxChannel > rx_channel, int pin_tx, int pin_rx, uint32_t hz, size_t buffer_size)
Test RX channel with manual GPIO toggle.
bool autoResearchSetExclusiveDriverByName(const char *name)
AutoResearch-style helper: set an exclusive driver by name.
void printSummaryTable(const fl::vector< fl::DriverTestResult > &driver_results)
Print driver autoresearch summary table.
void autoResearchExpectedEngines()
AutoResearch that expected engines are available for this platform Prints ERROR if any expected engin...
fl::EOrder EOrder
Definition eorder.h:12
fl::CRGB CRGB
Definition crgb.h:25
RxDeviceType
RX device type enumeration.
Definition rx.h:163
Driver test result tracking (moved from ValidationTest.h)
Definition validation.h:68
Chipset timing configuration with name for testing.
Definition Common.h:33