FastLED 3.9.15
Loading...
Searching...
No Matches
test.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/log/log.h"
5
9struct PinToggle {
10 bool is_high; // Pin state (HIGH or LOW)
11 uint32_t delay_us; // Delay in microseconds after setting state
12};
13
24bool verifyJumperWire(int pin_tx, int pin_rx);
25
38
52 int pin_tx,
53 uint32_t wait_ms);
54
68 size_t edge_count,
69 fl::span<const PinToggle> expected_pattern,
70 uint32_t tolerance_percent);
Centralized logging categories for FastLED hardware interfaces and subsystems.
void executeToggles(fl::RxChannel &rx, fl::span< const PinToggle > toggles, int pin_tx, uint32_t wait_ms)
Execute pin toggles and initialize RX channel for capture.
Definition test.cpp:36
bool testRxChannelSanity(fl::shared_ptr< fl::RxChannel > rx, int pin_tx)
Test RX channel functionality with low-frequency pattern.
Definition test.cpp:160
bool validateEdgeTiming(fl::span< const fl::EdgeTime > edges, size_t edge_count, fl::span< const PinToggle > expected_pattern, uint32_t tolerance_percent)
Validate captured edge timings against expected pattern.
Definition test.cpp:60
bool verifyJumperWire(int pin_tx, int pin_rx)
Verify jumper wire connection between TX and RX pins.
Definition test.cpp:7
uint32_t delay_us
Definition test.h:11
bool is_high
Definition test.h:10
Pin toggle instruction for RX channel testing.
Definition test.h:9