versadac  1
versadac - Scalable Recorder Firmware
mrp_logitf.h
1 /***************************************************************************************
2  *********** Copyright 2005 Zurich University of Applied Sciences / InES **************
3  ***************************************************************************************
4  **
5  ** File : mrp_logitf.h
6  **
7  ** Description : This modul provides the interface for logging messages from MRP.
8  **
9  ***************************************************************************************
10  ** Department : Institute of Embedded Systems
11  ** Project : MRP
12  ** Modul : MRP_LogItf_T
13  ** Author : Christian Schaer
14  ** Contact : scc@zhwin.ch
15  ** Date : 10.04.2006
16  ****************************** Modifications ******************************************
17  **
18  ** Date : Who : Comment :
19  ** 10.05.06 scc initial release
20  **************************************************************************************/
21 /* $Workfile:: mrp_logitf.h $*/
22 /* $Revision:: 2 $*/
23 /* $Date:: 16/12/10 14:44 $*/
24 
25 #ifndef MRP_LOGITF_H
26 #define MRP_LOGITF_H
27 
28 
29 /***********************************************************************/
30 /*** Header Files Includes ***/
31 /***********************************************************************/
32 
33 #include "mrp_datatypes.h"
34 
35 
36 /********************************************/
37 /*** Defines ***/
38 /********************************************/
39 
40 #define MRP_LOG_MAX_STRING_LEN 128
41 
42 
43 /********************************************/
44 /*** Constructors and destructors ***/
45 /********************************************/
46 
47 void MRP_LogItf_T_Init( void );
48 
49 void MRP_LogItf_T_Cleanup( void );
50 
51 
52 /********************************************/
53 /*** Public Methods ***/
54 /********************************************/
55 
57 void MRP_LogIft_T_setLogMask( Unsigned32 log_mask );
58 
60 Unsigned32 MRP_LogIft_T_getLogMask( void );
61 
63 Signed32 MRP_LogItf_T_formatString( char *fmt, ... );
64 
66 Signed32 MRP_LogItf_T_printString( char *str );
67 
68 #endif
69