TIOVX User Guide
include/TI/tivx_debug.h File Reference

The Internal Debugging API. More...

#include <stdbool.h>
#include <VX/vx.h>

Go to the source code of this file.

Macros

#define ASSERT_CONCAT_(a, b)   a##b
 Macros for build time check.
 
#define VX_PRINT(zone, message, ...)
 Utility macro to print debug information if specified zone is globally set.
 
#define VX_PRINT_GRAPH(zone, graph, message, ...)
 Utility macro to print debug information if specified zone is set on a given graph object.
 
#define VX_PRINT_NODE(zone, node, message, ...)
 Utility macro to print debug information if specified zone is set on a given node object.
 
#define VX_PRINT_BOUND_ERROR(resource)   tivx_bound_error(__FUNCTION__, __LINE__, resource)
 Utility macro to print the standard boundary error for a specified configuration resource.
 

Enumerations

enum  tivx_debug_zone_e {
  VX_ZONE_ERROR = 0,
  VX_ZONE_WARNING = 1,
  VX_ZONE_INFO = 2,
  VX_ZONE_MAX = 3
}
 These are the bit flags for debugging. More...
 

Functions

vx_char * tivx_find_zone_name (vx_enum zone)
 Returns the name of an enumerated debug zone. More...
 
void tivx_print_global (vx_enum zone, const char *format,...)
 Internal printing function for the global debug zone bitmask. More...
 
void tivx_print_object (vx_enum zone, vx_uint32 debug_zonemask, const char *format,...)
 Internal printing function for a framework object with a set debug zone bitmask. More...
 
void tivx_set_debug_zone (vx_enum zone)
 Sets a zone bit in the debug mask. More...
 
void tivx_clr_debug_zone (vx_enum zone)
 Clears the zone bit in the mask. More...
 
vx_bool tivx_is_zone_enabled (vx_enum zone)
 Returns true or false if the zone bit is set or cleared. More...
 
vx_uint32 tivxGetNodeDebugZonemask (vx_node node)
 Returns the debug zonemask value of a node. More...
 
vx_uint32 tivxGetGraphDebugZonemask (vx_graph graph)
 Returns the debug zonemask value of a graph. More...
 
vx_status tivxSetGraphDebugZone (vx_graph graph, vx_uint32 debug_zone, vx_bool enable)
 Sets or clears a given debug zone for a graph. More...
 
vx_status tivxSetNodeDebugZone (vx_node node, vx_uint32 debug_zone, vx_bool enable)
 Sets or clears a given debug zone for a node. More...
 
const char * tivxGetNodeName (vx_node node)
 Returns the name of a node object. More...
 
const char * tivxGetGraphName (vx_graph graph)
 Returns the name of a graph object. More...
 
void tivx_bound_error (const char *func, uint32_t line, const char *resource)
 Internal function - prints the common boundary error statement for a given config resource. More...
 

Detailed Description

The Internal Debugging API.

Definition in file include/TI/tivx_debug.h.

Function Documentation

◆ tivx_bound_error()

void tivx_bound_error ( const char *  func,
uint32_t  line,
const char *  resource 
)

Internal function - prints the common boundary error statement for a given config resource.

Parameters
[in]funcCalling function name
[in]lineLine number of calling function
[in]resourceName of specific configuration resource