#include "stream_buffer.h"
Go to the source code of this file.
Macros | |
#define | vMessageBufferDelete(xMessageBuffer) vStreamBufferDelete( ( StreamBufferHandle_t ) xMessageBuffer ) |
#define | xMessageBufferCreate(xBufferSizeBytes) ( MessageBufferHandle_t ) xStreamBufferGenericCreate( xBufferSizeBytes, ( size_t ) 0, pdTRUE ) |
#define | xMessageBufferCreateStatic(xBufferSizeBytes, pucMessageBufferStorageArea, pxStaticMessageBuffer) ( MessageBufferHandle_t ) xStreamBufferGenericCreateStatic( xBufferSizeBytes, 0, pdTRUE, pucMessageBufferStorageArea, pxStaticMessageBuffer ) |
#define | xMessageBufferIsEmpty(xMessageBuffer) xStreamBufferIsEmpty( ( StreamBufferHandle_t ) xMessageBuffer ) |
#define | xMessageBufferIsFull(xMessageBuffer) xStreamBufferIsFull( ( StreamBufferHandle_t ) xMessageBuffer ) |
#define | xMessageBufferReceive(xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait) xStreamBufferReceive( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) |
#define | xMessageBufferReceiveCompletedFromISR(xMessageBuffer, pxHigherPriorityTaskWoken) xStreamBufferReceiveCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) |
#define | xMessageBufferReceiveFromISR(xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken) xStreamBufferReceiveFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) |
#define | xMessageBufferReset(xMessageBuffer) xStreamBufferReset( ( StreamBufferHandle_t ) xMessageBuffer ) |
#define | xMessageBufferSend(xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait) xStreamBufferSend( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) |
#define | xMessageBufferSendCompletedFromISR(xMessageBuffer, pxHigherPriorityTaskWoken) xStreamBufferSendCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) |
#define | xMessageBufferSendFromISR(xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken) xStreamBufferSendFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) |
#define | xMessageBufferSpaceAvailable(xMessageBuffer) xStreamBufferSpacesAvailable( ( StreamBufferHandle_t ) xMessageBuffer ) |
Typedefs | |
typedef void * | MessageBufferHandle_t |
#define vMessageBufferDelete | ( | xMessageBuffer | ) | vStreamBufferDelete( ( StreamBufferHandle_t ) xMessageBuffer ) |
void vMessageBufferDelete( MessageBufferHandle_t xMessageBuffer );
Deletes a message buffer that was previously created using a call to xMessageBufferCreate() or xMessageBufferCreateStatic(). If the message buffer was created using dynamic memory (that is, by xMessageBufferCreate()), then the allocated memory is freed.
A message buffer handle must not be used after the message buffer has been deleted.
xMessageBuffer | The handle of the message buffer to be deleted. |
Definition at line 617 of file message_buffer.h.
#define xMessageBufferCreate | ( | xBufferSizeBytes | ) | ( MessageBufferHandle_t ) xStreamBufferGenericCreate( xBufferSizeBytes, ( size_t ) 0, pdTRUE ) |
Definition at line 139 of file message_buffer.h.
#define xMessageBufferCreateStatic | ( | xBufferSizeBytes, | |
pucMessageBufferStorageArea, | |||
pxStaticMessageBuffer | |||
) | ( MessageBufferHandle_t ) xStreamBufferGenericCreateStatic( xBufferSizeBytes, 0, pdTRUE, pucMessageBufferStorageArea, pxStaticMessageBuffer ) |
Definition at line 205 of file message_buffer.h.
#define xMessageBufferIsEmpty | ( | xMessageBuffer | ) | xStreamBufferIsEmpty( ( StreamBufferHandle_t ) xMessageBuffer ) |
BaseType_t xMessageBufferIsEmpty( MessageBufferHandle_t xMessageBuffer ) );
Tests to see if a message buffer is empty (does not contain any messages).
xMessageBuffer | The handle of the message buffer being queried. |
Definition at line 650 of file message_buffer.h.
#define xMessageBufferIsFull | ( | xMessageBuffer | ) | xStreamBufferIsFull( ( StreamBufferHandle_t ) xMessageBuffer ) |
BaseType_t xMessageBufferIsFull( MessageBufferHandle_t xMessageBuffer ) );
Tests to see if a message buffer is full. A message buffer is full if it cannot accept any more messages, of any size, until space is made available by a message being removed from the message buffer.
xMessageBuffer | The handle of the message buffer being queried. |
Definition at line 634 of file message_buffer.h.
#define xMessageBufferReceive | ( | xMessageBuffer, | |
pvRxData, | |||
xBufferLengthBytes, | |||
xTicksToWait | |||
) | xStreamBufferReceive( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, xTicksToWait ) |
Definition at line 496 of file message_buffer.h.
#define xMessageBufferReceiveCompletedFromISR | ( | xMessageBuffer, | |
pxHigherPriorityTaskWoken | |||
) | xStreamBufferReceiveCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) |
Definition at line 774 of file message_buffer.h.
#define xMessageBufferReceiveFromISR | ( | xMessageBuffer, | |
pvRxData, | |||
xBufferLengthBytes, | |||
pxHigherPriorityTaskWoken | |||
) | xStreamBufferReceiveFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvRxData, xBufferLengthBytes, pxHigherPriorityTaskWoken ) |
Definition at line 597 of file message_buffer.h.
#define xMessageBufferReset | ( | xMessageBuffer | ) | xStreamBufferReset( ( StreamBufferHandle_t ) xMessageBuffer ) |
Definition at line 673 of file message_buffer.h.
#define xMessageBufferSend | ( | xMessageBuffer, | |
pvTxData, | |||
xDataLengthBytes, | |||
xTicksToWait | |||
) | xStreamBufferSend( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, xTicksToWait ) |
Definition at line 304 of file message_buffer.h.
#define xMessageBufferSendCompletedFromISR | ( | xMessageBuffer, | |
pxHigherPriorityTaskWoken | |||
) | xStreamBufferSendCompletedFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pxHigherPriorityTaskWoken ) |
Definition at line 734 of file message_buffer.h.
#define xMessageBufferSendFromISR | ( | xMessageBuffer, | |
pvTxData, | |||
xDataLengthBytes, | |||
pxHigherPriorityTaskWoken | |||
) | xStreamBufferSendFromISR( ( StreamBufferHandle_t ) xMessageBuffer, pvTxData, xDataLengthBytes, pxHigherPriorityTaskWoken ) |
Definition at line 408 of file message_buffer.h.
#define xMessageBufferSpaceAvailable | ( | xMessageBuffer | ) | xStreamBufferSpacesAvailable( ( StreamBufferHandle_t ) xMessageBuffer ) |
Definition at line 695 of file message_buffer.h.
typedef void* MessageBufferHandle_t |
Type by which message buffers are referenced. For example, a call to xMessageBufferCreate() returns an MessageBufferHandle_t variable that can then be used as a parameter to xMessageBufferSend(), xMessageBufferReceive(), etc.
Definition at line 79 of file message_buffer.h.