Add missing undefined symbols to be sure to use mine

Dependents:   DS130x_I2CApp MCP41xxxApp FM24Vxx_I2CApp MCP320xApp ... more

Embed: (wiki syntax)

« Back to documentation index

DebugHelper Class Reference

DebugHelper Class Reference

This class implements debug functionalities based on USB console interface. More...

#include <Debug.h>

Static Public Member Functions

static void Debug (const char *p_format,...)
 Standard log method.
static void HexaDump (unsigned char *p_buffer, int p_count, int p_offset=0)
 Log an hexadecimal buffer.
static void BreakPoint (const char *p_file, int p_line)
 Break point method based on getchar() C function.

Detailed Description

This class implements debug functionalities based on USB console interface.

V0.0.0.8

Note that this class is based on Helper pattern

Definition at line 82 of file Debug.h.


Member Function Documentation

void BreakPoint ( const char *  p_file,
int  p_line 
) [static]

Break point method based on getchar() C function.

Definition at line 90 of file Debug.cpp.

void Debug ( const char *  p_format,
  ... 
) [static]

Standard log method.

Parameters:
p_formatFormat string compliant with C 'printf' format string

Definition at line 26 of file Debug.cpp.

void HexaDump ( unsigned char *  p_buffer,
int  p_count,
int  p_offset = 0 
) [static]

Log an hexadecimal buffer.

Note that parameters 'p_offset' and 'p_length' are not supported yet

Parameters:
p_bufferThe buffer to dump
p_countNumber of bytes to dump
p_offsetOffset to start the dump. Default: 0

Definition at line 34 of file Debug.cpp.