esp_dma_calculate_node_count() function
Calculate the number of DMA linked list nodes required for a given buffer size
Arguments
buffer_size
Total size of the buffer
buffer_alignment
Alignment requirement for the buffer
max_buffer_size_per_node
Maximum buffer size that each node can handle
Return value
Number of DMA linked list nodes required