Command disabled: backlink
 
Available Languages?:

OSA : OS_Squeue_Send_Now

OS_Squeue_Send_Now (squeue, smessage)
OS_Squeue_Send_I (squeue, smessage)

Send simple message to queue of simple messages. If there is no free room to add a new message then oldest message will be dropped.

OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.

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

Call allowed:

Parameters:

squeue Queue of simple messages descriptor. Variable of OST_SQUEUE type.
smessage Message body (OST_SMSG)

Returns:

bEventError If queue was full then OS_IsEventError will return true

Example:

OST_SQUEUE squeue;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Squeue_Send_Now(squeue, 'N');
        /*...*/
    }
}

Old style name

OS_SendQSMsgNoWait

See also

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