Available Languages?:

OSA : OS_Queue_Send_Now

OS_Queue_Send_Now (queue, message)
OS_Queue_Send_I (queue, message)

Send message to queue of messages. If queue is full then oldest message will be dropped.

OS_ENABLE_QUEUE constant must be defined in OSAcfg.h.

For PIC16, message queues can be allocated only in bank0 or bank1

Call allowed:

Parameters:

queue Queue of messages descriptor. Variable of OST_QUEUE type.
message pointer to message body (OST_MSG)

Returns:

bEventError If queue is not free then OS_IsEventError will return true

Example:

OST_QUEUE queue;
 
void Task (void)
{
    static char Data[10];
    for (;;) {
        /*...*/
        OS_Queue_Send_Now (queue, Data);
        /*...*/
    }
}

Old style name

OS_SendQMsgNoWait

See also

 
en/osa/ref/allservices/os_queue_send_now.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki