Function esp_idf_svc::hal::sys::xQueueCreateWithCaps

source ·
pub unsafe extern "C" fn xQueueCreateWithCaps(
    uxQueueLength: u32,
    uxItemSize: u32,
    uxMemoryCaps: u32,
) -> *mut QueueDefinition
Expand description

@brief Creates a queue with specific memory capabilities

This function is similar to xQueueCreate(), except that it allows the memory allocated for the queue to have specific capabilities (e.g., MALLOC_CAP_INTERNAL).

@note A queue created using this function must only be deleted using vQueueDeleteWithCaps() @param uxQueueLength The maximum number of items that the queue can contain. @param uxItemSize The number of bytes each item in the queue will require. @param uxMemoryCaps Memory capabilities of the queue’s memory (see esp_heap_caps.h) @return Handle to the created queue or NULL on failure.