queue.h
This is a macro that calls xQueueGenericSend(). It is equivalent to xQueueSend().
Post an item to the back of a queue. The item is queued by copy, not by
reference. This function must not be called from an interrupt service
routine. See xQueueSendToBackFromISR () for an alternative which may be used
in an ISR.
xQueueSendToBack() is part of the fully featured intertask communications API.
xQueueAltSendToBack() is the alternative API equivalent. Both versions require the same
parameters and return the same values.
If INCLUDE_vTaskSuspend is set to '1' then specifying the block time as portMAX_DELAY will cause the task to block indefinitely (without a timeout).
xQueue The handle to the queue on which the item is to be posted. pvItemToQueue A pointer to the item that is to be placed on the queue. The size of the items the queue will hold was defined when the queue was created, so this many bytes will be copied from pvItemToQueue into the queue storage area. xTicksToWait The maximum amount of time the task should block waiting for space to become available on the queue, should it already be full. The call will return immediately if this is set to 0. The time is defined in tick periods so the constant portTICK_RATE_MS should be used to convert to real time if this is required.
Example usage:
Any and all data, files, source code, html content and documentation included in the FreeRTOS distribution or available on this site are the exclusive property of Richard Barry.
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Richard Barry.