dsp_sprintf.h File Reference


Detailed Description

sprintf with DSP type support

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file dsp_sprintf.h.

Go to the source code of this file.

Functions

int dsp16_sprintf (char *out, const char *format,...)
int dsp32_sprintf (char *out, const char *format,...)


Function Documentation

int dsp16_sprintf ( char *  out,
const char *  format,
  ... 
)

Definition at line 453 of file dsp_sprintf.c.

References print().

00454 {
00455   va_list args;
00456   int n;
00457   char *pdsp_debug_buffer;
00458 
00459   // Point on the default buffer
00460   pdsp_debug_buffer = out;
00461 
00462   // Compute the printf with specifics arguments
00463   va_start(args, format);
00464   n = print(16, &pdsp_debug_buffer, format, args);
00465   va_end(args);
00466 
00467   return n;
00468 }

int dsp32_sprintf ( char *  out,
const char *  format,
  ... 
)

Definition at line 471 of file dsp_sprintf.c.

References print().

00472 {
00473   va_list args;
00474   int n;
00475   char *pdsp_debug_buffer;
00476 
00477   // Point on the default buffer
00478   pdsp_debug_buffer = out;
00479 
00480   // Compute the printf with specifics arguments
00481   va_start(args, format);
00482   n = print(32, &pdsp_debug_buffer, format, args);
00483   va_end(args);
00484 
00485   return n;
00486 }


Generated on Fri Feb 19 02:23:19 2010 for AVR32 UC3 - EVK1104 DSPLib Demo Documentation by  doxygen 1.5.5