Character stream core implementation. More...
#include <assert.h>#include <interrupt.h>#include <stream.h>#include <stdarg.h>#include <string.h>#include <util.h>Go to the source code of this file.
Data Structures | |
| struct | printf_conversion |
| Conversion data for stream_vprintf(). More... | |
Enumerations | |
| enum | conversion_state { STATE_NORMAL, STATE_FLAG, STATE_WIDTH, STATE_PERIOD, STATE_PRECISION, STATE_LENGTH, STATE_CONVSPEC } |
stream_vprintf() format conversion state. More... | |
Functions | |
| static void | stream_priv_write (struct stream *stream, const char *data, size_t len) |
| Write characters to the output stream. | |
| static int | stream_priv_putchar (struct stream *stream, char c) |
| Send one character to the output stream. | |
| static int | stream_priv_putstr (struct stream *stream, const char *str) |
| Send a nul-terminated string to the output stream. | |
| static void | stream_priv_commit (struct stream *stream) |
| Commit the output stream. | |
| static int | stream_priv_print_signed (struct stream *stream, struct printf_conversion *conv) |
| Print a signed integer according to the conversion specification. | |
| static int | stream_priv_print_unsigned (struct stream *stream, struct printf_conversion *conv) |
| Print an unsigned integer according to the conversion specification. | |
| int | stream_putstr (struct stream *stream, const char *str) |
| Write a string to a stream. | |
| int | stream_putchar (struct stream *stream, int c) |
| Write a single character to a stream. | |
| int | stream_vprintf (struct stream *stream, const char *format, va_list ap) |
| Formatted output conversion to a stream. | |
| int | stream_printf (struct stream *stream, const char *format,...) |
| Formatted output conversion. | |
Character stream core implementation.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file stream_core.c.
1.6.3