Function esp_idf_sys::xQueueCreateWithCaps

source ·
pub unsafe extern "C" fn xQueueCreateWithCaps(
    uxQueueLength: UBaseType_t,
    uxItemSize: UBaseType_t,
    uxMemoryCaps: UBaseType_t,
) -> QueueHandle_t
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.