How crazydw4rf/dfplayer-esp32 works
This small Rust library lets an application issue playback and configuration commands to a DFPlayer Mini over ESP-IDF UART. The main path is: application calls the DfPlayer API, command variants are encoded into parameters and a protocol frame, and the frame is written to UART. Query commands are explicitly still TODO. The graph reflects the sampled runtime source; it does not model unsampled behavior.
Main entry points: lib.rs DfPlayer API · command.rs Command encoding · error.rs Errors · parameter.rs Parameter types
Components 7
Other components
- Application
- DfPlayer API
src/lib.rs - Command encoding
src/command.rs - Parameter types
src/parameter.rs - Errors
src/error.rs - ESP-IDF UART
- DFPlayer Mini
Connections 7
- Application → DfPlayer API: calls API
- DfPlayer API → Command encoding: encodes command
- Command encoding → Parameter types: builds parameters
- Command encoding → Errors: returns validation errors
- DfPlayer API → Errors: returns send errors
- DfPlayer API → ESP-IDF UART: writes frame
- ESP-IDF UART → DFPlayer Mini: transfers bytes