Functions | |
int | NutIfStreamRead (NUTDEVICE *dev, char *data, int size) |
Read from a stream device. | |
int | NutIfStreamReadTran (NUTDEVICE *dev, char *data, int size) |
Read from a stream device translating non printables. | |
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 | NutIfStreamWriteTran (NUTDEVICE *dev, CONST char *data) |
Translate and write a string 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. |
|
Flush stream device buffer. Flushes the output buffer for the specified device by writing its current contents to the corresponding device.
|
|
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.
|
|
Read from a stream device translating non printables. This call works like NutIfStreamRead(), but translates character codes below 33, above 126 or equal 34 into their hex representation prepended by a backslash and the letter x. Backslashes are duplicated and the complete string is terminated by character code zero. This offers the ability to store binary data in printable strings.
|
|
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.
|
|
Translate and write a string to a stream device. This call works like NutIfStreamWrite(), but translates any backslash followed by the letter x followed by two hexadecimal uppercase digits into the binary representation. Simple backslashes are expected to be duplicated and the complete string must be terminated by character code zero. This offers the ability to write binary data from a printable strings. 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.
|