TB2026-YDS Firmware
Loading...
Searching...
No Matches
Services

High-level services built on top of the drivers and bsp layers. More...

Collaboration diagram for Services:

Topics

 Audio sink interface
 Output-agnostic PCM sink: the pipeline writes frames here without knowing whether they go to the wired DAC or to Bluetooth A2DP.
 Audio decoder
 Decode an MP3 or WAV file into PCM for an Audio sink interface.
 Audio pipeline
 Real-time task feeding PCM from a source to an Audio sink interface.
 Playback transport
 play/pause/resume/stop/next/prev over the playlist, with auto-advance on EOF.
 Playlist service
 Current track + next/prev navigation over the storage index (no hardware).
 Track metadata
 Read tags + format from a file without playing it (for now_playing and the browser).
 Volume service
 Sole writer of the PCM5242 digital volume (pot -> DAC, with L/R balance).
 Autonomy test service
 Self-measured battery autonomy: workload run + discharge-curve logging.
 Bluetooth service
 Classic Bluetooth A2DP source stack and connection management.
 Diagnostics service
 Opt-in FreeRTOS stack / run-time / heap measurement for the characterisation campaign.
 Input service
 Buttons -> ui_event_t queue, interrupt-driven and discrete (one press, one event).
 Input logic (pure)
 Debounce + press-edge detection + button->ui_event mapping, no hardware.
 Maintenance service
 Shared low-priority task that periodically drives background chores.
 Power service
 Battery state, charge detection, low-battery policy, and power on/off.
 Settings service
 Persistent key/value store for user preferences (NVS-backed).
 Storage service
 Enumerate the SD card's playable tracks and serve them by index.

Detailed Description

High-level services built on top of the drivers and bsp layers.