xQueueCreateWithCaps() function
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).
Arguments
uxQueueLength
The maximum number of items that the queue can contain.
uxItemSize
The number of bytes each item in the queue will require.
uxMemoryCaps
Memory capabilities of the queue's memory (see esp_heap_caps.h)
Return value
Handle to the created queue or NULL on failure.
Notes
A queue created using this function must only be deleted using vQueueDeleteWithCaps()
xQueueCreateWithCaps() calls 3 functions:
![]()
xQueueCreateWithCaps()
xQueueCreateWithCaps():
![]()
xQueueCreateWithCaps()