xRingbufferCreateStatic() function
Create a ring buffer but manually provide the required memory
Arguments
xBufferSize
Size of the buffer in bytes.
xBufferType
Type of ring buffer, see documentation
pucRingbufferStorage
Pointer to the ring buffer's storage area. Storage area must have the same size as specified by xBufferSize
pxStaticRingbuffer
Pointed to a struct of type StaticRingbuffer_t which will be used to hold the ring buffer's data structure
Return value
A handle to the created ring buffer
Notes
xBufferSize of no-split/allow-split buffers MUST be 32-bit aligned.
xRingbufferCreateStatic() is called by 2 functions and calls 2 functions:
![]()
xRingbufferCreateStatic()
xRingbufferCreateStatic() reads 3 variables and writes 1 variable:
![]()
xRingbufferCreateStatic()