Function esp_idf_hal::sys::lldesc_setup_link_constrained
source ยท pub unsafe extern "C" fn lldesc_setup_link_constrained(
out_desc_array: *mut lldesc_s,
buffer: *const c_void,
size: i32,
max_desc_size: i32,
isrx: bool,
)
Expand description
Generate a linked list pointing to a (huge) buffer in an descriptor array.
The caller should ensure there is enough size to hold the array, by calling
lldesc_get_required_num_constrained
with the same max_desc_size argument.
@param[out] out_desc_array Output of a descriptor array, the head should be fed to the DMA. @param buffer Buffer for the descriptors to point to. @param size Size (or length for TX) of the buffer @param max_desc_size Maximum length of each descriptor @param isrx The RX DMA may require the buffer to be word-aligned, set to true for a RX link, otherwise false.