firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
xMessageBufferNextLengthBytes
Collaboration diagram for xMessageBufferNextLengthBytes:

message_buffer.h

StreamBufferHandle_t MessageBufferHandle_t
Definition message_buffer.h:86
#define xMessageBufferNextLengthBytes(xMessageBuffer)
Definition message_buffer.h:871

Returns the length (in bytes) of the next message in a message buffer. Useful if xMessageBufferReceive() returned 0 because the size of the buffer passed into xMessageBufferReceive() was too small to hold the next message.

configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for xMessageBufferNextLengthBytes() to be available.

Parameters
xMessageBufferThe handle of the message buffer being queried.
Returns
The length (in bytes) of the next message in the message buffer, or 0 if the message buffer is empty.