FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stream_buffer.h File Reference

Macros

#define xStreamBufferCreate(xBufferSizeBytes, xTriggerLevelBytes)
 
#define xStreamBufferCreateStatic(xBufferSizeBytes, xTriggerLevelBytes, pucStreamBufferStorageArea, pxStaticStreamBuffer)
 

Typedefs

typedef struct StreamBufferDef_t * StreamBufferHandle_t
 

Functions

size_t xStreamBufferSend (StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait) PRIVILEGED_FUNCTION
 
size_t xStreamBufferSendFromISR (StreamBufferHandle_t xStreamBuffer, const void *pvTxData, size_t xDataLengthBytes, BaseType_t *const pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
 
size_t xStreamBufferReceive (StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait) PRIVILEGED_FUNCTION
 
size_t xStreamBufferReceiveFromISR (StreamBufferHandle_t xStreamBuffer, void *pvRxData, size_t xBufferLengthBytes, BaseType_t *const pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
 
void vStreamBufferDelete (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 
BaseType_t xStreamBufferIsFull (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 
BaseType_t xStreamBufferIsEmpty (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 
BaseType_t xStreamBufferReset (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 
size_t xStreamBufferSpacesAvailable (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 
size_t xStreamBufferBytesAvailable (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 
BaseType_t xStreamBufferSetTriggerLevel (StreamBufferHandle_t xStreamBuffer, size_t xTriggerLevel) PRIVILEGED_FUNCTION
 
BaseType_t xStreamBufferSendCompletedFromISR (StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
 
BaseType_t xStreamBufferReceiveCompletedFromISR (StreamBufferHandle_t xStreamBuffer, BaseType_t *pxHigherPriorityTaskWoken) PRIVILEGED_FUNCTION
 
StreamBufferHandle_t xStreamBufferGenericCreate (size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer) PRIVILEGED_FUNCTION
 
StreamBufferHandle_t xStreamBufferGenericCreateStatic (size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer, uint8_t *const pucStreamBufferStorageArea, StaticStreamBuffer_t *const pxStaticStreamBuffer) PRIVILEGED_FUNCTION
 
size_t xStreamBufferNextMessageLengthBytes (StreamBufferHandle_t xStreamBuffer) PRIVILEGED_FUNCTION
 

Macro Definition Documentation

#define xStreamBufferCreate (   xBufferSizeBytes,
  xTriggerLevelBytes 
)
#define xStreamBufferCreateStatic (   xBufferSizeBytes,
  xTriggerLevelBytes,
  pucStreamBufferStorageArea,
  pxStaticStreamBuffer 
)

Typedef Documentation

typedef struct StreamBufferDef_t* StreamBufferHandle_t

Function Documentation

size_t xStreamBufferBytesAvailable ( StreamBufferHandle_t  xStreamBuffer)
StreamBufferHandle_t xStreamBufferGenericCreate ( size_t  xBufferSizeBytes,
size_t  xTriggerLevelBytes,
BaseType_t  xIsMessageBuffer 
)
StreamBufferHandle_t xStreamBufferGenericCreateStatic ( size_t  xBufferSizeBytes,
size_t  xTriggerLevelBytes,
BaseType_t  xIsMessageBuffer,
uint8_t *const  pucStreamBufferStorageArea,
StaticStreamBuffer_t *const  pxStaticStreamBuffer 
)
BaseType_t xStreamBufferIsEmpty ( StreamBufferHandle_t  xStreamBuffer)
BaseType_t xStreamBufferReceiveCompletedFromISR ( StreamBufferHandle_t  xStreamBuffer,
BaseType_t pxHigherPriorityTaskWoken 
)
size_t xStreamBufferReceiveFromISR ( StreamBufferHandle_t  xStreamBuffer,
void *  pvRxData,
size_t  xBufferLengthBytes,
BaseType_t *const  pxHigherPriorityTaskWoken 
)
BaseType_t xStreamBufferSendCompletedFromISR ( StreamBufferHandle_t  xStreamBuffer,
BaseType_t pxHigherPriorityTaskWoken 
)
BaseType_t xStreamBufferSetTriggerLevel ( StreamBufferHandle_t  xStreamBuffer,
size_t  xTriggerLevel 
)