MakingThings
  • Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

debug.h

00001 /*********************************************************************************
00002 
00003  Copyright 2006-2008 MakingThings
00004 
00005  Licensed under the Apache License, 
00006  Version 2.0 (the "License"); you may not use this file except in compliance 
00007  with the License. You may obtain a copy of the License at
00008 
00009  http://www.apache.org/licenses/LICENSE-2.0 
00010  
00011  Unless required by applicable law or agreed to in writing, software distributed
00012  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
00013  CONDITIONS OF ANY KIND, either express or implied. See the License for
00014  the specific language governing permissions and limitations under the License.
00015 
00016 *********************************************************************************/
00017 
00018 /*
00019   debug.h
00020 
00021 */
00022 
00023 #ifndef DEBUG_H
00024 #define DEBUG_H
00025 
00026 /**
00027 \ingroup Debug
00028 @{
00029 */
00030 
00031 #define DEBUG_ALWAYS  0 /**< The lowest debug level, used for messages that should go out no matter what.*/
00032 #define DEBUG_ERROR   1 /**< Used for critical/fatal error messages. */
00033 #define DEBUG_WARNING 2 /**< Used for warnings. */
00034 #define DEBUG_MESSAGE 3 /**< Used for normal/test messages.  */
00035 
00036 /* @} */
00037 
00038 int Debug_SetActive( int state );
00039 int Debug_GetActive( void );
00040 
00041 int Debug_SetLevel( int level );
00042 int Debug_GetLevel( void );
00043 
00044 int Debug_SetUsb( int usb );
00045 int Debug_GetUsb( void );
00046 
00047 int Debug_SetUdp( int udp );
00048 int Debug_GetUdp( void );
00049 
00050 int Debug( int level, char* string, ... );
00051 
00052 const char* DebugOsc_GetName( void );
00053 int DebugOsc_ReceiveMessage( int channel, char* message, int length );
00054 
00055 #endif
00056 
00057 

The Make Controller Kit is an open source project maintained by MakingThings.
MakingThings code is released under the Apache 2.0 license.
Bug tracker, development wiki and status can be found at http://dev.makingthings.com.
This document was last updated on 18 May 2009.