Main Page   Modules   Data Structures   File List   Data Fields   Globals  

rprintf.c File Reference

printf routine and associated routines. More...

#include <avr/pgmspace.h>
#include <stdarg.h>
#include "global.h"
#include "rprintf.h"

Go to the source code of this file.

Defines

#define TRUE   -1
#define FALSE   0
#define INF   32766
#define READMEMBYTE(a, char_ptr)   ((a)?(PRG_RDB(char_ptr)):(*char_ptr))

Functions

void rprintfInit (void(*putchar_func)(unsigned char c))
 initializes the rprintf library for an output stream

void rprintfChar (unsigned char c)
 prints a single character to the current output device

void rprintfStr (char str[])
 prints a null-terminated string stored in RAM

void rprintfStrLen (char str[], unsigned char start, unsigned char len)
 prints a section of a string stored in RAM

void rprintfProgStr (char str[])
 prints a string stored in program rom

void rprintfCRLF (void)
 prints a carriage return and line feed

void rprintfu04 (unsigned char data)
 print 4-bit hex number

void rprintfu08 (unsigned char data)
 print 8-bit hex number

void rprintfu16 (unsigned short data)
 print 16-bit hex number

void rprintfu32 (unsigned long data)
 print 32-bit hex number

void rprintfNum (char base, char numDigits, char isSigned, char padchar, long n)
 a flexible integer number printing routine

int rprintf1RamRom (unsigned char stringInRom, const char *format,...)
 called by rprintf() - does a simple printf (supports d, x, c)


Detailed Description

printf routine and associated routines.

Definition in file rprintf.c.


Generated on Sun Feb 22 19:12:31 2004 for Procyon AVRlib by doxygen1.3-rc2