DSMCC  17.9.0
 All Data Structures Files Functions Typedefs
dsm_debug.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  *
4  * This file is part of a DTVKit Software Component
5  * You are permitted to copy, modify or distribute this file subject to the terms
6  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7  *
8  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  *
12  * If you or your organisation is not a member of DTVKit then you have access
13  * to this source code outside of the terms of the licence agreement
14  * and you are expected to delete this and any associated files immediately.
15  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16  *******************************************************************************/
24 #ifndef _DSM_DEBUG_H
25 #define _DSM_DEBUG_H
26 
27 #include "dsm_types.h"
28 
29 /*---Constant and macro definitions for public use-----------------------------*/
30 
31 /* debug states for DSMCC core */
32 /* General */
33 #define DD_GEN (1 << 0)
34 /* Object Carousel */
35 #define DD_OC (1 << 1)
36 /* Section Filtering */
37 #define DD_SF (1 << 2)
38 /* Timers */
39 #define DD_TIMER (1 << 3)
40 /* Stream Events */
41 #define DD_SE (1 << 4)
42 /* Load manager */
43 #define DD_LM (1 << 5)
44 /* Object Loading */
45 #define DD_OBJ (1 << 6)
46 /* Data Carousel */
47 #define DD_DC (1 << 7)
48 /* SI Query */
49 #define DD_QUERY (1 << 8)
50 /* Modules */
51 #define DD_MOD (1 << 9)
52 #define DD_ALL ((1 << 10) - 1)
53 
54 /* debug states for service info */
55 #define DS_MAIN (1 << 16)
56 #define DS_QUERY (1 << 17)
57 #define DS_CACHE (1 << 18)
58 #define DS_PMT (1 << 19)
59 #define DS_PAT (1 << 20)
60 #define DS_FUNC (1 << 21)
61 #define DS_ALL (31 << 16)
62 
63 /* debug states for section filtering */
64 #define DF_MAIN (1 << 24)
65 #define DF_FILTER (1 << 25)
66 #define DF_CACHE (1 << 26)
67 #define DF_HWSF (1 << 27)
68 #define DF_ALL (15 << 24)
69 
70 /* debug states for DSMCC main API */
71 #define DM_SI (1 << 29)
72 #define DM_CONTROL (1 << 30)
73 #define DM_CLIENT (1 << 31)
74 
75 /*---Enumerations for public use-----------------------------------------------*/
76 
77 /*---Global type defs for public use-------------------------------------------*/
78 
79 /*---Global Function prototypes for public use---------------------------------*/
80 
85 U32BIT DSMCC_DebugGetMask(void);
86 
92 void DSMCC_DebugSetMask(U32BIT mask);
93 
99 U32BIT DSMCC_DebugInstanceGetMask(H_DsmControl instance);
100 
107 void DSMCC_DebugInstanceSetMask(H_DsmControl instance, U32BIT mask);
108 
116 void DSMCC_DebugInstanceEnable(H_DsmControl dsmctrl, const char *rootname);
117 
118 #endif /*_DSM_DEBUG_H */
U32BIT DSMCC_DebugGetMask(void)
Get the DSMCC debug mask.
Definition: dsm_control.c:2052
DSM-CC types used for client control.
void DSMCC_DebugInstanceSetMask(H_DsmControl instance, U32BIT mask)
Set the DSMCC debug mask.
Definition: dsm_control.c:2122
void DSMCC_DebugInstanceEnable(H_DsmControl dsmctrl, const char *rootname)
Enable DSMCC debug for an instance, by reading environment variables with name format: <rootname>_<ma...
Definition: dsm_control.c:2154
U32BIT DSMCC_DebugInstanceGetMask(H_DsmControl instance)
Get the DSMCC debug mask for instance.
Definition: dsm_control.c:2097
void DSMCC_DebugSetMask(U32BIT mask)
Set the DSMCC debug mask.
Definition: dsm_control.c:2066