Skip to main content

dma_rx_buffer

Macro dma_rx_buffer 

Source
macro_rules! dma_rx_buffer {
    ($rx_size:expr) => { ... };
}
Available on crate feature unstable only.
Expand description

Convenience macro to create a DmaRxBuf from buffer size. The buffer and descriptors are statically allocated and used to create the DmaRxBuf.

ยงUsage

use esp_hal::dma_rx_buffer;

let rx_buf = dma_rx_buffer!(32000)?;