Functions | |
int | NutDeviceReadTran (NUTDEVICE *dev, void *data, int size) |
Read up to a specified number of bytes from a device translating non printables. | |
int | NutDeviceWriteTran (NUTDEVICE *dev, CONST void *data) |
Write a buffer to a specified device. |
|
Read up to a specified number of bytes from a device translating non printables. This call works like NutDeviceRead(), 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 a buffer to a specified device. This is a raw output without any character translation like EOL (end of line).
|