ACS ACR89U-A1 User Manual Page 60

  • Download
  • Add to my manuals
  • Print
  • Page
    / 78
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 59
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.
}
Page view 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 77 78

Comments to this Manuals

No comments