Functions | |
int | NutIfStreamRead (NUTDEVICE *dev, char *data, int size) |
Read from a stream device. | |
int | NutIfStreamGetLine (NUTDEVICE *dev, char *data, int size) |
Get a line from a stream device. | |
int | NutIfStreamWrite (NUTDEVICE *dev, CONST char *data, int len) |
Write to a stream device. | |
int | NutIfStreamWrite_P (NUTDEVICE *dev, PGM_P data, int len) |
Write program space data to a stream device. | |
int | NutIfStreamFlush (NUTDEVICE *dev) |
Flush stream device buffer. |
Stream devices use input and output buffers. If an application writes to a stream device, the output data is not directly passed to the device, but buffered first. The transmission starts in the backgorund, if the output buffer is full or if a special flush function is called.
|
Flush stream device buffer.
|
|
Get a line from a stream device. Reads a string from the specified device. Characters are read up to and including the first end of line character or until the number of characters read is equal to the specified maximum or until a timeout occurs, whichever comes first.
|
|
Read from a stream device.
|
|
Write to a stream device. The data isn't immediately transfered to the physical device, but buffered in a transmit buffer. Transmission starts either when the buffer is full or when this function is called with a zero data pointer.
|
|
Write program space data to a stream device.
|