aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/PrinterHost/Lib
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-19 13:08:48 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-19 13:08:48 +0000
commitcc879df4f014e403e57caca50a5791c996c0d79c (patch)
tree8f15a94a7c1d3b370b0cf28bb27db898c8bed9df /Demos/Host/Incomplete/PrinterHost/Lib
parent786479faf0605d610c93041191ee5bd6d020ccf9 (diff)
downloadlufa-cc879df4f014e403e57caca50a5791c996c0d79c.tar.gz
lufa-cc879df4f014e403e57caca50a5791c996c0d79c.tar.bz2
lufa-cc879df4f014e403e57caca50a5791c996c0d79c.zip
Use sane ANSI terminal escape codes for the Host mode demos, so that they do not cause eye-searing, unreadable text on terminals which parse the escape codes properly.
Diffstat (limited to 'Demos/Host/Incomplete/PrinterHost/Lib')
-rw-r--r--Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c
index 075b2d601..668421d91 100644
--- a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c
+++ b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c
@@ -30,6 +30,13 @@
#include "PrinterCommands.h"
+/** Sends the given data directly to the printer via the data endpoints, for the sending of print commands in printer
+ * languages accepted by the attached printer (e.g. PCL).
+ *
+ * \param[in] PrinterCommands Pointer to the input buffer containing the printer data to send
+ *
+ * \return A value from the Pipe_Stream_RW_ErrorCodes_t enum
+ */
uint8_t Printer_SendData(char* PrinterCommands)
{
uint8_t ErrorCode;