Embedded TCP/IP stack
4.1.0
|
fnet_serial.h
402 fnet_size_t fnet_serial_vprintf(fnet_serial_stream_t stream, const fnet_char_t *format, va_list arg );
630 fnet_size_t fnet_snprintf( fnet_char_t *str, fnet_size_t size, const fnet_char_t *format, ... );
fnet_size_t fnet_serial_vprintf(fnet_serial_stream_t stream, const fnet_char_t *format, va_list arg)
Prints formatted variable argument list to the stream.
void(* putchar)(fnet_index_t stream_id, fnet_char_t character)
Callback function used for writing the character to the stream.
Definition: fnet_serial.h:111
fnet_size_t fnet_serial_printf(fnet_serial_stream_t stream, const fnet_char_t *format,...)
Prints formatted text to the stream.
fnet_int32_t fnet_serial_getchar(fnet_serial_stream_t stream)
Reads character from the stream.
const struct fnet_serial_stream * fnet_serial_stream_t
Serial stream descriptor.
Definition: fnet_serial.h:130
void fnet_serial_putchar(fnet_serial_stream_t stream, fnet_char_t character)
Writes character to the stream.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_int32_t(* getchar)(fnet_index_t stream_id)
Callback function used for reading a character from the stream.
Definition: fnet_serial.h:114
fnet_size_t fnet_snprintf(fnet_char_t *str, fnet_size_t size, const fnet_char_t *format,...)
Prints formatted text to the buffer. The length of the buffer is given, that prevents the buffer over...
fnet_index_t id
The id parameter provides a way for a stream driver to identify a particular device. For example it can be used as serial port number or pointer to a stream private structure. This parameter is passed to fnet_serial_stream.putchar() and to fnet_serial_stream.getchar() as the first parameter.
Definition: fnet_serial.h:103
fnet_size_t fnet_println(const fnet_char_t *format,...)
Prints formatted text to the default stream and terminates the printed text by the line separator str...
fnet_size_t fnet_sprintf(fnet_char_t *str, const fnet_char_t *format,...)
Prints formatted text to the buffer.
fnet_size_t fnet_printf(const fnet_char_t *format,...)
Prints formatted text to the default stream.
void fnet_serial_flush(fnet_serial_stream_t stream)
Sends data from the internal stream buffer to the stream client.
void(* flush)(fnet_index_t stream_id)
Callback function used for immediate data sending from internal stream buffer to the steam client...
Definition: fnet_serial.h:117
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net