xMessageBufferCreateWithCaps() function
Creates a message buffer with specific memory capabilities This function is similar to xMessageBufferCreate(), except that it allows the memory allocated for the message buffer to have specific capabilities (e.g., MALLOC_CAP_INTERNAL).
Arguments
xBufferSizeBytes
The total number of bytes (not messages) the message buffer will be able to hold at any one time.
uxMemoryCaps
Memory capabilities of the message buffer's memory (see esp_heap_caps.h)
Return value
Handle to the created message buffer or NULL on failure.
Notes
A message buffer created using this function must only be deleted using vMessageBufferDeleteWithCaps()
xMessageBufferCreateWithCaps() calls 1 function:
![]()
xMessageBufferCreateWithCaps()
xMessageBufferCreateWithCaps():
![]()
xMessageBufferCreateWithCaps()