message_buffer.h
size_t xMessageBufferSpacesAvailable( MessageBufferHandle_t xMessageBuffer );
Queries a message buffer to see how much free space it contains, which is equal to the amount of data that can be sent to the message buffer before it is full. The returned value is 4 bytes larger than the maximum message size that can be sent to the message buffer.
Message buffer functionality is enabled by including the FreeRTOS/source/stream_buffer.c source file in the build (as message buffers use stream buffers).
| xMessageBuffer | The handle of the message buffer being queried. |