ACR89U-A1 – Application Programming Interface info@acs.com.hk
Version 1.01
www.acs.com.hk
Page 60 of 78
xQueueSend( xQueue, ( void * ) &pxMessage, ( portTickType ) 0 );
// ... Rest of task code.
}
// Task to peek the data from the queue.
void vADifferentTask( void *pvParameters )
{
struct AMessage *pxRxedMessage;
if( xQueue != 0 )
{
// Peek a message on the created queue. Block for 10 ticks if a
// message is not immediately available.
if( xQueuePeek( xQueue, &( pxRxedMessage ), ( portTickType ) 10
) )
{
// pcRxedMessage now points to the struct AMessage variable
posted
// by vATask, but the item still remains on the queue.
}
}
// ... Rest of task code.
}
Comments to this Manuals