Skip to main content

Module hal

Module hal 

Source

Structs§

DmaDoubleBuffer
Double-buffer ping-pong manager for DMA audio streaming.
DutyBuffer
In-memory duty buffer for DMA (no hardware attached).

Traits§

PwmDutySink
Driver hook: apply one duty compare value per audio sample tick.

Functions§

fill_buffer_into
Fill buf via the engine and write each duty to the sink (DMA kick-off helper).
fill_dma_half_buffers
Double-buffer DMA helper to fill half-buffer callbacks (e.g. Embassy / STM32 DMA ISR).
tick_into
Run one engine tick and push duty to the sink.