1.1.1.2.1 OSAL_QUEUE_Create Function

C

OSAL_RESULT OSAL_QUEUE_Create(OSAL_QUEUE_HANDLE_TYPE *queID, uint32_t queueLength, uint32_t itemSize);

Description

Creates a new queue instance, and returns a handle by which the new queue can be referenced

Parameters

ParamDescription
queIDA pointer to the queue ID
queueLengthThe maximum number of items that the queue can contain.
itemSizeThe number of bytes each item in the queue will require. Items are queued by copy, not by reference, so this is the number of bytes that will be copied for each posted item. Each item in the queue must be the same size.

Returns

OSAL_RESULT_TRUE - A queue had been created

OSAL_RESULT_FALSE - Queue creation failed