1.2.2.2.6 OSAL_QUEUE_SendISR Function
C
OSAL_RESULT OSAL_QUEUE_SendISR(OSAL_QUEUE_HANDLE_TYPE *queID, void *itemToQueue);
Description
Post an item into an OSAL Queue. The item is queued by copy, not by reference. The highest priority task currently blocked on the queue will be released and made ready to run. This form of the send function should be used witin an ISR.
Parameters
Param | Description |
---|---|
queID | A pointer to the queue ID |
itemToQueue | 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 itemToQueue into the queue storage area. |
waitMS | Time limit to wait in milliseconds. |
0 | do not wait |
OSAL_WAIT_FOREVER | return only when semaphore is obtained |
Other values | timeout delay |
Returns
OSAL_RESULT_TRUE - Item copied to the queue
OSAL_RESULT_FALSE - Item not copied to the queue or timeout occurred