Repository navigation
docs(i2s): move wave8-encoding docs from engine to peripheral (#3526) - #3549
Conversation
Clarifies the layering for the classic-ESP32 I2S modern engine: `packScratchBuffer()` stays as a linear byte concatenation; the wave8 pulse-major encoding (a hardware-specific DMA layout) is the peripheral impl's responsibility. This lets the mock peripheral capture raw channel bytes for byte-value-sensitive tests without depending on wave8 encoding details. Also drops two leftover includes from an aborted attempt to inline wave8 encoding in the engine. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
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 (2)
📝 WalkthroughWalkthroughThis PR updates comments and docstrings in the ESP32 I2S channel engine files, replacing descriptions of a planned two-stage ("Staging") implementation with documentation of the final architecture ("Layering"), where the engine copies raw bytes to a scratch buffer and the peripheral performs wave8 encoding during transmit. No logic changes. ChangesDocumentation Update
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related issues
Possibly related PRs
✨ 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
packScratchBuffer()docs now reflect that it is a linear byte concatenation and NOT a placeholder for wave8 encoding.fl/channels/wave8.h,platforms/esp/32/drivers/i2s/wave8_encoder_i2s1.h) from an aborted attempt to inline wave8 in the engine's pack step.Corrects the ##Staging language in the class docstring — replaces "Stage 2 replaces the body of packScratchBuffer()" with the layering rationale.
Part of the #3526 meta issue for the classic-ESP32 I2S bring-up.
Test plan
bash test channel_engine_i2s_esp32dev— passesbash lint --cpp— clean🤖 Generated with Claude Code
Summary by CodeRabbit