10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>uprintf -- A clone of stdio's printf without floating point supportDescription:Provides the same functionality as the ANSI C library function printf() with respect to the mainUART, excepting floating point number display support. The types float, double and long long,cannot be output by uprintf(). Full documentation of the printf() function and its many formatspecifiers and conventions is beyond the scope of this manual, please see an ANSI functionreference for a more detailed description of printf() usage.Prototype: void uprintf (const char *format, ...);Inputs:See ANSI C documentation of printf function arguments and behavior.Notes: uprintf() is a macro to SCITxPrintf ()See STDIO Warning at end of this sectionSTDIO WarningThe ANSI C I/O libraries provided with the <strong>CF2</strong> are, for the most part, even higher level wrappers to thesedriver functions. However, in an effort of duplicate exactly the behavior of the ANSI stdio system, the stdiofunctions often provide software buffering and queues. While you should feel free to use and inter-mingleboth these driver level functions and stdio functions, it should be noted that due to the software bufferingused by the stdio library, the outcome of intermingling these two groups of functions can yield unexpectedresults. If you, as a developer, choose to use both libraries, you should be careful to flush the buffers of eachsubsystem (driver calls and stdio) before using the other. Not doing so will not cause any fatal problems, butcan cause confusion. For instance, if you were using the stdio printf function, and then immediately followed itwith a driver call that also output data to the serial port, it is likely that the data output by the driver callwould appear on the serial port before the data printed with stdio printf.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.19 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!