This file defines a useful set of debugging functions for the DSP library
Definition in file dsp_debug_shared.h.
Go to the source code of this file.
#define | DSP_DEBUG_BUFFER_SIZE 256 |
For internal computations only. | |
char | dsp_debug_buffer [DSP_DEBUG_BUFFER_SIZE] |
Shared buffer to store temporary data. | |
int | dsp_debug_sprint_fct (char **out, char *str) |
Print a string inside a buffer. |
#define DSP_DEBUG_BUFFER_SIZE 256 |
For internal computations only.
The size of the temporary buffer
Definition at line 54 of file dsp_debug_shared.h.
int dsp_debug_sprint_fct | ( | char ** | out, | |
char * | str | |||
) |
Print a string inside a buffer.
Definition at line 268 of file dsp_debug_print.c.
Referenced by dsp_debug_sprint(), and dsp_debug_sprint_after_radix().
00269 { 00270 int n = 0; 00271 00272 // Main loop 00273 while(*str) 00274 { 00275 n++; 00276 *(*out)++ = *str++; 00277 } 00278 **out = '\0'; 00279 00280 // Return the length of the string 00281 return n; 00282 }
char dsp_debug_buffer[DSP_DEBUG_BUFFER_SIZE] |
Shared buffer to store temporary data.
Definition at line 50 of file dsp_debug_print.c.
Referenced by dsp16_debug_printf(), dsp32_debug_printf(), dsp_debug_print(), dsp_debug_print_ui(), dsp_debug_read_ui(), and dsp_sprint_ui().