MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
stb_debug.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _STB_DEBUG_H
26 #define _STB_DEBUG_H
27 
28 /*---Constant and macro definitions for public use-----------------------------*/
29 
30 /*---Enumerations for public use-----------------------------------------------*/
31 
32 /*---Global type defs for public use-------------------------------------------*/
33 
34 /*---Global Function prototypes for public use---------------------------------*/
35 
41 void STB_SPDebugWrite(const char *format, ... );
42 
47 void STB_SPDebugNoCnWrite(const char *format, ... );
48 
49 
50 #ifdef MH5PRINTOUT
51 void STB_DebugLogOpen(char *name);
52 void STB_DebugLogClose(void);
53 void STB_DebugLogPrintf(const char *format, ...);
54 #endif
55 
62 void STB_SPDebugAssertFail(const char *file, int line, const char *eval_str);
63 
64 #endif /* _STB_DEBUG_H */
void STB_SPDebugAssertFail(const char *file, int line, const char *eval_str)
Report Assertion failure.
void STB_SPDebugWrite(const char *format,...)
Write debug string to serial/debug port. <CR><LF> characters will be automatically added to the end o...
void STB_SPDebugNoCnWrite(const char *format,...)
Writes debug string to the serial port without <CR><LF>