Skip to content

Move RX interface under fl/channels - #2401

Merged
zackees merged 2 commits into
masterfrom
codex/move-rx-interface-to-channels
Apr 24, 2026
Merged

zackees merged 2 commits into
masterfrom
codex/move-rx-interface-to-channels

Conversation

@zackees

@zackees zackees commented Apr 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • move the public RX interface header to fl/channels/rx.h
  • keep the RX implementation in fl/channels/rx/device.cpp.hpp
  • update include sites and unity build wiring to match the new layout

Verification

  • g++ -std=gnu++17 -Isrc -fsyntax-only with #include fl/channels/rx.h and #include fl/channels/rx/channel.h

Summary by CodeRabbit

  • Refactor
    • Consolidated RX channel/device API under a unified RX header, updating public include surface.
  • Documentation
    • Updated RX header docs and usage examples to reflect the new umbrella RX header.
  • Tests
    • Updated tests and test drivers to use the new RX header.
  • Chores
    • Adjusted build aggregation to include the RX device implementation in the rx build unit.

@coderabbitai

coderabbitai Bot commented Apr 24, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b48118a8-4ef4-46ab-b4f1-6fa14e3f5dab

📥 Commits

Reviewing files that changed from the base of the PR and between f26e67f and d42f672.

📒 Files selected for processing (1)
  • src/fl/build/fl.cpp
💤 Files with no reviewable changes (1)
  • src/fl/build/fl.cpp

📝 Walkthrough

Walkthrough

The PR replaces direct fl/rx_device.h includes with the new umbrella fl/channels/rx.h across headers, platform drivers, tests, and unity-build files, and adjusts unity build includes to compile the new rx device implementation unit.

Changes

Cohort / File(s) Summary
Sketch & top-level
src/FastLED.h
Swap sketch-facing include from fl/rx_device.h to fl/channels/rx.h.
Unity/build units
src/fl/_build.cpp.hpp, src/fl/build/fl.cpp, src/fl/channels/rx/_build.cpp.hpp
Remove fl/rx_device.cpp.hpp from fl unity build; add fl/channels/rx/device.cpp.hpp to rx unity header.
RX umbrella & core channel
src/fl/channels/rx.h, src/fl/channels/rx/channel.h, src/fl/channels/rx/device.cpp.hpp
Rename/header docs updated; umbrella now includes shared_ptr and span; channel/device files include the new umbrella.
Platform: Teensy (FlexPWM)
src/platforms/arm/teensy/.../flexpwm_rx_channel.h, src/platforms/arm/teensy/.../rx_flexpwm_channel.h
Replace fl/rx_device.h with fl/channels/rx.h in Teensy FlexPWM RX headers.
Platform: ESP32 drivers & docs
src/platforms/esp/32/drivers/gpio_isr_rx/gpio_isr_rx.h, .../gpio_isr_rx_mcpwm.h, .../rmt_rx/rmt_rx_channel.h, .../gpio_isr_rx/README.md
Migrate includes and README example to the new umbrella header.
Platform: shared & stub
src/platforms/shared/rx_device_dummy.h, src/platforms/shared/rx_device_native.h, src/platforms/shared/rx_device_native.cpp.hpp, src/platforms/stub/stub_gpio.h
Switch include directives to fl/channels/rx.h.
Tests
tests/fl/rx_device.cpp, tests/platforms/esp/32/drivers/uart/channel_driver_uart.cpp
Update test includes to use fl/channels/rx.h instead of fl/rx_device.h.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

Possibly related PRs

Poem

🐰 I hopped through include trees today,
Swapped old branches out of the way,
rx_device waved goodbye,
channels/rx hops high,
Build carrots lined up — hip hooray!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Move RX interface under fl/channels' directly summarizes the main change: relocating the RX public interface header from fl/rx_device.h to fl/channels/rx.h.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/move-rx-interface-to-channels

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant