Command disabled: backlink
 
Available Languages?:

OSA : OS_Squeue_Wait

OS_Squeue_Wait (squeue, os_smsg_type_var)

Allowed only in taskSwitches context

Wait for simple message from queue.

OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.

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

Call allowed:

Only in task

Parameters:

squeue Queue of simple messages descriptor. Variable of OST_SQUEUE type.
os_smsg_type_var Variable of OST_SMSG type, where simple message will be placed

Returns:

nothing

Example:

OST_SQUEUE squeue;
 
void Task (void)
{
    OST_SMSG smsg;
    for (;;) {
        /*...*/
        OS_Squeue_Wait(squeue, smsg);  // Wait for simple message and store
                                       // it into smsg
        /*...*/
    }
}

Old style name

OS_WaitQSMsg

See also

 
en/osa/ref/allservices/os_squeue_wait.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