Available Languages?:

OSA : OS_Squeue_Send

OS_Squeue_Send (squeue, smessage)
OS_Squeue_Send_I (squeue, smessage)

Allowed only in taskSwitches context

Send simple message to queue of simple messages. If queue is full then wait for free space.

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.
smessage Message body (OST_SMSG)

Returns:

nothing

Example:

OST_SQUEUE squeue;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Squeue_Send (squeue, 'L');
        /*...*/
    }
}

Old style name

OS_SendQSMsg

See also

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