Repository navigation
Add public RxChannel API under fl/channels/rx - #2400
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (21)
📝 WalkthroughWalkthroughThe PR introduces a new RX channel API layer ( Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application
participant FastLED
participant RxChannel as RxChannel<br/>(Channel Layer)
participant RxDevice as RxDevice<br/>(Device Layer)
App->>FastLED: addRx(RxChannelConfig)
FastLED->>RxChannel: create(config)
RxChannel->>RxDevice: new RxDevice(backend)
RxDevice-->>RxChannel: initialized
RxChannel-->>FastLED: RxChannelPtr
FastLED-->>App: RxChannelPtr
App->>RxChannel: begin(config)
RxChannel->>RxDevice: (re)create if pin/backend changed
RxDevice-->>RxChannel: ready
RxChannel-->>App: bool
App->>RxChannel: wait(timeout_ms)
RxChannel->>RxDevice: check finished()
RxDevice-->>RxChannel: done?
RxChannel-->>App: RxWaitResult
App->>RxChannel: decode(timing, buffer)
RxChannel->>RxDevice: extract edges
RxDevice-->>RxChannel: decoded data
RxChannel-->>App: result<u32, DecodeError>
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary by CodeRabbit
Release Notes