Function esp_idf_sys::esp_lcd_i80_alloc_draw_buffer
source · pub unsafe extern "C" fn esp_lcd_i80_alloc_draw_buffer(
io: esp_lcd_panel_io_handle_t,
size: usize,
caps: u32,
) -> *mut c_void
Expand description
@brief Allocate a draw buffer that can be used by I80 interfaced LCD panel
@note This function differs from the normal ‘heap_caps_*’ functions in that it can also automatically handle the alignment required by DMA burst, cache line size, etc.
@param[in] io Panel IO handle, created by esp_lcd_new_panel_io_i80()
@param[in] size Size of memory to be allocated
@param[in] caps Bitwise OR of MALLOC_CAP_* flags indicating the type of memory desired for the allocation
@return Pointer to a new buffer of size ‘size’ with capabilities ‘caps’, or NULL if allocation failed