versadac  1
versadac - Scalable Recorder Firmware
mrp_queuesynchronized.h
1 /***************************************************************************************
2  *********** Copyright 2005 Zurich University of Applied Sciences / InES **************
3  ***************************************************************************************
4  **
5  ** File : mrp_queuesynchronized.h
6  **
7  ** Description : This file implements a synchronized (mutual exclusion)
8  ** queue. This queue used to transfer environment events
9  ** from the OS domain to MRP environment. The events are processed
10  ** by the dispatcher.
11  **
12  ***************************************************************************************
13  ** Department : Institute of Embedded Systems
14  ** Project : MRP
15  ** Modul : MRP_QueueSynchronized_T
16  ** Author : Christian Schaer
17  ** Contact : scc@zhwin.ch
18  ** Date : 10.04.2006
19  ****************************** Modifications ******************************************
20  **
21  ** Date : Who : Comment :
22  ** 10.05.06 scc initial release
23  **************************************************************************************/
24 /* $Workfile:: mrp_queuesynchronized.h $*/
25 /* $Revision:: 2 $*/
26 /* $Date:: 16/12/10 14:44 $*/
27 
28 #ifndef MRP_QUEUESYNCHRONIZED_H
29 #define MRP_QUEUESYNCHRONIZED_H
30 
31 
32 /***********************************************************************/
33 /*** Header Files Includes ***/
34 /***********************************************************************/
35 
36 #include "mrp_pkg.h"
37 
38 
39 /********************************************/
40 /*** Constructors and destructors ***/
41 /********************************************/
42 
43 void MRP_QueueSynchronized_T_Init( void );
44 
45 void MRP_QueueSynchronized_T_Cleanup( void );
46 
47 
48 /********************************************/
49 /*** public Methods ***/
50 /********************************************/
51 
53 MRPBoolean MRP_QueueSynchronized_T_isEmpty( void );
54 
56 MRPBoolean MRP_QueueSynchronized_T_pop( MRP_EnvEvent_T* const envEvent);
57 
59 void MRP_QueueSynchronized_T_push( const MRP_EnvEvent_T* envEvent);
60 
61 
62 
63 #endif
64 
65 
Definition: mrp_envevent.h:53