Function esp_idf_svc::sys::xRingbufferCreateWithCaps
source · pub unsafe extern "C" fn xRingbufferCreateWithCaps(
xBufferSize: usize,
xBufferType: u32,
uxMemoryCaps: u32,
) -> *mut c_void
Expand description
@brief Creates a ring buffer with specific memory capabilities
This function is similar to xRingbufferCreate(), except that it allows the memory allocated for the ring buffer to have specific capabilities (e.g., MALLOC_CAP_INTERNAL).
@note A queue created using this function must only be deleted using vRingbufferDeleteWithCaps() @param[in] xBufferSize Size of the buffer in bytes @param[in] xBufferType Type of ring buffer, see documentation. @param[in] uxMemoryCaps Memory capabilities of the queue’s memory (see esp_heap_caps.h) @return Handle to the created ring buffer or NULL on failure.