aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/PrinterHost/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Moved PrinterHost demo from Incomplete to LowLevel, as it is now near-complete.Dean Camera2009-07-202-209/+0
|
* Fixed PrinterHost demo Printer_GetDeviceID() routine not removing the Device ↵Dean Camera2009-07-202-5/+8
| | | | | | ID string length from the start of the returned array (thanks to John Andrews). Fixed error in new pipe stream function template system not setting the right device token for R/W operations (also thanks to John Andrews).
* Cleaner solution to the PrinterHost data send routine problem of embedded ↵Dean Camera2009-07-202-4/+11
| | | | NULLs - use a special structure to hold the data string plus the length in bytes of the data.
* Fix unfinished printer host demo - some printer languages use embedded NULLs ↵Dean Camera2009-07-202-3/+3
| | | | and so strlen() won't work in all cases. Ensure NULL terminator for the test page is not transmitted to the device.
* Use sane ANSI terminal escape codes for the Host mode demos, so that they do ↵Dean Camera2009-07-191-0/+7
| | | | not cause eye-searing, unreadable text on terminals which parse the escape codes properly.
* Add partial project documentation to the incomplete PrinterHost demo.Dean Camera2009-07-192-20/+59
| | | | | | Change over Printer_GetDeviceID() to require a pointer to the destination buffer plus the buffer size, rather than using a pointer to a special structure. Make new Printer_SendData() function to hide the implementation of sending data to an attached printer, cleaning up the main demo source file body.
* Fixed incorrect PIPE_EPNUM_MASK mask causing pipe failures on devices with ↵Dean Camera2009-07-191-0/+1
| | | | endpoint addresses of 8 and above (thanks to John Andrews).
* Magstripe Project: Ensure that empty tracks still print out a newline ↵Dean Camera2009-07-191-8/+14
| | | | | | seperator so that the host always knows what track data is being sent. Updates to PrinterHost demo to include some PCL test data plus fixes to the GetDeviceID routine.
* Seperated out parts of the PrinterHost incomplete demo into a seperate Lib ↵Dean Camera2009-07-132-0/+146
subdirectory. Fixed Host mode to Device mode UID change not causing a USB Disconnect event when a device was connected.