Function esp_idf_sys::esp_dma_is_buffer_alignment_satisfied

source ยท
pub unsafe extern "C" fn esp_dma_is_buffer_alignment_satisfied(
    ptr: *const c_void,
    size: usize,
    dma_mem_info: esp_dma_mem_info_t,
) -> bool
Expand description

@brief Helper function to check if a DMA buffer pointer and size meet both hardware alignment requirements and custom alignment requirements

@param[in] ptr Pointer to the buffer @param[in] size Size of the buffer @param[in] dma_mem_info DMA and memory info, see esp_dma_mem_info_t

@return - True: Buffer is aligned - False: Buffer is not aligned, or buffer is not DMA capable