macro_rules! dma_tx_buffer {
($tx_size:expr, burst = $burst:ident) => { ... };
($tx_size:expr) => { ... };
}Available on crate feature
unstable only.Expand description
Convenience macro to create a DmaTxBuf from buffer size. The buffer and
descriptors are statically allocated and used to create the DmaTxBuf.
With burst = SizeN, the macro creates the buffer with
DmaTxBuf::new_with_min_burst. See
BurstSize.
ยงExamples
use esp_hal::dma_tx_buffer;
let tx_buf = dma_tx_buffer!(32000)?;
// A buffer with a minimum burst of 64 bytes.
let tx_buf = dma_tx_buffer!(32000, burst = Size64)?;