TIOVX User Guide

Detailed Description

APIs for debug operations on the host.

Defines

#define VX_PRINT(zone, message, ...)   do { tivx_print(((vx_enum)zone), "[%s:%u] "message, __FUNCTION__, __LINE__, ## __VA_ARGS__); } while (1 == 0)
 The OpenVX Debugging Facility.
 

Enumerations

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

Functions

void tivx_print (vx_enum zone, const char *format,...)
 Internal Printing Function. 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_get_debug_zone (vx_enum zone)
 Returns true or false if the zone bit is set or cleared. More...
 

Enumeration Type Documentation

◆ tivx_debug_zone_e

These are the bit flags for debugging.

Enumerator
VX_ZONE_ERROR 

Used for most errors

VX_ZONE_WARNING 

Used to warning developers of possible issues

VX_ZONE_API 

Used to trace API calls and return values

VX_ZONE_INFO 

Used to show run-time processing debug

VX_ZONE_PERF 

Used to show performance information

Definition at line 76 of file tivx_debug.h.

Function Documentation

◆ tivx_print()

void tivx_print ( vx_enum  zone,
const char *  format,
  ... 
)

Internal Printing Function.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.
[in]formatThe format string to print.
[in]...The variable list of arguments.

◆ tivx_set_debug_zone()

void tivx_set_debug_zone ( vx_enum  zone)

Sets a zone bit in the debug mask.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.

◆ tivx_clr_debug_zone()

void tivx_clr_debug_zone ( vx_enum  zone)

Clears the zone bit in the mask.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.

◆ tivx_get_debug_zone()

vx_bool tivx_get_debug_zone ( vx_enum  zone)

Returns true or false if the zone bit is set or cleared.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.